com.asdf.plugins.pokergames
Interface GameInfo

All Known Implementing Classes:
GameModel

public interface GameInfo


Method Summary
 boolean canRaise(int arg0)
          See if the player in the given seat is able to raise Calls the PlayerInfo's corresponding method.
 double getAmountToCall(int arg0)
          Get a player's amount to call Calls the PlayerInfo's corresponding method.
 double getAnte()
          Get the amount of the ante, if any
 double getBankRoll(int arg0)
          Get a player's bankroll Calls the PlayerInfo's corresponding method.
 double getBetsToCall(int arg0)
          Get a player's amount to call in bets
 int getBigBlindSeat()
          Get the big blind seat
 double getBigBlindSize()
          Get the amount of the big blind.
 Hand getBoard()
          Get the board cards
 int getButtonSeat()
          Get the seat the button is on (could be dead button)
 double getCurrentBetSize()
          Get the amount of the betting increment (for fixed-limit)
 int getCurrentPlayerSeat()
          Get the seat for the current player to act
 double getEligiblePot(int arg0)
          Get the amount in the pot that a player is eligible to win.
 long getGameID()
          The game identifier for this table
 double getMainPotSize()
          Get the size of the main pot.
 double getMinRaise()
          Get the smallest legal raise
 int getNumActivePlayers()
          Get the number of players still active (not folded) in the hand
 int getNumActivePlayersNotAllIn()
          Get the number of active players that are not all-in
 int getNumberOfAllInPlayers()
          Get the number of players in the hand that are all-in
 int getNumPlayers()
          Get the number of players dealt into the hand
 int getNumRaises()
          Get the number of bets and raises made during the current betting round
 int getNumSeats()
          The number of seats at the table
 int getNumToAct()
          Get the number of players still to act in this betting round if there are no further raises.
 int getNumWinners()
          Get the number of players that were awarded a pot in this hand
 PlayerInfo getPlayer(int arg0)
          Get state information for a player in a given seat
 PlayerInfo getPlayer(java.lang.String arg0)
          Get state information for a player with a given name
 java.lang.String getPlayerName(int arg0)
          Get the name of the player in a given seat
 int getPlayerSeat(java.lang.String arg0)
          Get the seat number for a player by name
 java.util.List<PlayerInfo> getPlayersInPot(double arg0)
          Get a list of all players eligible to win a pot with the given minimum stakes
 int getSmallBlindSeat()
          Get the small blind seat (could be dead small blind)
 double getSmallBlindSize()
          Get the amount of the small blind
 Stage getStage()
          Get the current game stage
 double getStakes()
          The stakes are the amount each player must have invested in the pot to stay active in the hand.
 double getTotalPotSize()
          Get the total size of the pot including the main pot and all side pots.
 int getUnacted()
          Get the number of players who have not acted yet this round
 PokerGame.Blind hasToPostBlind(int seat)
          Get whether the player has sat out some blinds, and has to pay any as a penalty for entering the game
 boolean inGame(int arg0)
          See if the player in the given seat is dealt into the hand (not sitting out or empty).
 boolean isActive(int arg0)
          See if the player in the given seat is still active in the hand
 boolean isCommitted(int arg0)
          See if a player has invested anything in the current round
 boolean isFixedLimit()
          Determine if the game is fixed-limit
 boolean isNoLimit()
          Determine if the game is no-limit
 boolean isPotLimit()
          Determine if the game is pot-limit
 boolean isReserved(int seat)
          See if given seat is reserved
 boolean isReverseBlinds()
          In reverse blinds mode, if the game is Heads-up, the small blind is placed on the button.
 boolean isSimulation()
          Determine if the game is in simulation mode.
 boolean isZipMode()
          We should play as fast and crudely as possible because the user has requested we zip to the end of the hand.
 double maxBuy()
          See how much a player can at most bring to table with him, her or it
 double minBuy()
          See how much a player must at least bring to table with him, her or it
 int nextActivePlayer(int arg0)
          Get the seat number of the next active player at the table (skips empty seats and folded players)
 int nextPlayer(int arg0)
          Get the seat number of the next active player at the table (skips empty seats and folded players)
 int nextSeat(int arg0)
          Get the seat number of the next seat clockwise at the table
 int previousPlayer(int arg0)
          Get the seat number of the previous player at the table (skips empty seats)
 

Method Detail

hasToPostBlind

PokerGame.Blind hasToPostBlind(int seat)
Get whether the player has sat out some blinds, and has to pay any as a penalty for entering the game

Parameters:
seat - of the player
Returns:
missed blinds

isReserved

boolean isReserved(int seat)
See if given seat is reserved

Parameters:
seat -
Returns:
true if the seat is reserved

minBuy

double minBuy()
See how much a player must at least bring to table with him, her or it

Returns:
maximum amount

maxBuy

double maxBuy()
See how much a player can at most bring to table with him, her or it

Returns:
maximum amount

canRaise

boolean canRaise(int arg0)
See if the player in the given seat is able to raise Calls the PlayerInfo's corresponding method.

Parameters:
arg0 - position of the player
Returns:
true if the player has enough chips to raise after calling
Throws:
InvalidSeatException, - if the table does not have such a seat
EmptySeatException, - if the given seat is empty

getAmountToCall

double getAmountToCall(int arg0)
Get a player's amount to call Calls the PlayerInfo's corresponding method.

Parameters:
arg0 - position of the player
Returns:
the amount given player has to call
Throws:
InvalidSeatException, - if the table does not have such a seat
EmptySeatException, - if the given seat is empty

getAnte

double getAnte()
Get the amount of the ante, if any

Returns:
the value of ante

getBankRoll

double getBankRoll(int arg0)
Get a player's bankroll Calls the PlayerInfo's corresponding method.

Parameters:
arg0 - position of the player
Returns:
the given player's bankroll
Throws:
InvalidSeatException, - if the table does not have such a seat
EmptySeatException, - if the given seat is empty

getBetsToCall

double getBetsToCall(int arg0)
Get a player's amount to call in bets

Parameters:
arg0 - position of the player
Throws:
InvalidSeatException, - if the table does not have such a seat
EmptySeatException, - if the given seat is empty

getBigBlindSeat

int getBigBlindSeat()
Get the big blind seat

Returns:
the big blind seat

getBigBlindSize

double getBigBlindSize()
Get the amount of the big blind.

Returns:
the amount of the big blind

getBoard

Hand getBoard()
Get the board cards

Returns:
new hand with the board cards

getButtonSeat

int getButtonSeat()
Get the seat the button is on (could be dead button)

Returns:
button seat

getCurrentBetSize

double getCurrentBetSize()
Get the amount of the betting increment (for fixed-limit)

Returns:
current bet size, nothing relevant if not fixed-limit

getCurrentPlayerSeat

int getCurrentPlayerSeat()
Get the seat for the current player to act

Returns:
the seat for the current player to act

getEligiblePot

double getEligiblePot(int arg0)
Get the amount in the pot that a player is eligible to win.

Parameters:
arg0 - position of the player
Returns:
the amount the player is eligible to win
Throws:
InvalidSeatException, - if the table does not have such a seat
EmptySeatException, - if the given seat is empty

getGameID

long getGameID()
The game identifier for this table

Returns:
the gameID

getMainPotSize

double getMainPotSize()
Get the size of the main pot.

Returns:
the main pot

getMinRaise

double getMinRaise()
Get the smallest legal raise

Returns:
the minimum raise

getNumActivePlayers

int getNumActivePlayers()
Get the number of players still active (not folded) in the hand

Returns:
the number of active players

getNumActivePlayersNotAllIn

int getNumActivePlayersNotAllIn()
Get the number of active players that are not all-in

Returns:
the number of players not all-in

getNumPlayers

int getNumPlayers()
Get the number of players dealt into the hand

Returns:
the number of players dealt in to the hand

getNumRaises

int getNumRaises()
Get the number of bets and raises made during the current betting round

Returns:
the number of raises made during current round

getNumSeats

int getNumSeats()
The number of seats at the table

Returns:
the number of seats

getNumToAct

int getNumToAct()
Get the number of players still to act in this betting round if there are no further raises.

Returns:
the number of players to act

getNumWinners

int getNumWinners()
Get the number of players that were awarded a pot in this hand

Returns:
the number of winners

getNumberOfAllInPlayers

int getNumberOfAllInPlayers()
Get the number of players in the hand that are all-in

Returns:
number of players all-in

getPlayer

PlayerInfo getPlayer(int arg0)
Get state information for a player in a given seat

Parameters:
arg0 - position of the player
Returns:
PlayerInfo for given player, or null if seat is empty
Throws:
InvalidSeatException, - if the table does not have such a seat

getPlayer

