예제 #1
0
        public void AddCommand(ServerBattleCommand cmd)
        {
            if (cmd == null)
                return;

            if (currentTurn == null)
            {
                currentTurn = new BattleTurn(this, cmd.turn);
            }

            if (cmd.turn != currentTurn.turnID)
            {
                Utils.Log("Invalid turn received: " + cmd.turn.ToString(), 0);
            }

            currentTurn.AddCommand(cmd);
        }
예제 #2
0
        public void AddCommand(ServerBattleCommand cmd)
        {
            if (cmd == null)
                return;

            commands.Add(cmd);
        }