Example #1
0
        public PlayingState(AFighter firstFighter, AFighter secondFighter)
        {
            _fighters.Add(firstFighter);
            _fighters.Add(secondFighter);
            _fighters = _fighters.OrderByDescending(y => y.Initiative).ThenBy(y => y.AttackValue).ToList();

            AFighter.FighterDied += this.OnEndGame;
            _commentator          = new Commentator();
        }
Example #2
0
 public void AddFighter(AFighter fighter)
 {
     _fighters.Add(fighter);
     _fighters = _fighters.OrderBy(y => y.Initiative).ThenBy(y => y.AttackValue).ToList();
 }