Exemple #1
0
 public ServerObject(string[] args)
 {
     myUrl            = args[3];
     id               = args[1];
     msecperround     = Int32.Parse(args[4]);
     maxPlayersServer = Int32.Parse(args[5]);
     System.Console.WriteLine("Server Criado com argumentos");
     players         = new List <Player>();
     game            = new GameObject(msecperround);
     messages        = new List <string>();
     failureDetector = new FailureDetector();
     game.setFailureDetector(failureDetector);
 }