/// <summary> /// Creates a new MonopolyDeal Game /// </summary> /// <param name="playersP">List of PlayerModels</param> public MonopolyDeal(List<PlayerModel> playersP, Guid thisGameGuidP, ILobby lobby) { this.lobby = lobby; //Assign Guid to this game of Monopoly Deal MONOPOLY_DEAL_GAME_GUID = thisGameGuidP; gameModelGuid = thisGameGuidP; //Assign Players to this game of Monopoly Deal players = playersP; gameStateManager = new GameStateManagerToMoveAdapter(this); addPlayersToIDLookup(playersP); initialState = createInitialState(players); gameStates.Add(initialState); currentState = initialState; //State added to gameStates list, notify all players, wait for responses }
/// <summary> /// Creates a new MonopolyDeal Game /// </summary> /// <param name="playersP">List of PlayerModels</param> public MonopolyDeal(List <PlayerModel> playersP, Guid thisGameGuidP, ILobby lobby) { this.lobby = lobby; //Assign Guid to this game of Monopoly Deal MONOPOLY_DEAL_GAME_GUID = thisGameGuidP; gameModelGuid = thisGameGuidP; //Assign Players to this game of Monopoly Deal players = playersP; gameStateManager = new GameStateManagerToMoveAdapter(this); addPlayersToIDLookup(playersP); initialState = createInitialState(players); gameStates.Add(initialState); currentState = initialState; //State added to gameStates list, notify all players, wait for responses }