Пример #1
0
 public Client(TcpListener listener, int id)
 {
     this.listener = listener;
     this.id = id;
     Player = new Player(id);
 }
Пример #2
0
 public Client(int id)
 {
     this.id = id;
     Player = new Player(id);
     isConnected = true;
 }
Пример #3
0
 public void addPlayer(Player player)
 {
     this.players.Add(player);
 }