Client engine factory needs to be free of configuration file (configuration provided by server). Separated specific start data from general game data. Sending client game object to GUI after creation. Client thread now manages player and game data.
This commit is contained in:
+6
-1
@@ -26,12 +26,17 @@
|
||||
struct GameData
|
||||
{
|
||||
GameData() : numberOfPlayers(0), startCash(0), smallBlind(0),
|
||||
handsBeforeRaise(1), guiSpeed(4), startDealerPos(0) {}
|
||||
handsBeforeRaise(1), guiSpeed(4) {}
|
||||
int numberOfPlayers;
|
||||
int startCash;
|
||||
int smallBlind;
|
||||
int handsBeforeRaise;
|
||||
int guiSpeed;
|
||||
};
|
||||
|
||||
struct StartData
|
||||
{
|
||||
StartData() : startDealerPos(0) {}
|
||||
int startDealerPos;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user