Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public void AddCommand(ServerBattleCommand cmd)
        {
            if (cmd == null)
                return;

            commands.Add(cmd);
        }