games.strategy.kingstable.player
Class AbstractAI

java.lang.Object
  extended by games.strategy.common.player.AbstractBasePlayer
      extended by games.strategy.common.player.AbstractBaseAI
          extended by games.strategy.kingstable.player.AbstractAI
All Implemented Interfaces:
IGamePlayer, IRemote, IKingsTablePlayer
Direct Known Subclasses:
BetterAI, RandomAI

public abstract class AbstractAI
extends AbstractBaseAI
implements IKingsTablePlayer

Abstract class for a King's Table AI agent.

Version:
$LastChangedDate: 2007-06-19 11:39:15 -0700 (Tue, 19 Jun 2007) $
Author:
Lane Schwartz

Field Summary
 
Fields inherited from class games.strategy.common.player.AbstractBasePlayer
m_bridge, m_id, m_name
 
Constructor Summary
AbstractAI(java.lang.String name)
           
 
Method Summary
 java.lang.Class<IKingsTablePlayer> getRemotePlayerType()
           
protected abstract  void play()
           
 void start(java.lang.String stepName)
          The given phase has started.
 
Methods inherited from class games.strategy.common.player.AbstractBaseAI
pause
 
Methods inherited from class games.strategy.common.player.AbstractBasePlayer
getGameData, getID, getName, getPlayerBridge, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAI

public AbstractAI(java.lang.String name)
Method Detail

play

protected abstract void play()

start

public void start(java.lang.String stepName)
The given phase has started. Parse the phase name and call the appropiate method.

Specified by:
start in interface IGamePlayer
Specified by:
start in class AbstractBasePlayer

getRemotePlayerType

public final java.lang.Class<IKingsTablePlayer> getRemotePlayerType()