org.vizzini.game.boardgame.chess
Interface IKing

All Superinterfaces:
Cloneable, IBoardGameToken, IChessToken, IToken, Serializable
All Known Implementing Classes:
King

public interface IKing
extends IChessToken

Defines methods required by a King in the 3D chess framework.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
 
Fields inherited from interface org.vizzini.game.IToken
AGENT_PROPERTY, NAME_PROPERTY, POSITION_PROPERTY, TEAM_PROPERTY
 
Method Summary
 BitSet getPossibleCastlePositions(IChessEnvironment board)
          Return a list of the possible castle positions this token could take.
 boolean isPossibleCastlePosition(IChessEnvironment board, IntegerPosition position)
          Return true if the given castle position is possible for this token.
 
Methods inherited from interface org.vizzini.game.boardgame.chess.IChessToken
getPossibleMoveCapturePositions, getPossibleMovePositions, isPossibleMoveCapturePosition, isPossibleMovePosition, isWhite
 
Methods inherited from interface org.vizzini.game.boardgame.IBoardGameToken
getPossibleActions
 
Methods inherited from interface org.vizzini.game.IToken
addPropertyChangeListener, clone, configure, getAgent, getIndex, getName, getPosition, getTeam, getValue, removePropertyChangeListener, setAgent, setName, setPosition, setTeam, setValue
 

Method Detail

getPossibleCastlePositions

BitSet getPossibleCastlePositions(IChessEnvironment board)
Return a list of the possible castle positions this token could take.

Parameters:
board - Chess board.
Since:
v0.3

isPossibleCastlePosition

boolean isPossibleCastlePosition(IChessEnvironment board,
                                 IntegerPosition position)
Return true if the given castle position is possible for this token.

Parameters:
board - Chess board.
position - Position.
Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02