org.vizzini.game.boardgame.chess
Class AbstractChessComputerAgent

java.lang.Object
  extended by org.vizzini.game.AbstractAgent
      extended by org.vizzini.game.AbstractComputerAgent
          extended by org.vizzini.game.boardgame.chess.AbstractChessComputerAgent
All Implemented Interfaces:
Serializable, IChessAgent, IAgent, IComputerAgent
Direct Known Subclasses:
SimpleChessAgent

public abstract class AbstractChessComputerAgent
extends AbstractComputerAgent
implements IChessAgent

Provides base functionality for computer agents for 3D chess.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.vizzini.game.IAgent
NAME_PROPERTY, TEAM_PROPERTY
 
Constructor Summary
AbstractChessComputerAgent()
          Construct this object.
 
Method Summary
 boolean isPawnPrompt()
          Return true if this agent should prompt for the pawn promotion type.
 boolean isWhite()
          Return true if this agent's team is white.
 void setPawnPrompt(boolean isPawnPrompt)
          Set the flag indicating whether to prompt for the pawn promotion type.
 
Methods inherited from class org.vizzini.game.AbstractComputerAgent
addBusyListener, configure, evaluate, getActionGenerator, getBusyManager, getEvaluator, isBusy, removeBusyListener, setActionGenerator, setBusy, setEvaluator
 
Methods inherited from class org.vizzini.game.AbstractAgent
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, equals, getConcedeManager, getIndex, getName, getProperties, getPropertyChangeManager, getScore, getScoreManager, getTeam, getTokenCollection, getTokenCollectionClass, hashCode, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, reset, setName, setScore, setTeam, setTokenCollectionClass, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.vizzini.game.boardgame.chess.IChessAgent
getPawnPromotionType
 
Methods inherited from interface org.vizzini.game.IAgent
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, configure, getAction, getName, getScore, getTeam, getTokenCollection, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, reset, setName, setScore, setTeam
 

Constructor Detail

AbstractChessComputerAgent

public AbstractChessComputerAgent()
Construct this object.

Since:
v0.3
Method Detail

isPawnPrompt

public boolean isPawnPrompt()
Return true if this agent should prompt for the pawn promotion type.

Specified by:
isPawnPrompt in interface IChessAgent
Since:
v0.3

isWhite

public boolean isWhite()
Return true if this agent's team is white.

Specified by:
isWhite in interface IChessAgent
Since:
v0.3

setPawnPrompt

public void setPawnPrompt(boolean isPawnPrompt)
Set the flag indicating whether to prompt for the pawn promotion type.

Specified by:
setPawnPrompt in interface IChessAgent
Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02