Interface IPlayerAction
public interface IPlayerAction
The IPlayerAction interface contains information related to one specific action
by a player.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe type of action: FOLD, CHECK, CALL or RAISE. -
Method Summary
Modifier and TypeMethodDescriptionThe type of action: FOLD, CHECK, CALL or RAISE.longChip amount associated with the action.intThe player associated with this action.intThe street associated with this action.
-
Method Details
-
getAmount
long getAmount()Chip amount associated with the action. The amount is always zero for folds and checks. For calls this is the effective amount to call by the player. For raises this is the amount raised to.- Returns:
- amount in 1/100th of chips
-
getPlayer
int getPlayer()The player associated with this action.- Returns:
- player index
-
getStreet
int getStreet()The street associated with this action.- Returns:
- street index
-
getActionType
IPlayerAction.ActionType getActionType()The type of action: FOLD, CHECK, CALL or RAISE. Bets and raises both use the action type RAISE.- Returns:
- action type
-