|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.plugins.pokergames.OurPlayerInfo
public class OurPlayerInfo
Our implementation for PlayerInfo
Constructor Summary | |
---|---|
OurPlayerInfo(GameInfo gameInfo,
PlayerInfoFieldsMessage info)
|
|
OurPlayerInfo(OurPlayerInfo previous)
for cloning players for deep copies |
|
OurPlayerInfo(java.lang.String name,
java.lang.String AccountName,
double bankRoll,
int mySeat,
GameInfo gameInfo2)
|
Method Summary | |
---|---|
void |
decreaseBankRoll(double amount)
|
GameInfo |
gameInfo()
|
java.lang.String |
getAccountName()
Returns the account name of this player. |
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 |
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. |
boolean |
getHasActedThisRound()
|
Hand |
getHoleCards()
|
PlayerInfoFieldsMessage |
getInfoFields()
|
double |
getInPot()
|
double |
getInPotThisRound()
|
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 |
int |
getState()
|
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 |
PokerGame.Blind |
hasToPostBlind()
Get whether the player has sat out some blinds, and has to pay any as a penalty for entering the game |
void |
increaseBankRoll(double amount)
|
void |
increaseInPot(double amount)
|
void |
increaseInPotThisRound(double amount)
|
boolean |
inGame()
See if the player is dealt into the current game |
boolean |
isActive()
Check if the player is still active in the hand |
boolean |
isAllIn()
Check if the player is all-in |
boolean |
isButton()
Check if the player is all-in |
boolean |
isCommitted()
Check if the player has voluntarily committed this round |
boolean |
isFolded()
Check if the player has folded |
boolean |
isSittingOut()
Check if the player is sitting out |
static void |
main(java.lang.String[] args)
|
void |
setAccountName(java.lang.String accountName)
|
void |
setBankRoll(double bankRoll)
|
void |
setBankRollAtStartOfHand(double bankRollAtStartOfHand)
|
void |
setGameInfo(GameInfo gameInfo)
|
void |
setHasActedThisRound(boolean hasActedThisRound)
|
void |
setHasToPostBlind(PokerGame.Blind amount)
|
void |
setHoleCards(Hand holeCards)
|
void |
setInPot(double inPot)
|
void |
setInPotThisRound(double inPotThisRound)
|
void |
setLastAction(int lastAction)
|
void |
setLastGameInfo(GameModel info)
|
void |
setLastGameInfo(GameModelInfoMessage info)
|
void |
setName(java.lang.String myName)
|
void |
setSeat(int seat)
|
void |
setState(int state)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OurPlayerInfo(java.lang.String name, java.lang.String AccountName, double bankRoll, int mySeat, GameInfo gameInfo2)
public OurPlayerInfo(GameInfo gameInfo, PlayerInfoFieldsMessage info)
public OurPlayerInfo(OurPlayerInfo previous)
previous
- Method Detail |
---|
public PlayerInfoFieldsMessage getInfoFields()
public void setGameInfo(GameInfo gameInfo)
public GameInfo gameInfo()
public void setLastGameInfo(GameModelInfoMessage info)
public void setLastGameInfo(GameModel info)
public void setAccountName(java.lang.String accountName)
public void setName(java.lang.String myName)
public void setSeat(int seat)
public void setState(int state)
public int getState()
public void setBankRoll(double bankRoll)
public void increaseBankRoll(double amount)
public void decreaseBankRoll(double amount)
public void setInPot(double inPot)
public void increaseInPot(double amount)
public double getInPot()
public void setBankRollAtStartOfHand(double bankRollAtStartOfHand)
public void setInPotThisRound(double inPotThisRound)
public void increaseInPotThisRound(double amount)
public double getInPotThisRound()
public void setHoleCards(Hand holeCards)
public Hand getHoleCards()
public void setLastAction(int lastAction)
public void setHasActedThisRound(boolean hasActedThisRound)
public boolean getHasActedThisRound()
public PokerGame.Blind hasToPostBlind()
PlayerInfo
hasToPostBlind
in interface PlayerInfo
public void setHasToPostBlind(PokerGame.Blind amount)
public java.lang.String getAccountName()
getAccountName
in interface PlayerInfo
public double getAmountCallable()
PlayerInfo
getAmountCallable
in interface PlayerInfo
public double getAmountInPot()
PlayerInfo
getAmountInPot
in interface PlayerInfo
public double getAmountInPotThisRound()
PlayerInfo
getAmountInPotThisRound
in interface PlayerInfo
public double getAmountRaiseable()
PlayerInfo
getAmountRaiseable
in interface PlayerInfo
public double getAmountToCall()
PlayerInfo
getAmountToCall
in interface PlayerInfo
public double getBankRoll()
PlayerInfo
getBankRoll
in interface PlayerInfo
public double getBankRollAtStartOfHand()
PlayerInfo
getBankRollAtStartOfHand
in interface PlayerInfo
public double getBankRollInSmallBets()
PlayerInfo
getBankRollInSmallBets
in interface PlayerInfo
public GameInfo getGameInfo()
PlayerInfo
getGameInfo
in interface PlayerInfo
public int getLastAction()
PlayerInfo
getLastAction
in interface PlayerInfo
public java.lang.String getName()
PlayerInfo
getName
in interface PlayerInfo
public double getNetGain()
PlayerInfo
getNetGain
in interface PlayerInfo
public double getRaiseAmount(double amountToRaise)
PlayerInfo
getRaiseAmount
in interface PlayerInfo
amountToRaise
- the amount desired to raise
public Hand getRevealedHand()
PlayerInfo
getRevealedHand
in interface PlayerInfo
public int getSeat()
PlayerInfo
getSeat
in interface PlayerInfo
public boolean hasActedThisRound()
PlayerInfo
hasActedThisRound
in interface PlayerInfo
public boolean hasEnoughToRaise()
PlayerInfo
hasEnoughToRaise
in interface PlayerInfo
public boolean inGame()
PlayerInfo
inGame
in interface PlayerInfo
public boolean isActive()
PlayerInfo
isActive
in interface PlayerInfo
public boolean isAllIn()
PlayerInfo
isAllIn
in interface PlayerInfo
public boolean isButton()
PlayerInfo
isButton
in interface PlayerInfo
public boolean isCommitted()
PlayerInfo
isCommitted
in interface PlayerInfo
public boolean isFolded()
PlayerInfo
isFolded
in interface PlayerInfo
public boolean isSittingOut()
PlayerInfo
isSittingOut
in interface PlayerInfo
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |