org.vizzini.game.boardgame.chess.standardtoken
Class Bishop
java.lang.Object
org.vizzini.game.AbstractToken
org.vizzini.game.boardgame.chess.AbstractChessToken
org.vizzini.game.boardgame.chess.standardtoken.Bishop
- All Implemented Interfaces:
- Serializable, Cloneable, IBishop, IChessToken, IBoardGameToken, IToken
public class Bishop
- extends AbstractChessToken
- implements IBishop
Provides a Bishop for 3D chess. This token travels in (±n,±n,0), (±n,0,±n),
or (0,±n,±n).
- Since:
- v0.3
- Version:
- v0.3
- Author:
- Jeffrey M. Thompson
- See Also:
- Serialized Form
Constructor Summary |
Bishop()
Construct this object with no agent as this token's owner. |
Methods inherited from class org.vizzini.game.boardgame.chess.AbstractChessToken |
addCastleActions, addEnPassantCaptureActions, addMoveActions, addMoveCaptureActions, addPawnPromotionActions, addPawnPromotionCaptureActions, addPossiblePosition, addPossiblePositions, configure, copy, createCastleAction, createEnPassantCaptureAction, createMoveAction, createMoveCaptureAction, createPawnPromotionAction, createPawnPromotionCaptureAction, getCounters, getEmptyBitSet, getPossibleActions, getPossibleCastlePositions, getPossibleEnPassantCapturePositions, getPossiblePawnPromotionCapturePositions, getPossiblePawnPromotionPositions, isPossibleCastlePosition, isPossibleEnPassantCapturePosition, isPossibleMoveCapturePosition, isPossibleMovePosition, isPossiblePawnPromotionCapturePosition, isPossiblePawnPromotionPosition, isWhite, setTeam |
Methods inherited from class org.vizzini.game.AbstractToken |
addPropertyChangeListener, clone, equals, getAgent, getIndex, getName, getPosition, getPropertyChangeManager, getTeam, getValue, hashCode, isFiringPositionChanges, removePropertyChangeListener, setAgent, setFiringPositionChanges, setIndex, setName, setPosition, setValue, toString |
Methods inherited from interface org.vizzini.game.IToken |
addPropertyChangeListener, clone, configure, getAgent, getIndex, getName, getPosition, getTeam, getValue, removePropertyChangeListener, setAgent, setName, setPosition, setTeam, setValue |
_possiblePositions
protected static BitSet[] _possiblePositions
- Array of index to possible position bit set.
Bishop
public Bishop()
- Construct this object with no agent as this token's owner.
- Since:
- v0.3
reset
public static void reset()
- Reset cached data.
- Since:
- v0.3
getPossibleMoveCapturePositions
public BitSet getPossibleMoveCapturePositions(IChessEnvironment board)
- Return a list of the possible move capture positions this token could
take.
- Specified by:
getPossibleMoveCapturePositions
in interface IChessToken
- Parameters:
board
- Chess board.- Since:
- v0.3
getPossibleMovePositions
public BitSet getPossibleMovePositions(IChessEnvironment board)
- Return a list of the possible move positions this token could take.
- Specified by:
getPossibleMovePositions
in interface IChessToken
- Parameters:
board
- Chess board.- Since:
- v0.3
generatePossiblePositions
protected static void generatePossiblePositions(IChessEnvironment board,
IntegerPosition position)
- Fill the possible positions list.
- Parameters:
board
- Grid board environment.position
- Token position.- Since:
- v0.3
getPossiblePositionsArray
protected static BitSet[] getPossiblePositionsArray(IChessEnvironment board)
- Return the possible positions array.
- Since:
- v0.3
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |