|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgame.gamestorage.texas.db.SetGameStorageTH_DB
public class SetGameStorageTH_DB
This class is the "java-side" part of the mapping form Java to database Responsable for writing to db
Field Summary | |
---|---|
(package private) SetterDBProjector |
sp
|
Constructor Summary | |
---|---|
SetGameStorageTH_DB()
|
Method Summary | |
---|---|
boolean |
connectionSuccess()
|
void |
setEndCompetition(int[] ranking)
stores the ranking of the finished competition |
void |
setEndHand(int finalpot,
int[] cashDelta,
Card[][] holeCards)
Stores information of the ending hand (winner, revealed holeCards, ...). |
void |
setEndRound(long timestamp,
java.util.ArrayList<Action> betHistory,
Card[] revealedBoardCards)
Stores information of the ending round. |
int |
setGetGamedef(int limited,
int minBet,
int maxBet,
int numPlayers,
int style,
int buyin)
sets parameters of current challenge - the gamedef gamedef_id is parameter of Estimation constructor - needed to estimate opponents by completed competitions - called after instanciating History and before instanciating Estimation |
void |
setHand(int[] position,
int sb,
int bb,
int ante,
int[] cashInit,
Card[] holeCards)
Stores information of the started hand. |
void |
setStartCompetition(java.lang.String[] players,
int[] cash_init)
stores playernames and there cash when starting competion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
SetterDBProjector sp
Constructor Detail |
---|
public SetGameStorageTH_DB()
Method Detail |
---|
public int setGetGamedef(int limited, int minBet, int maxBet, int numPlayers, int style, int buyin)
IF_SetGameStorage
setGetGamedef
in interface IF_SetGameStorage
limited
- - limited:1; pot-limit:0; no-limit: -1minBet
- - only int possiblemaxBet
- - only int possiblenumPlayers
- - amount of participating playersstyle
- - cashgame:1; tournament:2; doyle:3;buyin
- - only int possible
public void setStartCompetition(java.lang.String[] players, int[] cash_init)
IF_SetGameStorage
setStartCompetition
in interface IF_SetGameStorage
players
- - all participants as String[] playernamescash_init
- - starting credits of every playerpublic void setHand(int[] position, int sb, int bb, int ante, int[] cashInit, Card[] holeCards)
IF_SetGameStorageTH
setHand
in interface IF_SetGameStorageTH
position
- Position of the player in this hand
(0: first player behind the button; 1: second player behind the button; ...) - exact position at tablesb
- - smallblindbb
- - bigblindante
- - forced bet for all playerscashInit
- - starting credits of every playerholeCards
- - my holeCards as Card[]public void setEndRound(long timestamp, java.util.ArrayList<Action> betHistory, Card[] revealedBoardCards)
IF_SetGameStorageTH
setEndRound
in interface IF_SetGameStorageTH
timestamp
- as unix timestampbetHistory
- - all bets of this roundrevealedBoardCards
- (if revealed)public void setEndHand(int finalpot, int[] cashDelta, Card[][] holeCards)
IF_SetGameStorageTH
setEndHand
in interface IF_SetGameStorageTH
finalpot
- - total at the end of the handcashDelta
- of every player: moneyBefore-moneyAfterholeCards
- - if cards were shownpublic void setEndCompetition(int[] ranking)
IF_SetGameStorage
setEndCompetition
in interface IF_SetGameStorage
ranking
- of all participantspublic boolean connectionSuccess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |