Exemplo n.º 1
0
 public void NetworkExecuteQueue(Command cmd)
 {
     networkCommands.Enqueue(cmd);
 }
Exemplo n.º 2
0
        public void Execute(Command cmd)
        {
            commandList.Add(cmd);
            cmd.Execute(game);

            /* Send to the network */
            if (game.gameLink != null)
            game.gameLink.sendCommand(cmd);

            /* Show results */
            game.GUI.updateGUIStatusBoxes();
            //System.Console.WriteLine("Executed - CL:" + commandList.Count);
        }
Exemplo n.º 3
0
        public void NetworkExecute(Command cmd)
        {
            commandList.Add(cmd);

            System.Console.WriteLine("Network execution of " + cmd);
            cmd.Execute(game);
        }
Exemplo n.º 4
0
 public override bool sendCommand(Command cmd)
 {
     DataPacket pkt = new DataPacket("Command", cmd);
     return sendPacket(pkt);
 }