|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GameObserver
An interface for a poker game observer. All public game events are sent to a game observer, so that the game may be tracked.
Method Summary | |
---|---|
void |
actionEvent(int pos,
Action act)
A player can override this method to recieve events for each action made by a player. |
void |
dealHoleCardsEvent()
The hole cards are being dealt |
void |
gameOverEvent()
The hand is now over. |
void |
gameStartEvent(GameInfo gi)
The hand is starting |
void |
gameStateChanged()
The game info state has been updated Called after an action event has been fully processed |
void |
showdownEvent(int pos,
Card c1,
Card c2)
Player pos has shown two cards. |
void |
stageEvent(int stage)
A new stage (betting round) has begun. |
void |
winEvent(int pos,
double amount,
java.lang.String handName)
A player at pos has won amount with the hand handName |
Method Detail |
---|
void actionEvent(int pos, Action act)
pos
- the player's positionact
- the action made by the playervoid stageEvent(int stage)
stage
- the new stage ID (@see Holdem)void showdownEvent(int pos, Card c1, Card c2)
pos
- the palyer showing cardsc1
- the player's first hole cardc2
- the player's second hole cardvoid gameStartEvent(GameInfo gi)
void dealHoleCardsEvent()
void gameOverEvent()
void winEvent(int pos, double amount, java.lang.String handName)
void gameStateChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |