Made betting work correctly.
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
#include "../libs.h"
|
||||
#include "../util/flags.h"
|
||||
#include "bet.h"
|
||||
#include "card.h"
|
||||
|
||||
@ -21,18 +22,20 @@
|
||||
// Player States
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/** State for whether or not a player has folded */
|
||||
#define POKER_PLAYER_STATE_FOLDED 0x01
|
||||
#define POKER_PLAYER_STATE_FOLDED flagDefine(0)
|
||||
|
||||
/** State for whether or not a player is showing their hand */
|
||||
#define POKER_PLAYER_STATE_SHOWING 0x02
|
||||
#define POKER_PLAYER_STATE_SHOWING flagDefine(1)
|
||||
|
||||
/** State for whether or not the player is out */
|
||||
#define POKER_PLAYER_STATE_OUT 0x04
|
||||
#define POKER_PLAYER_STATE_OUT flagDefine(2)
|
||||
|
||||
/** Flag that is reset at the start of each round, and set when move occurs. */
|
||||
#define POKER_PLAYER_STATE_ROUND_MOVE flagDefine(3)
|
||||
|
||||
/** The index that the player who is the human... is */
|
||||
#define POKER_PLAYER_HUMAN_INDEX 0x02
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Player Definition
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user