|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgame.gamestorage.texas.db.DBProjector
game.gamestorage.texas.db.SetterDBProjector
public class SetterDBProjector
This class is the "middle" part of the mapping form Java to database Responsable for writing to db the annotation "@category" is used to group methods to higher level methods in game.gamestorage.IF_SetGameStorage and game.gamestorage.texas.IF_SetGameStorageTH
Field Summary | |
---|---|
private int |
hand_id
hand depending fields |
private int[] |
hand_player_map_ids
|
private int |
round_id
|
Fields inherited from class game.gamestorage.texas.db.DBProjector |
---|
competition_id, gamedef_id, player_ids, player_names |
Constructor Summary | |
---|---|
SetterDBProjector()
|
Method Summary | |
---|---|
boolean |
connectionSuccess()
|
int |
getHand_id()
|
int[] |
getHandPlayerMap_ids()
|
boolean |
setBetHistory(long timestamp,
java.util.ArrayList<Action> betHistory)
|
boolean |
setCardOfPlayer(Card[] holeCards)
|
boolean |
setCashDeltas(int[] cash_delta)
|
boolean |
setCommonCards(Card[] revealedBoardCards)
|
boolean |
setCompetition()
writes competition |
boolean |
setCompetitionPlayerMap(int[] cash_init)
writes competition_player_map |
boolean |
setFinalPot(int finalpot)
|
boolean |
setGameDef(int limited,
int minBet,
int maxBet,
int numPlayers,
int style,
int buyin)
writes gamedef |
boolean |
setHand(int sb,
int bb,
int ante)
writes hand |
boolean |
setHandPlayerMap(int[] position,
int[] cash_init)
writes hand_player_map |
boolean |
setHoleCards(Card[][] enemyCards)
|
boolean |
setPlayers(java.lang.String[] player_names)
writes player - if not already existing |
boolean |
setRankings(int[] ranking)
|
Methods inherited from class game.gamestorage.texas.db.DBProjector |
---|
getGamedef_id |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int hand_id
private int round_id
private int[] hand_player_map_ids
Constructor Detail |
---|
public SetterDBProjector()
Method Detail |
---|
public boolean setGameDef(int limited, int minBet, int maxBet, int numPlayers, int style, int buyin)
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 boolean setCompetition()
public boolean setPlayers(java.lang.String[] player_names)
player_names
- - all participants as String[] -
public boolean setCompetitionPlayerMap(int[] cash_init)
cash_init
- - with how much credits do the players start this? -
public boolean setHand(int sb, int bb, int ante)
sb
- - smallblindbb
- - bigblindante
- - forced bet for all players
public boolean setHandPlayerMap(int[] position, int[] cash_init)
position
- Position of the player in this hand
(0: first player behind the button; 1: second player behind the button; ...)cash_init
- - with how much credits do the players start this? - starting credits of every player
public boolean setCardOfPlayer(Card[] holeCards)
holeCards
- - players holeCards as Card[]
public boolean setBetHistory(long timestamp, java.util.ArrayList<Action> betHistory)
timestamp
- as unix timestampbetHistory
- - all bets of this round
public boolean setCommonCards(Card[] revealedBoardCards)
revealedBoardCards
- (if revealed)
public boolean setHoleCards(Card[][] enemyCards)
enemyCards
- - if cards were shown
public boolean setFinalPot(int finalpot)
finalpot
- - total at the end of the hand
public boolean setCashDeltas(int[] cash_delta)
cash_delta
- - diff between before and after played hand
public boolean setRankings(int[] ranking)
ranking
- of all participants
public int getHand_id()
public int[] getHandPlayerMap_ids()
public boolean connectionSuccess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |