/* Setup Game Board: * Build Decks and Locations * Build Players, Draw Hands * Set Player Deck * Infect some cities */ public game(lobbyVals settings) { mux.WaitOne(); this.settings = settings; difficulty = settings.difficulty; buildDecks(); buildLocations(); state.vDeck.Shuffle(); state.pDeck.Shuffle(); // Build Players state.players = new List<Player>(); for (int i = 0; i < settings.players.Length; i++) { if (settings.slots[i]) // Check if Slot is Empty { state.players.Add(new Player(settings.players[i], settings.roles[i])); } } // Draw Player Hands drawHand(); initPlayerDeck(); buildStation(blue[0]); //Build Station in Atlanta initInfection(); int m = 0; mux.ReleaseMutex(); }
public SPI(lobbyVals gameParams) { Game = new game(gameParams); }