|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.biotools.meerkat.Action
public class Action
An action by a player in a poker game
Field Summary | |
---|---|
static int |
ALLIN_PASS
|
static int |
BET
|
static int |
BIG_BLIND
|
static int |
CALL
|
static int |
CHECK
|
static int |
FOLD
|
static int |
INVALID
|
static int |
MUCK
|
static int |
POST_ANTE
|
static int |
POST_BLIND
|
static int |
POST_DEAD_BLIND
|
static int |
RAISE
|
static int |
SIT_OUT
|
static int |
SMALL_BLIND
|
Constructor Summary | |
---|---|
Action(int type,
double toCall,
double amount)
|
Method Summary | |
---|---|
static Action |
allInPassAction()
|
static Action |
betAction(double amountToRaise)
|
static Action |
betAction(GameInfo gi)
|
static Action |
bigBlindAction(double toPost)
|
static Action |
callAction(double toCall)
|
static Action |
callAction(GameInfo gi)
|
static Action |
checkAction()
|
static Action |
checkOrFoldAction(double toCall)
|
static Action |
checkOrFoldAction(GameInfo gi)
|
boolean |
equivalent(Action a)
|
static Action |
foldAction(double toCall)
|
static Action |
foldAction(GameInfo gi)
|
static java.lang.String |
formatCash(double value)
|
static java.lang.String |
formatCashFull(double value)
|
static Action |
getAction(int a,
double toCall,
double amount)
Create an action from classic values. |
int |
getActionIndex()
Convert an update action to a general action {fold,call,raise} or -1 if not a normal voluntary action. |
double |
getAmount()
|
double |
getToCall()
|
int |
getType()
|
boolean |
isAllInPass()
|
boolean |
isAnte()
|
boolean |
isBet()
|
boolean |
isBetOrRaise()
|
boolean |
isBigBlind()
|
boolean |
isBlind()
|
boolean |
isCall()
|
boolean |
isCheck()
|
boolean |
isCheckOrCall()
|
boolean |
isFold()
|
boolean |
isFoldOrMuck()
|
boolean |
isMuck()
|
boolean |
isPost()
|
boolean |
isPostDeadBlind()
|
boolean |
isRaise()
|
boolean |
isSitout()
|
boolean |
isSmallBlind()
|
boolean |
isVoluntary()
|
static Action |
muckAction()
|
static Action |
postAnte(double toPost)
|
static Action |
postBlindAction(double toPost)
|
static Action |
postDeadBlindAction(double toPost)
|
static Action |
raiseAction(double toCall,
double amountToRaise)
|
static Action |
raiseAction(GameInfo gi)
|
static Action |
raiseAction(GameInfo gi,
double amountToRaise)
|
static Action |
sitout()
|
static Action |
smallBlindAction(double toPost)
|
java.lang.String |
toString()
Interprets an action event into a string describing the action. |
java.lang.String |
toString2()
Interprets an action event into a string describing the action. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INVALID
public static final int FOLD
public static final int CHECK
public static final int CALL
public static final int BET
public static final int RAISE
public static final int SMALL_BLIND
public static final int BIG_BLIND
public static final int POST_BLIND
public static final int ALLIN_PASS
public static final int MUCK
public static final int POST_ANTE
public static final int SIT_OUT
public static final int POST_DEAD_BLIND
Constructor Detail |
---|
public Action(int type, double toCall, double amount)
Method Detail |
---|
public boolean equivalent(Action a)
public double getAmount()
public double getToCall()
public int getType()
public static Action postAnte(double toPost)
public static Action sitout()
public static Action postBlindAction(double toPost)
public static Action postDeadBlindAction(double toPost)
public static Action smallBlindAction(double toPost)
public static Action bigBlindAction(double toPost)
public static Action foldAction(GameInfo gi)
public static Action foldAction(double toCall)
public static Action checkOrFoldAction(GameInfo gi)
public static Action checkOrFoldAction(double toCall)
public static Action muckAction()
public static Action checkAction()
public static Action callAction(GameInfo gi)
public static Action callAction(double toCall)
public static Action betAction(GameInfo gi)
public static Action betAction(double amountToRaise)
public static Action raiseAction(GameInfo gi)
public static Action raiseAction(GameInfo gi, double amountToRaise)
public static Action raiseAction(double toCall, double amountToRaise)
public static Action allInPassAction()
public boolean isFold()
public boolean isFoldOrMuck()
public boolean isCheck()
public boolean isCall()
public boolean isCheckOrCall()
public boolean isBet()
public boolean isRaise()
public boolean isBetOrRaise()
public boolean isBlind()
public boolean isPost()
public boolean isPostDeadBlind()
public boolean isSmallBlind()
public boolean isBigBlind()
public boolean isAllInPass()
public boolean isSitout()
public boolean isMuck()
public boolean isAnte()
public int getActionIndex()
public static Action getAction(int a, double toCall, double amount)
a
- Holdem.FOLD, Holdem.CALL, or Holdem.RAISEtoCall
- amount to callamount
- amount to raise, or 0public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString2()
public static java.lang.String formatCash(double value)
public static java.lang.String formatCashFull(double value)
public boolean isVoluntary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |