|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPawn
Defines methods required by a Pawn in the 3D chess framework.
| Field Summary |
|---|
| Fields inherited from interface org.vizzini.game.IToken |
|---|
AGENT_PROPERTY, NAME_PROPERTY, POSITION_PROPERTY, TEAM_PROPERTY |
| Method Summary | |
|---|---|
BitSet |
getPossibleEnPassantCapturePositions(IChessEnvironment board)
Return a list of the possible en passant capture positions this token could take. |
BitSet |
getPossiblePawnPromotionCapturePositions(IChessEnvironment board)
Return a list of the possible pawn promotion capture positions this token could take. |
BitSet |
getPossiblePawnPromotionPositions(IChessEnvironment board)
Return a list of the possible pawn promotion positions this token could take. |
boolean |
isAttackPosition(IntegerPosition position)
Return true if the given position is an attack move for this. |
boolean |
isPossibleEnPassantCapturePosition(IChessEnvironment board,
IntegerPosition position)
Return true if the given move capture position is possible for this token. |
boolean |
isPossiblePawnPromotionCapturePosition(IChessEnvironment board,
IntegerPosition position)
Return true if the given pawn promotion capture position is possible for this token. |
boolean |
isPossiblePawnPromotionPosition(IChessEnvironment board,
IntegerPosition position)
Return true if the given pawn promotion 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 |
|---|
BitSet getPossibleEnPassantCapturePositions(IChessEnvironment board)
board - Chess board.BitSet getPossiblePawnPromotionCapturePositions(IChessEnvironment board)
board - Chess board.BitSet getPossiblePawnPromotionPositions(IChessEnvironment board)
board - Chess board.boolean isAttackPosition(IntegerPosition position)
boolean isPossibleEnPassantCapturePosition(IChessEnvironment board,
IntegerPosition position)
board - Chess board.position - Position.
boolean isPossiblePawnPromotionCapturePosition(IChessEnvironment board,
IntegerPosition position)
board - Chess board.position - Position.
boolean isPossiblePawnPromotionPosition(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 |