ca.ualberta.cs.poker.free.academy25
Class PokerAcademyClient

java.lang.Object
  extended by ca.ualberta.cs.poker.free.client.PokerClient
      extended by ca.ualberta.cs.poker.free.academy25.PokerAcademyClient
All Implemented Interfaces:
java.lang.Runnable

public class PokerAcademyClient
extends PokerClient

This class allows for a Player from PokerAcademy to be plugged in.


Field Summary
 
Fields inherited from class ca.ualberta.cs.poker.free.client.PokerClient
currentGameStateString
 
Constructor Summary
PokerAcademyClient(Player p)
          Creates a new instance of PokerAcademyClient Pass a pointer to the player you want to use.
 
Method Summary
static Hand getHand(java.lang.String str)
          Not sure why I can't just run new Hand(str), but this will work for now.
 void handleStateChange()
          Called whenever the state is changed.
 
Methods inherited from class ca.ualberta.cs.poker.free.client.PokerClient
close, connect, getClientID, isComplete, receiveMessage, run, sendAction, sendCall, sendFold, sendMessage, sendRaise, setVerbose, showVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PokerAcademyClient

public PokerAcademyClient(Player p)
Creates a new instance of PokerAcademyClient Pass a pointer to the player you want to use.

Method Detail

getHand

public static Hand getHand(java.lang.String str)
Not sure why I can't just run new Hand(str), but this will work for now.


handleStateChange

public void handleStateChange()
                       throws java.io.IOException,
                              java.net.SocketException
Called whenever the state is changed.

Overrides:
handleStateChange in class PokerClient
Throws:
java.io.IOException
java.net.SocketException