com.asdf.plugins.pokergames.texasholdem.bots
Class KillerBot

java.lang.Object
  extended by com.asdf.plugins.pokergames.texasholdem.bots.KillerBot
All Implemented Interfaces:
Player

public class KillerBot
extends java.lang.Object
implements Player


Constructor Summary
KillerBot()
           
KillerBot(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 setPrints(boolean b)
           
 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

KillerBot

public KillerBot()

KillerBot

public KillerBot(int seat)
Method Detail

setPrints

public void setPrints(boolean b)

actionEvent

public void actionEvent(int arg0,
                        Action arg1)
Specified by:
actionEvent in interface Player
Parameters:
arg0 - (int) the position of the player who made the action
arg1 - (Action) the action made This should be called when any one makes an action

dealHoleCardsEvent

public void dealHoleCardsEvent()
Description copied from interface: Player
From GameObserver, called when hole cards are dealt.

Specified by:
dealHoleCardsEvent in interface Player

gameOverEvent

public void gameOverEvent()
Description copied from interface: Player
Called when the hand is over.

Specified by:
gameOverEvent in interface Player

gameStartEvent

public void gameStartEvent(GameInfo arg0,
                           int seat)
Specified by:
gameStartEvent in interface Player
Parameters:
arg0 - (GameInfo) all the public information of the starting hand (i.e. our GameModel object) Called at the start of hand.

gameStateChanged

public void gameStateChanged()
Description copied from interface: Player
From GameObserver, called whenever an action is completed, and the GameModel has been updated

Specified by:
gameStateChanged in interface Player

getAction

public Action getAction()
Specified by:
getAction in interface Player
Returns:
Action the players next action, with desired amount This is called when it is the players turn to act.

receiveHand

public void receiveHand(Hand hand,
                        int seat)
Description copied from interface: Player
Receive your hand, and your seat, this is called when the player is dealt his hand

Specified by:
receiveHand in interface Player
seat - your seat in this round

showdownEvent

public void showdownEvent(int arg0,
                          Card arg1,
                          Card arg2)
Description copied from interface: Player
from GameObserver, Player pos has shown two cards.

Specified by:
showdownEvent in interface Player
Parameters:
arg0 - the showing player
arg1 - first card
arg2 - second shown card

stageEvent

public void stageEvent(int arg0)
Description copied from interface: Player
a new stage has begun. A player may override this method to receive the event for texas hold'em the stage is a constant from TexasHoldemEnumStage

Specified by:
stageEvent in interface Player

winEvent

public void winEvent(int arg0,
                     double arg1,
                     java.lang.String arg2)

winEvent

public void winEvent(int seat,
                     double amount,
                     Hand hand)
Description copied from interface: Player
from GameObserver, a player at seat has won amount

Specified by:
winEvent in interface Player
Parameters:
seat - the player
amount - the amount won