com.asdf.plugins.pokergames
Class PlayerPosition
java.lang.Object
com.asdf.plugins.pokergames.PlayerPosition
- All Implemented Interfaces:
- java.lang.Comparable<PlayerPosition>
public class PlayerPosition
- extends java.lang.Object
- implements java.lang.Comparable<PlayerPosition>
Note: this class has a natural ordering that is inconsistent with equals.
Class for collecting information of the winnings for each player
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayerPosition
public PlayerPosition(int seat,
double amountInPot,
BestHand handValue)
- Constructor
- Parameters:
seat
- seat of the playeramountInPot
- amount the player had in the pothandValue
- hand value as calculated by handEval
compareTo
public int compareTo(PlayerPosition o)
- Specified by:
compareTo
in interface java.lang.Comparable<PlayerPosition>
getSeat
public int getSeat()
- Returns:
- the seat
getAmountInPot
public double getAmountInPot()
- Returns:
- the amountInPot
getHandValue
public int getHandValue()
- Returns:
- the handValue
getWinningCardsPositions
public int[] getWinningCardsPositions()
- Returns:
- integer table of five cards, out of seven, the positions of the cards that make the best possible hand
addWinnings
public void addWinnings(double amount)
- adds given amount to the player's winnings
- Parameters:
amount
-
getWinnings
public double getWinnings()
- Returns:
- the winnings