|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlayerInfo
All of the public state information for a player in the current hand
Method Summary | |
---|---|
double |
getAmountCallable()
get the amount of the current bet that the player can call |
double |
getAmountInPot()
Obtain the amount the player has invested in the pot. |
double |
getAmountInPotThisRound()
Obtain the amount the player has invested in the pot this round |
double |
getAmountRaiseable()
Get the maximum amount the player can raise |
double |
getAmountToCall()
Determine the amount a player must pay to stay in the game |
double |
getBankRoll()
Get the current bankroll |
double |
getBankRollAtRisk()
The maximum we can risk in the hand. |
double |
getBankRollAtStartOfHand()
Get the player's bankroll at the start of the hand (i.e., before any actions including antes and blinds). |
double |
getBankRollInSmallBets()
Get the current bankroll as a multiple of the big blind |
GameInfo |
getGameInfo()
Get the context of the last action made by this player. |
int |
getLastAction()
A single integer code for the last action made |
java.lang.String |
getName()
Obtain the player's name |
double |
getNetGain()
Get the net amount won or lost since the start of the current hand |
double |
getRaiseAmount(double amountToRaise)
Return the amount the player can raise, given the desired amount to raise. |
Hand |
getRevealedHand()
Obtain the hand revealed by this player |
int |
getSeat()
Get the player's seat number in the GameInfo |
boolean |
hasActedThisRound()
Check if a player has made at least one action this round |
boolean |
hasEnoughToRaise()
Check if the player has enough chips to complete a raise |
boolean |
inGame()
See if the player is dealt into the current game |
boolean |
isActive()
Return true if the player is still active in the hand |
boolean |
isAllIn()
Determine if a player is All-In |
boolean |
isButton()
Check if the player is currently the button |
boolean |
isCommitted()
Test if a player has volunatrily committed yet in this round |
boolean |
isFolded()
Return true if the player has folded |
boolean |
isSittingOut()
Determine if a player is sitting out |
java.lang.String |
toString()
|
Method Detail |
---|
double getNetGain()
double getBankRoll()
double getBankRollAtStartOfHand()
double getBankRollInSmallBets()
boolean inGame()
int getSeat()
java.lang.String getName()
boolean isAllIn()
boolean isSittingOut()
Hand getRevealedHand()
double getAmountToCall()
boolean isCommitted()
boolean hasActedThisRound()
double getAmountInPot()
double getAmountInPotThisRound()
int getLastAction()
GameInfo getGameInfo()
boolean isActive()
boolean isFolded()
boolean isButton()
boolean hasEnoughToRaise()
double getAmountRaiseable()
double getAmountCallable()
java.lang.String toString()
toString
in class java.lang.Object
double getBankRollAtRisk()
double getRaiseAmount(double amountToRaise)
amountToRaise
- the desired amount to raise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |