コード例 #1
0
ファイル: TurnManager.cs プロジェクト: jannickj/cruel-nemesis
 private void PerformMoves()
 {
     MultiAction ma = new MultiAction();
     foreach (PlayerDeclareMoveAttackEvent evt in this.moveAttackDeclaration.Values)
     {
         MovePathAction mpa = evt.MoveAction;
         ma.AddAction(mpa);
     }
     ma.Resolved += (sender, maEvt) => SkipToPhase(Phases.React,this.playersTurn);
     this.ActionManager.Queue(ma);
 }
コード例 #2
0
ファイル: TurnManager.cs プロジェクト: jannickj/cruel-nemesis
        private void PerformAttacks()
        {
            MultiAction ma = new MultiAction();
            foreach (PlayerDeclareMoveAttackEvent evt in this.moveAttackDeclaration.Values)
            {

                AttackUnitAction aua = evt.AttackAction;
                if(evt.AttackUnit != null)
                    ma.AddAction(evt.Entity,aua);
            }
            ma.Resolved += (sender, maEvt) => SkipToPhase(Phases.EndCombat,this.playersTurn);
            this.ActionManager.Queue(ma);
        }