|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.plugins.pokergames.StatisticsHand
public class StatisticsHand
Class containing hand statistics and functionality to store it to the database. This class is general for current implemented poker variants. It is also used on unimplemented poker variants even it may not make completely sense.
Constructor Summary | |
---|---|
StatisticsHand(java.sql.Connection conn,
GameModel model)
|
Method Summary | |
---|---|
StatisticsPlayer |
getPlayer(int index)
Return player from given seat index |
void |
setBetround(short activePlayers,
double pot)
Set bet round's end situation. |
void |
setCards(java.util.List<Card> cards_)
Set board cards. |
void |
setStateAtEnd(GameModel model,
Hand[] hands)
Set ending state. |
void |
storeToDb()
|
void |
storeToDbRun()
Storing collected statistics to database. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatisticsHand(java.sql.Connection conn, GameModel model)
Method Detail |
---|
public void setCards(java.util.List<Card> cards_)
cards_
- public void setStateAtEnd(GameModel model, Hand[] hands)
model
- hands
- public void setBetround(short activePlayers, double pot)
activePlayers
- pot
- public StatisticsPlayer getPlayer(int index)
index
- Zero based index to seat
public java.lang.String toString()
toString
in class java.lang.Object
public void storeToDb()
public void storeToDbRun()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |