|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.plugins.pokergames.texasholdem.bots.SuperBot
public class SuperBot
Constructor Summary | |
---|---|
SuperBot()
|
|
SuperBot(int seat)
|
Method Summary | |
---|---|
void |
actionEvent(int arg0,
Action arg1)
|
void |
dealHoleCardsEvent()
From GameObserver, called when hole cards are dealt. |
void |
gameOverEvent()
Called when the hand is over. |
void |
gameStartEvent(GameInfo arg0,
int seat)
|
void |
gameStateChanged()
From GameObserver, called whenever an action is completed, and the GameModel has been updated |
Action |
getAction()
|
void |
receiveHand(Hand hand,
int seat)
Receive your hand, and your seat, this is called when the player is dealt his hand |
void |
showdownEvent(int arg0,
Card arg1,
Card arg2)
from GameObserver, Player pos has shown two cards. |
void |
stageEvent(int arg0)
a new stage has begun. |
void |
winEvent(int seat,
double amount,
Hand hand)
from GameObserver, a player at seat has won amount |
void |
winEvent(int arg0,
double arg1,
java.lang.String arg2)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuperBot()
public SuperBot(int seat)
Method Detail |
---|
public void actionEvent(int arg0, Action arg1)
actionEvent
in interface Player
arg0
- (int) the position of the player who made the actionarg1
- (Action) the action made
This should be called when any one makes an actionpublic void dealHoleCardsEvent()
Player
dealHoleCardsEvent
in interface Player
public void gameOverEvent()
Player
gameOverEvent
in interface Player
public void gameStartEvent(GameInfo arg0, int seat)
gameStartEvent
in interface Player
arg0
- (GameInfo) all the public information of the starting hand
(i.e. our GameModel object)
Called at the start of hand.public void gameStateChanged()
Player
gameStateChanged
in interface Player
public Action getAction()
getAction
in interface Player
public void receiveHand(Hand hand, int seat)
Player
receiveHand
in interface Player
seat
- your seat in this roundpublic void showdownEvent(int arg0, Card arg1, Card arg2)
Player
showdownEvent
in interface Player
arg0
- the showing playerarg1
- first cardarg2
- second shown cardpublic void stageEvent(int arg0)
Player
stageEvent
in interface Player
public void winEvent(int arg0, double arg1, java.lang.String arg2)
public void winEvent(int seat, double amount, Hand hand)
Player
winEvent
in interface Player
seat
- the playeramount
- the amount won
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |