org.vizzini.ui.game.boardgame.chess
Class TextAgent

java.lang.Object
  extended by org.vizzini.game.AbstractAgent
      extended by org.vizzini.game.AbstractHumanAgent
          extended by org.vizzini.ui.game.boardgame.TextAgent
              extended by org.vizzini.ui.game.boardgame.MovementTextAgent
                  extended by org.vizzini.ui.game.boardgame.chess.TextAgent
All Implemented Interfaces:
Serializable, IChessAgent, IAgent, IHumanAgent

public class TextAgent
extends MovementTextAgent
implements IChessAgent

Provides a text agent 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
TextAgent()
           
 
Method Summary
 Class getPawnPromotionType()
          Return the pawn promotion type.
 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.ui.game.boardgame.MovementTextAgent
getAction
 
Methods inherited from class org.vizzini.ui.game.boardgame.TextAgent
getPrompt, parseInput, readInput
 
Methods inherited from class org.vizzini.game.AbstractHumanAgent
beep
 
Methods inherited from class org.vizzini.game.AbstractAgent
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, configure, 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.IAgent
addConcedeListener, addPropertyChangeListener, addScoreListener, addToScore, concede, configure, getAction, getName, getScore, getTeam, getTokenCollection, incrementScore, removeConcedeListener, removePropertyChangeListener, removeScoreListener, reset, setName, setScore, setTeam
 

Constructor Detail

TextAgent

public TextAgent()
Method Detail

getPawnPromotionType

public Class getPawnPromotionType()
Return the pawn promotion type.

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

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