Added error handling for networking stuff. Now checking the player action.
This commit is contained in:
@@ -46,6 +46,15 @@ enum PlayerAction {
|
||||
PLAYER_ACTION_RAISE,
|
||||
PLAYER_ACTION_ALLIN };
|
||||
|
||||
enum PlayerActionCode
|
||||
{
|
||||
ACTION_CODE_VALID = 0,
|
||||
ACTION_CODE_INVALID_STATE,
|
||||
ACTION_CODE_NOT_YOUR_TURN,
|
||||
ACTION_CODE_NOT_ALLOWED
|
||||
};
|
||||
|
||||
|
||||
enum Button {
|
||||
BUTTON_NONE = 0,
|
||||
BUTTON_DEALER,
|
||||
|
||||
Reference in New Issue
Block a user