|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.ualberta.cs.poker.free.academy25.PlayerInfoDynamics
public class PlayerInfoDynamics
Constructor Summary | |
---|---|
PlayerInfoDynamics(GameInfoDynamics dynamics,
GameInfoImpl parent,
int playerIndex)
Creates a new instance of PlayerInfoDynamics |
Method Summary | |
---|---|
double |
getAmountCallable()
Gets the amount to call |
double |
getAmountInPot()
Gets the amount in pot. |
double |
getAmountInPotThisRound()
This gets the amount in pot for the current player during the current round of betting. |
double |
getAmountRaiseable()
Gets the current bet size (getCurrentBetSize()). |
double |
getAmountToCall()
The amount to call (difference between the stakes and this player's pot). |
double |
getBankRoll()
The bankroll of this player. |
double |
getBankRollAtRisk()
The bankroll at risk. |
double |
getBankRollAtStartOfHand()
The bankroll at the start of the current hand. |
double |
getBankRollInSmallBets()
Returns the bankroll of this player in small bets. |
GameInfo |
getGameInfo()
Returns the associated GameInfo object |
int |
getLastAction()
Returns the last action this player played in this hand, or -1 if no such action exists. |
java.lang.String |
getName()
Returns "0" or "1" |
double |
getNetGain()
Gets the net gain for the hand. |
double |
getRaiseAmount(double amountToRaise)
Returns the current bet size. |
Hand |
getRevealedHand()
|
int |
getSeat()
|
boolean |
hasActedThisRound()
|
boolean |
hasEnoughToRaise()
Always true (infinite bankrolls). |
boolean |
inGame()
Players are always in the game. |
boolean |
isActive()
A player is active until they fold or lose a showdown. |
boolean |
isAllIn()
Players are never all in |
boolean |
isButton()
Returns true if this player is the button |
boolean |
isCommitted()
Test for a voluntary commitment by the player. |
boolean |
isFolded()
A player has folded if his last action was fold. |
boolean |
isSittingOut()
Players never sit out. |
java.lang.String |
toString()
Returns the name, "0" or "1" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PlayerInfoDynamics(GameInfoDynamics dynamics, GameInfoImpl parent, int playerIndex)
dynamics
- the underlying dynamics objectparent
- the associated GameInfo objectplayerIndex
- the seat of this playerMethod Detail |
---|
public double getAmountCallable()
public double getAmountInPot()
public double getAmountInPotThisRound()
public double getAmountRaiseable()
public double getAmountToCall()
public double getBankRoll()
public double getBankRollAtRisk()
public double getBankRollAtStartOfHand()
public double getBankRollInSmallBets()
public GameInfo getGameInfo()
public int getLastAction()
public java.lang.String getName()
public double getNetGain()
public double getRaiseAmount(double amountToRaise)
public Hand getRevealedHand()
public int getSeat()
public boolean hasActedThisRound()
public boolean hasEnoughToRaise()
public boolean inGame()
public boolean isActive()
public boolean isAllIn()
public boolean isButton()
public boolean isCommitted()
public boolean isFolded()
public boolean isSittingOut()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |