예제 #1
0
        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);
        }
예제 #2
0
 public Threat(ThreatMusicInfo _music)
 {
     type  = ThreatType.Music;
     music = _music;
 }