org.vizzini.game.boardgame.chess
Interface IChessToken

All Superinterfaces:
Cloneable, IBoardGameToken, IToken, Serializable
All Known Subinterfaces:
IBishop, IKing, IKnight, IMace, IPawn, IQueen, IRook
All Known Implementing Classes:
AbstractChessToken, Bishop, King, Knight, Mace, Pawn, Queen, Rook

public interface IChessToken
extends IBoardGameToken

Defines methods required by 3D chess tokens.

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 getPossibleMoveCapturePositions(IChessEnvironment board)
          Return a list of the possible move capture positions this token could take.
 BitSet getPossibleMovePositions(IChessEnvironment board)
          Return a list of the possible move positions this token could take.
 boolean isPossibleMoveCapturePosition(IChessEnvironment board, IntegerPosition position)
          Return true if the given move capture position is possible for this token.
 boolean isPossibleMovePosition(IChessEnvironment board, IntegerPosition position)
          Return true if the given move position is possible for this token.
 boolean isWhite()
          Return true if this token's team is white.
 
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

isWhite

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

Since:
v0.3

getPossibleMoveCapturePositions

BitSet getPossibleMoveCapturePositions(IChessEnvironment board)
Return a list of the possible move capture positions this token could take.

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

getPossibleMovePositions

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

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

isPossibleMoveCapturePosition

boolean isPossibleMoveCapturePosition(IChessEnvironment board,
                                      IntegerPosition position)
Return true if the given move capture position is possible for this token.

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

isPossibleMovePosition

boolean isPossibleMovePosition(IChessEnvironment board,
                               IntegerPosition position)
Return true if the given move 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