ca.ualberta.cs.poker.free.dynamics
Class MatchStateMessage

java.lang.Object
  extended by ca.ualberta.cs.poker.free.dynamics.MatchStateMessage

public class MatchStateMessage
extends java.lang.Object


Field Summary
 java.lang.String bettingSequence
           
 java.lang.String board
          Contains all of the cards on the board.
 java.lang.String flop
          Contains the flop cards.
 int handNumber
          The hand number, from 0-999.
 java.lang.String[] hole
          Contains the hole cards, indexed by seat.
 java.lang.String river
          Contains the river card.
 int seatTaken
          The seat taken by the player who receives the message.
 java.lang.String turn
          Contains the turn card.
 
Constructor Summary
MatchStateMessage(java.lang.String message)
           
 
Method Summary
 boolean endOfStage()
          Tests if this is the end of a stage.
 int getLastAction()
           
 void setCards(java.lang.String cardSequence)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

seatTaken

public int seatTaken
The seat taken by the player who receives the message.


handNumber

public int handNumber
The hand number, from 0-999.


hole

public java.lang.String[] hole
Contains the hole cards, indexed by seat. This player's cards are in hole[seatTaken]


flop

public java.lang.String flop
Contains the flop cards.


turn

public java.lang.String turn
Contains the turn card.


river

public java.lang.String river
Contains the river card.


board

public java.lang.String board
Contains all of the cards on the board.


bettingSequence

public java.lang.String bettingSequence
Constructor Detail

MatchStateMessage

public MatchStateMessage(java.lang.String message)
Method Detail

endOfStage

public boolean endOfStage()
Tests if this is the end of a stage. Note: this returns false at the showdown.


getLastAction

public int getLastAction()

setCards

public void setCards(java.lang.String cardSequence)