public void addResult(IBattleResult result) { this._nextResultList.Add(result); }
public BattleFlow(BattleFlowSettings <TBattler> settings) { var battleResultHandler = new BattleResultEventHandler <TBattleResult>(result => battleResult = result); var merged = new MergedBattleEventHandler( new [] { settings.Handler, battleResultHandler }, () => battleResult != null ); this.context = new BattleContext <TBattler>(settings.OrderDeterminator, settings.TurnProcessor, merged) { Players = settings.Players, Opponents = settings.Opponents }; }
public BattleResultEvent(IBattleResult <TBattleResult> result) { Result = result; }