public void NetworkExecuteQueue(Command cmd) { networkCommands.Enqueue(cmd); }
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); }
public void NetworkExecute(Command cmd) { commandList.Add(cmd); System.Console.WriteLine("Network execution of " + cmd); cmd.Execute(game); }
public override bool sendCommand(Command cmd) { DataPacket pkt = new DataPacket("Command", cmd); return sendPacket(pkt); }