|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GameInfo
All of the public game information for the current hand of poker is available through the GameInfo object.
Method Summary | |
---|---|
boolean |
canRaise(int seat)
See if the player in the given seat is able to raise |
double |
getAmountToCall(int seat)
Get a player's amount to call |
double |
getAnte()
Get the amount of the ante, if any |
double |
getBankRoll(int seat)
Get a player's bankroll |
double |
getBankRollAtRisk(int seat)
Get the maximum amount the player in the given seat can risk in this hand. |
double |
getBetsToCall(int seat)
Get a player's amount to call in bets |
int |
getBigBlindSeat()
Get the big blind seat |
double |
getBigBlindSize()
Get the amount of the big blind |
Hand |
getBoard()
Get the board cards |
int |
getButtonSeat()
Get the seat the button is on (could be dead button) |
double |
getCurrentBetSize()
Get the amount of the betting increment (for fixed-limit) |
int |
getCurrentPlayerSeat()
Get the seat for the current player to act |
double |
getEligiblePot(int seat)
Get the amount in the pot that a player is eligble to win. |
long |
getGameID()
The unique game identifier for this hand |
java.lang.String |
getLogDirectory()
Get the Log Directory used by all players for keeping logs |
double |
getMainPotSize()
Get the size of the main pot. |
double |
getMinRaise()
Get the smallest legal raise |
int |
getNumActivePlayers()
Get the number of players still active (not folded) in the hand |
int |
getNumActivePlayersNotAllIn()
The number of active players that are not all-in |
int |
getNumberOfAllInPlayers()
Get the number of players in the hand that are all-in |
int |
getNumPlayers()
Get the number of players dealt into the hand |
int |
getNumRaises()
The number of bets and raises made during the current betting round |
int |
getNumSeats()
The number of seats at the table |
int |
getNumSidePots()
Get the number of side pots |
int |
getNumToAct()
The number of players still to act in this betting round if there are no further raises. |
int |
getNumWinners()
The number of players that were awarded a pot in this hand |
PlayerInfo |
getPlayer(int seat)
Get state information for a player in a given seat |
PlayerInfo |
getPlayer(java.lang.String name)
Get state information for a player in a given seat |
java.lang.String |
getPlayerName(int seat)
Get the name of the player in a given seat |
int |
getPlayerSeat(java.lang.String name)
Get the seat number for a player by name |
java.util.List |
getPlayersInPot(double amountIn)
Get a list of all players eligible to win a pot with the given minimum stakes |
double |
getRake()
Get the amount raked from pot so far |
double |
getSidePotSize(int i)
Get the size of the side pot amount. |
int |
getSmallBlindSeat()
Get the small blind seat (could be dead small blind) |
double |
getSmallBlindSize()
Get the amount of the small blind |
int |
getStage()
Get the current game stage (Holdem.PREFLOP, Holdem.FLOP, Holdem.TURN, Holdem.RIVER) |
double |
getStakes()
The stakes are the amount each player must have invested in the pot to stay active in the hand. |
double |
getTotalPotSize()
Get the total size of the pot including the main pot and all side pots. |
int |
getUnacted()
Get the number of players who have not acted yet this round |
boolean |
inGame(int seat)
See if the player in the given seat is dealt into the hand (not sitting out or empty). |
boolean |
isActive(int seat)
See if the player in the given seat is still active in the hand |
boolean |
isCommitted(int seat)
See if a player has invested anything in the current round |
boolean |
isFixedLimit()
Determine if the game is fixed-limit |
boolean |
isFlop()
See if it is currently the flop round |
boolean |
isGameOver()
See if the hand is over |
boolean |
isNoLimit()
Determine if the game is no-limit |
boolean |
isPostFlop()
See if it is currently the post-flop |
boolean |
isPotLimit()
Determine if the game is pot-limit |
boolean |
isPreFlop()
See if it is currently the pre-flop |
boolean |
isReverseBlinds()
In reverse blinds mode, if the game is Heads-up, the small blind is placed on the button. |
boolean |
isRiver()
See if it is currently the river round |
boolean |
isSimulation()
Determine if the game is in simulation mode. |
boolean |
isTurn()
See if it is currently the turn round |
boolean |
isZipMode()
We should play as fast and crudely as possible because the user has requested we zip to the end of the hand. |
int |
nextActivePlayer(int seat)
Get the seat number of the next active player at the table (skips empty seats and folded players) |
int |
nextPlayer(int seat)
Get the seat number of the next player at the table (skips empty seats) |
int |
nextSeat(int seat)
Get the next seat number clockwise from the given seat |
int |
previousPlayer(int seat)
Get the seat number of the previous player at the table (skips empty seats) |
Method Detail |
---|
java.lang.String getLogDirectory()
long getGameID()
int getStage()
boolean isPreFlop()
boolean isPostFlop()
boolean isFlop()
boolean isTurn()
boolean isRiver()
double getAnte()
double getSmallBlindSize()
double getBigBlindSize()
double getCurrentBetSize()
int nextSeat(int seat)
seat
- a seat number
int nextPlayer(int seat)
seat
- a seat number
int previousPlayer(int seat)
seat
- a seat number
int nextActivePlayer(int seat)
seat
- a seat number
Hand getBoard()
double getTotalPotSize()
double getMainPotSize()
int getNumSidePots()
double getSidePotSize(int i)
i
- the side pot index [0..n-1]
int getButtonSeat()
int getSmallBlindSeat()
int getBigBlindSeat()
int getCurrentPlayerSeat()
double getEligiblePot(int seat)
seat
- the player in question
int getNumPlayers()
int getNumActivePlayers()
int getNumberOfAllInPlayers()
int getNumActivePlayersNotAllIn()
int getNumToAct()
int getUnacted()
int getNumSeats()
double getStakes()
java.util.List getPlayersInPot(double amountIn)
amountIn
- the amount a player must have in the pot to be eligible to win it
PlayerInfo getPlayer(int seat)
seat
- the seat the check
PlayerInfo getPlayer(java.lang.String name)
name
- the player to check
double getBetsToCall(int seat)
seat
- the seat number to check
double getAmountToCall(int seat)
seat
- the seat number to check
double getBankRoll(int seat)
seat
- the seat number to check
double getBankRollAtRisk(int seat)
seat
- the seat number to check
java.lang.String getPlayerName(int seat)
seat
- the seat to check
int getPlayerSeat(java.lang.String name)
name
- the name of a player
boolean canRaise(int seat)
seat
- a player's seat number
boolean inGame(int seat)
seat
- a player's seat number
boolean isActive(int seat)
seat
- a player's seat number
boolean isCommitted(int seat)
seat
- the seat number to check
int getNumWinners()
boolean isGameOver()
boolean isNoLimit()
boolean isFixedLimit()
boolean isPotLimit()
int getNumRaises()
double getMinRaise()
double getRake()
boolean isSimulation()
boolean isZipMode()
boolean isReverseBlinds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |