|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpoker.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 |
RAISE
|
static int |
SMALL_BLIND
|
Constructor Summary | |
---|---|
Action(int type,
double toCall,
double amount)
|
Method Summary | |
---|---|
static Action |
actionFilter(Action a,
int seat,
Card c1,
Card c2,
GameInfo gi)
Do some basic checks to change the action if game conditions warrant it. |
static Action |
allInPassAction()
|
static Action |
betAction(double amountToRaise)
|
static Action |
bigBlindAction(double toPost)
|
static Action |
callAction(double toCall)
|
static Action |
checkAction()
|
static Action |
checkOrFoldAction(double toCall)
|
boolean |
equivalent(Action a)
|
static Action |
foldAction(double toCall)
|
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 |
isRaise()
|
boolean |
isSmallBlind()
|
boolean |
isVoluntary()
|
static Action |
muckAction()
|
static Action |
postAnte(double toPost)
|
static Action |
postBlindAction(double toPost)
|
static Action |
raiseAction(double toCall,
double amountToRaise)
|
static Action |
smallBlindAction(double toPost)
|
java.lang.String |
toString()
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
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 postBlindAction(double toPost)
public static Action smallBlindAction(double toPost)
public static Action bigBlindAction(double toPost)
public static Action foldAction(double toCall)
public static Action checkOrFoldAction(double toCall)
public static Action muckAction()
public static Action checkAction()
public static Action callAction(double toCall)
public static Action betAction(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 isSmallBlind()
public boolean isBigBlind()
public boolean isAllInPass()
public boolean isMuck()
public boolean isAnte()
public int getActionIndex()
public static Action actionFilter(Action a, int seat, Card c1, Card c2, GameInfo gi)
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
pos
- the player that actedaction
- the action code
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 |