Preparing "allow spectators" flag in network protocol (#215).

This commit is contained in:
lotodore
2013-10-27 00:41:13 +02:00
parent 11a45cd6d6
commit 6992c732af
8 changed files with 160 additions and 9 deletions
+7 -6
View File
@@ -72,13 +72,14 @@ enum AfterManualBlindsMode {
// For the sake of simplicity, this is a struct.
struct GameData {
GameData() : gameType(GAME_TYPE_NORMAL), maxNumberOfPlayers(0), startMoney(0),
firstSmallBlind(0), raiseIntervalMode(RAISE_ON_HANDNUMBER),
raiseSmallBlindEveryHandsValue(8), raiseSmallBlindEveryMinutesValue(1),
raiseMode(DOUBLE_BLINDS), afterManualBlindsMode(AFTERMB_DOUBLE_BLINDS),
afterMBAlwaysRaiseValue(0), guiSpeed(4), delayBetweenHandsSec(6),
playerActionTimeoutSec(20) {}
GameData() : gameType(GAME_TYPE_NORMAL), allowSpectators(true),
maxNumberOfPlayers(0), startMoney(0), firstSmallBlind(0),
raiseIntervalMode(RAISE_ON_HANDNUMBER), raiseSmallBlindEveryHandsValue(8),
raiseSmallBlindEveryMinutesValue(1), raiseMode(DOUBLE_BLINDS),
afterManualBlindsMode(AFTERMB_DOUBLE_BLINDS), afterMBAlwaysRaiseValue(0),
guiSpeed(4), delayBetweenHandsSec(6), playerActionTimeoutSec(20) {}
GameType gameType;
bool allowSpectators;
int maxNumberOfPlayers;
int startMoney;
int firstSmallBlind;