コード例 #1
0
 public void addResult(IBattleResult result)
 {
     this._nextResultList.Add(result);
 }
コード例 #2
0
ファイル: BattleFlow.cs プロジェクト: NumAniCloud/Duptip
        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
            };
        }
コード例 #3
0
 public BattleResultEvent(IBattleResult <TBattleResult> result)
 {
     Result = result;
 }