Ejemplo n.º 1
0
 public virtual void AddPlayer(Player p)
 {
     lock (players)
     {
         players.Add(p);
     }
 }
Ejemplo n.º 2
0
 public virtual void RemovePlayer(Player p)
 {
     lock (players)
     {
         players.Remove(p);
     }
 }
Ejemplo n.º 3
0
 public ConnectFourGame(Player owner)
     : base(owner, GameType.CONNECT_FOUR)
 {
     maxPlayers = 2;
 }
Ejemplo n.º 4
0
 public Game(Player owner, GameType type)
 {
     this.id = NewGameID();
     this.owner = owner;
     this.type = type;
 }