Exemple #1
0
 public Room(Guid id, int max)
 {
     if (max > 1)
     {
         this._maxPlayer = max;
         this._players   = new List <Guid>();
         this._id        = id;
         this._game      = null;
     }
     else
     {
         throw new Exception("Maximum user must be morethan 1!");
     }
 }
Exemple #2
0
 public void StartGame(string gameName, GameConfig config = null, IPlayerRepository repo = null)
 {
     _game = GameFactory.Create(gameName, _players, repo, config, "");
 }
Exemple #3
0
 public Room()
 {
     this._game      = null;
     this._maxPlayer = 0;
     this._players   = new List <Guid>();
 }