games.strategy.engine.gamePlayer
Interface IGamePlayer

All Known Implementing Classes:
AbstractAI, AbstractBaseAI, AbstractBasePlayer, AbstractHumanPlayer, BetterAI, KingsTablePlayer, RandomAI, StrongAI, TripleAPlayer, WeakAI

public interface IGamePlayer

A player of the game.

Game players communicate to the game through a PlayerBridge.

Version:
1.0
Author:
Sean Bridges

Method Summary
 PlayerID getID()
           
 java.lang.String getName()
           
 void initialize(IPlayerBridge bridge, PlayerID id)
          Called before the game starts.
 void start(java.lang.String stepName)
          Start the given step.
 

Method Detail

initialize

void initialize(IPlayerBridge bridge,
                PlayerID id)
Called before the game starts.


getName

java.lang.String getName()
Returns:
the name of the game player

getID

PlayerID getID()
Returns:
the id of this player. This id is initialized by the initialize method.

start

void start(java.lang.String stepName)
Start the given step. stepName appears as it does in the game xml file. The game step will finish executing when this method returns.