Пример #1
0
 public Game(ClientObject client1, ClientObject client2, ServerObject server, string idGame)
 {
     player1           = client1;
     player1.numinGame = 1;
     player2           = client2;
     player2.numinGame = 2;
     this.server       = server;
     this.idGame       = idGame;
     //добавить в БД информацию что пользователи в игре
     server.SetInGame(player1.GetName());
     server.SetInGame(player2.GetName());
     server.AddGame(player1.GetName(), player2.GetName(), idGame);
 }