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