Threat makeRandomThreat(PlayerName player) { ThreatType type = level.sampleRandomThreatType(player); Threat newThreat = null; if (type == ThreatType.Music) { var info = new ThreatMusicInfo(level, player); newThreat = new Threat(info); } return(newThreat); }
public Threat(ThreatMusicInfo _music) { type = ThreatType.Music; music = _music; }