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 Player getPlayerFromBotFile(java.lang.String botDescriptionFile)
          NOT WORKING YET
static Player getPlayerFromLoadedJarFile(java.lang.String botDescriptionFile)
          NOT WORKING YET
 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

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

getPlayerFromLoadedJarFile

public static Player getPlayerFromLoadedJarFile(java.lang.String botDescriptionFile)
                                         throws java.lang.ClassNotFoundException,
                                                java.lang.NoSuchMethodException,
                                                java.lang.InstantiationException,
                                                java.lang.IllegalAccessException,
                                                java.lang.reflect.InvocationTargetException
NOT WORKING YET

Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

getPlayerFromBotFile

public static Player getPlayerFromBotFile(java.lang.String botDescriptionFile)
                                   throws java.lang.ClassNotFoundException,
                                          java.lang.NoSuchMethodException,
                                          java.lang.InstantiationException,
                                          java.lang.IllegalAccessException,
                                          java.lang.reflect.InvocationTargetException
NOT WORKING YET

Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException