|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.common.Action
public class Action
Class representing the action that a Poker player might perform
Field Summary | |
---|---|
static int |
ALLIN_PASS
|
double |
amount
|
static int |
BACK
|
static int |
BET
|
static int |
BIG_BLIND
|
static int |
CALL
|
static int |
CHECK
|
static int |
DISCARD
|
int[] |
discarded
|
static int |
FOLD
|
int |
index
|
static int |
INVALID
|
static int |
JOIN_GAME
|
static int |
LEAVE_GAME
|
static int |
MUCK
|
java.lang.String |
name
|
static int |
POST_ANTE
|
static int |
POST_BLIND
|
static int |
POST_DEAD_BLIND
|
static int |
RAISE
|
static int |
RESERVE_SEAT
|
static int |
REVEAL
|
int |
seat
|
static int |
SIT_OUT
|
static int |
SKIP_TURN
|
static int |
SMALL_BLIND
|
Constructor Summary | |
---|---|
Action()
Empty constructor |
|
Action(int index)
Constructor for the given action |
|
Action(int index,
double amount)
Constructor for an action with the given index and amount |
Method Summary | |
---|---|
static Action |
allInPassAction()
|
static Action |
backAction()
|
static Action |
betAction(double amount2)
|
static Action |
bigBlindAction()
|
static Action |
callAction()
|
static Action |
checkAction()
|
static Action |
discardAction(int[] discarded)
|
int |
discards()
|
int |
discards(int i)
|
static Action |
foldAction()
|
int |
getActionIndex()
Getter for the index |
double |
getAmount()
Getter for the amount |
boolean |
isAllInPass()
|
boolean |
isBack()
|
boolean |
isBet()
|
boolean |
isBigBlind()
|
boolean |
isCall()
|
boolean |
isCheck()
|
boolean |
isDiscard()
|
boolean |
isFold()
|
boolean |
isJoin()
|
boolean |
isLeaveGame()
|
boolean |
isMuck()
|
boolean |
isPostAnte()
|
boolean |
isPostBlind()
|
boolean |
isPostDeadBlind()
|
boolean |
isRaise()
|
boolean |
isReserve()
|
boolean |
isReveal()
|
boolean |
isSitout()
|
boolean |
isSkipTurn()
|
boolean |
isSmallBlind()
|
static Action |
joinAction(java.lang.String name,
int seat,
double cash)
|
static Action |
leaveGameAction(int seat,
double amount)
|
static Action |
muckAction()
|
java.lang.String |
name()
The name should be send with join game actions |
static Action |
postAnte(double amount2)
|
static Action |
postBlindAction()
|
static Action |
postDeadBlindAction()
|
static Action |
raiseAction(double amount2)
|
static Action |
reserveAction(int seat)
|
static Action |
revealAction()
|
int |
seat()
Seat of the acting player, or the seat the player wishes to join |
static Action |
sitout()
|
static Action |
sitOutAction()
|
static Action |
skipTurnAction()
|
static Action |
smallBlindAction()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CALL
public static final int CHECK
public static final int RAISE
public static final int FOLD
public static final int ALLIN_PASS
public static final int BET
public static final int BIG_BLIND
public static final int MUCK
public static final int POST_ANTE
public static final int POST_BLIND
public static final int POST_DEAD_BLIND
public static final int SIT_OUT
public static final int SMALL_BLIND
public static final int INVALID
public static final int JOIN_GAME
public static final int RESERVE_SEAT
public static final int LEAVE_GAME
public static final int REVEAL
public static final int DISCARD
public static final int BACK
public static final int SKIP_TURN
public int index
public double amount
public int[] discarded
public java.lang.String name
public int seat
Constructor Detail |
---|
public Action()
public Action(int index, double amount)
index
- amount
- public Action(int index)
index
- Method Detail |
---|
public int getActionIndex()
public double getAmount()
public boolean isCall()
public boolean isCheck()
public boolean isRaise()
public boolean isFold()
public boolean isAllInPass()
public boolean isBet()
public boolean isBigBlind()
public boolean isMuck()
public boolean isPostAnte()
public boolean isPostBlind()
public boolean isPostDeadBlind()
public boolean isSitout()
public boolean isSmallBlind()
public boolean isJoin()
public java.lang.String name()
public int seat()
public static Action checkAction()
public static Action foldAction()
public static Action allInPassAction()
public static Action callAction()
public static Action betAction(double amount2)
amount2
- amount to bet
public static Action postAnte(double amount2)
amount2
- amount to ante
public static Action bigBlindAction()
public static Action muckAction()
public static Action postDeadBlindAction()
public static Action postBlindAction()
public static Action sitOutAction()
public static Action sitout()
public static Action raiseAction(double amount2)
amount2
- amount to raise
public static Action smallBlindAction()
public static Action joinAction(java.lang.String name, int seat, double cash)
name
- with which the player wishes to playseat
- at which the player wishes to sitcash
- the amount to bring to the table
public static Action reserveAction(int seat)
seat
- to reserve
public static Action leaveGameAction(int seat, double amount)
seat
- from which to leaveamount
- value should be < -1 if the player wishes to also be removed from the watcher list (i.e. closing the GUI)
public static Action discardAction(int[] discarded)
discarded
- positions of discarded cards
public boolean isReserve()
public boolean isLeaveGame()
public static Action revealAction()
public boolean isReveal()
public boolean isDiscard()
public int discards()
public int discards(int i)
i
-
public static Action backAction()
public boolean isBack()
public static Action skipTurnAction()
public boolean isSkipTurn()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |