org.vizzini.game.boardgame.chess
Interface IPawn

All Superinterfaces:
Cloneable, IBoardGameToken, IChessToken, IToken, Serializable
All Known Implementing Classes:
Pawn

public interface IPawn
extends IChessToken

Defines methods required by a Pawn in the 3D chess framework.

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 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

getPossibleEnPassantCapturePositions

BitSet getPossibleEnPassantCapturePositions(IChessEnvironment board)
Return a list of the possible en passant capture positions this token could take.

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

getPossiblePawnPromotionCapturePositions

BitSet getPossiblePawnPromotionCapturePositions(IChessEnvironment board)
Return a list of the possible pawn promotion capture positions this token could take.

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

getPossiblePawnPromotionPositions

BitSet getPossiblePawnPromotionPositions(IChessEnvironment board)
Return a list of the possible pawn promotion positions this token could take.

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

isAttackPosition

boolean isAttackPosition(IntegerPosition position)
Return true if the given position is an attack move for this.

Since:
v0.3

isPossibleEnPassantCapturePosition

boolean isPossibleEnPassantCapturePosition(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

isPossiblePawnPromotionCapturePosition

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

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

isPossiblePawnPromotionPosition

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