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
Methods inherited from interface org.vizzini.game.IToken |
addPropertyChangeListener, clone, configure, getAgent, getIndex, getName, getPosition, getTeam, getValue, removePropertyChangeListener, setAgent, setName, setPosition, setTeam, setValue |
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 |