|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpoker.Pot
public class Pot
Handles a Pot data structure, which accumulates money from players, and can break into multiple side pots.
Constructor Summary | |
---|---|
Pot(GameInfo gi)
|
|
Pot(Pot p)
Copy constructor |
Method Summary | |
---|---|
int |
getNumPots()
|
Pot[] |
getPots()
|
Pot |
getSidePot()
|
double |
getSize()
|
double |
getThreshold()
|
boolean |
hasSidePot()
|
void |
payPot(double amount,
PlayerInfo pi)
|
double |
removeUncalledChips()
Remove all uncalled chips from the pot |
double |
removeUncalledChips(Pot p)
Remove all uncalled chips from the pot |
void |
setGameInfo(GameInfo gInfo)
|
void |
setThreshold(double t)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Pot(GameInfo gi)
public Pot(Pot p)
p
- the pot to deep copy.Method Detail |
---|
public void setGameInfo(GameInfo gInfo)
public void payPot(double amount, PlayerInfo pi)
public Pot getSidePot()
public void setThreshold(double t)
public double getThreshold()
public double getSize()
public Pot[] getPots()
public int getNumPots()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasSidePot()
public double removeUncalledChips()
public double removeUncalledChips(Pot p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |