Beispiel #1
0
 public void NetworkExecuteQueue(Command cmd)
 {
     networkCommands.Enqueue(cmd);
 }
Beispiel #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);
        }
Beispiel #3
0
        public void NetworkExecute(Command cmd)
        {
            commandList.Add(cmd);

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