PlayerInfo getPlayer(java.lang.String arg0)
Get state information for a player with a given name

Parameters:
arg0 - the name of desired player
Returns:
PlayerInfo for given player, or null if not found

getPlayerName

java.lang.String getPlayerName(int arg0)
Get the name of the player in a given seat

Parameters:
arg0 - position of the player
Returns:
the name of the player in the seat
Throws:
InvalidSeatException, - if the table does not have such a seat
EmptySeatException, - if the given seat is empty

getPlayerSeat

int getPlayerSeat(java.lang.String arg0)
Get the seat number for a player by name

Parameters:
arg0 - the name of the player
Returns:
the seat the player is in or -1 if not found

getPlayersInPot

java.util.List<PlayerInfo> getPlayersInPot(double arg0)
Get a list of all players eligible to win a pot with the given minimum stakes

Parameters:
arg0 - the amount a player must have in the pot to be eligible to win it
Returns:
a list of all players eligible to win the pot

getSmallBlindSeat

int getSmallBlindSeat()
Get the small blind seat (could be dead small blind)

Returns:
the small blind seat

getSmallBlindSize

double getSmallBlindSize()
Get the amount of the small blind

Returns:
small blind size

getStage

Stage getStage()
Get the current game stage

Returns:
the current stage

getStakes

double getStakes()
The stakes are the amount each player must have invested in the pot to stay active in the hand.

Returns:
the stakes

getTotalPotSize

double getTotalPotSize()
Get the total size of the pot including the main pot and all side pots.

Returns:
total pot size

getUnacted

int getUnacted()
Get the number of players who have not acted yet this round

Returns:
the number of players not yet acted

inGame

boolean inGame(int arg0)
See if the player in the given seat is dealt into the hand (not sitting out or empty).

Parameters:
arg0 - position of the player
Returns:
true if the player is dealt in
Throws:
InvalidSeatException, - if the table does not have such a seat

isActive

boolean isActive(int arg0)
See if the player in the given seat is still active in the hand

Parameters:
arg0 - position of the player
Returns:
true if player is active
Throws:
InvalidSeatException, - if the table does not have such a seat
EmptySeatException, - if the given seat is empty

isCommitted

boolean isCommitted(int arg0)
See if a player has invested anything in the current round

Parameters:
arg0 - position of the player
Returns:
true if the player has invested
Throws:
InvalidSeatException, - if the table does not have such a seat
EmptySeatException, - if the given seat is empty

isFixedLimit

boolean isFixedLimit()
Determine if the game is fixed-limit

Returns:
true if the game is fixed-limit

isNoLimit

boolean isNoLimit()
Determine if the game is no-limit

Returns:
true if the game is no-limit

isPotLimit

boolean isPotLimit()
Determine if the game is pot-limit

Returns:
true if the game is pot-limit

isReverseBlinds

boolean isReverseBlinds()
In reverse blinds mode, if the game is Heads-up, the small blind is placed on the button.

Returns:
if we are using the reverse blinds rule for heads up

isSimulation

boolean isSimulation()
Determine if the game is in simulation mode. Simulations are high speed games used to determine approximate values of particular hand scenarios In simulation mode, players may choose to play faster, using cruder approximations, and should avoid all use of disk.

Returns:
true if game is in simulation mode

isZipMode

boolean isZipMode()
We should play as fast and crudely as possible because the user has requested we zip to the end of the hand.

Returns:
true is it is Zip mode

nextActivePlayer

int nextActivePlayer(int arg0)
Get the seat number of the next active player at the table (skips empty seats and folded players)

Parameters:
arg0 - position
Returns:
the seat number of the next active player
Throws:
InvalidSeatException, - if the table does not have such a seat

nextPlayer

int nextPlayer(int arg0)
Get the seat number of the next active player at the table (skips empty seats and folded players)

Parameters:
arg0 - position
Returns:
the seat number of the next active player
Throws:
InvalidSeatException, - if the table does not have such a seat

nextSeat

int nextSeat(int arg0)
Get the seat number of the next seat clockwise at the table

Parameters:
arg0 - position
Returns:
the next seat number
Throws:
InvalidSeatException, - if the table does not have such a seat

previousPlayer

int previousPlayer(int arg0)
Get the seat number of the previous player at the table (skips empty seats)

Parameters:
arg0 - position
Returns:
seat number of previous player
Throws:
InvalidSeatException, - if the table does not have such a seat