Class AbstractMoveablePosition
java.lang.Object
chesspresso.position.AbstractPosition
chesspresso.position.AbstractMutablePosition
chesspresso.position.AbstractMoveablePosition
- All Implemented Interfaces:
ImmutablePosition, MoveablePosition, MutablePosition
- Direct Known Subclasses:
Position
public abstract class AbstractMoveablePosition
extends AbstractMutablePosition
implements MoveablePosition
- Version:
- $Revision: 1.2 $
- Author:
- Bernhard Seybold
-
Field Summary
Fields inherited from class AbstractMutablePosition
m_changeListeners, m_listeners, m_notifyListeners, m_notifyPositionChangedFields inherited from class AbstractPosition
HASH_ALL_MASK, HASH_TOPLAY_MASK, HASH_TOPLAY_MULT, s_hashCastleMod, s_hashEPMod, s_hashModFields inherited from interface ImmutablePosition
ALL_CASTLES, BLACK_CASTLE, BLACK_LONG_CASTLE, BLACK_SHORT_CASTLE, NO_CASTLES, WHITE_CASTLE, WHITE_LONG_CASTLE, WHITE_SHORT_CASTLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractMutablePosition
addPositionChangeListener, addPositionListener, clear, excludeCastles, fireCastlesChanged, fireHalfMoveClockChanged, fireMoveDone, fireMoveUndone, firePlyNumberChanged, firePositionChanged, fireSqiEPChanged, fireSquareChanged, fireToPlayChanged, getColor, getPiece, incHalfMoveClock, includeCastles, inverse, isSquareEmpty, removePositionChangeListener, removePositionListener, resetHalfMoveClock, set, setNotifyListeners, setStart, toggleToPlayMethods inherited from class AbstractPosition
equals, getFEN, getHashCode, getStartPositionHashCode, hashCode, isCastlePossible, isLegal, isSquarePossibleEPSquare, isStartPosition, isWhiteToPlay, toString, validateMethods inherited from interface ImmutablePosition
getCastles, getFEN, getHalfMoveClock, getHashCode, getPlyNumber, getSqiEP, getStone, getToPlay, hashCode, isLegal, isStartPosition, validateMethods inherited from interface MoveablePosition
canRedoMove, canUndoMove, doMove, getAllMoves, getLastMove, getLastShortMove, getMovesAsString, redoMove, undoMoveMethods inherited from interface MutablePosition
clear, set, setCastles, setHalfMoveClock, setPlyNumber, setSqiEP, setStart, setStone, setToPlay
-
Constructor Details
-
AbstractMoveablePosition
public AbstractMoveablePosition()
-
-
Method Details
-
doMove
- Specified by:
doMovein interfaceMoveablePosition- Throws:
IllegalMoveException
-
getMove
public short getMove(int from, int to, int promoPiece) - Specified by:
getMovein interfaceMoveablePosition
-