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(); }
public void AddFighter(AFighter fighter) { _fighters.Add(fighter); _fighters = _fighters.OrderBy(y => y.Initiative).ThenBy(y => y.AttackValue).ToList(); }