Example #1
0
 public void executeCommand(Command command)
 {
     lock (this)
     {
         if (command.ObjectId == -1)
             return;
     }
 }
Example #2
0
 public static string fromCommandToString(Command action)
 {
     return "";
 }
Example #3
0
 private static void SendCommand(Command command)
 {
     try
     {
         ServerConnection.Send(Serializer.fromCommandToString(command));
     }
     catch (System.Net.Sockets.SocketException e)
     {
         System.Console.WriteLine("Error while sending command to the server");
         System.Console.WriteLine("Connection lost: " + e);
         Stop = true;
     }
     catch (Exception fe)
     {
         System.Console.WriteLine("Something went wrong");
         System.Console.WriteLine("Game over " + fe);
         Stop = true;
     }
 }