|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChessToken
Defines methods required by 3D chess tokens.
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 |
---|
boolean isWhite()
BitSet getPossibleMoveCapturePositions(IChessEnvironment board)
board
- Chess board.BitSet getPossibleMovePositions(IChessEnvironment board)
board
- Chess board.boolean isPossibleMoveCapturePosition(IChessEnvironment board, IntegerPosition position)
board
- Chess board.position
- Position.boolean isPossibleMovePosition(IChessEnvironment board, IntegerPosition position)
board
- Chess board.position
- Position.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |