chesspresso.position
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.1 $
Author:
Bernhard Seybold

Field Summary
 
Fields inherited from class chesspresso.position.AbstractMutablePosition
m_changeListeners, m_listeners, m_notifyListeners, m_notifyPositionChanged
 
Fields inherited from class chesspresso.position.AbstractPosition
HASH_ALL_MASK, HASH_TOPLAY_MASK, HASH_TOPLAY_MULT, s_hashCastleMod, s_hashEPMod, s_hashMod
 
Fields inherited from interface chesspresso.position.ImmutablePosition
ALL_CASTLES, BLACK_CASTLE, BLACK_LONG_CASTLE, BLACK_SHORT_CASTLE, NO_CASTLES, WHITE_CASTLE, WHITE_LONG_CASTLE, WHITE_SHORT_CASTLE
 
Constructor Summary
AbstractMoveablePosition()
           
 
Method Summary
 void doMove(Move move)
           
 short getMove(int from, int to, int promoPiece)
           
 
Methods inherited from class chesspresso.position.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, toggleToPlay
 
Methods inherited from class chesspresso.position.AbstractPosition
equals, getFEN, getHashCode, getStartPositionHashCode, hashCode, isCastlePossible, isLegal, isSquarePossibleEPSquare, isStartPosition, isWhiteToPlay, toString, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface chesspresso.position.MoveablePosition
canRedoMove, canUndoMove, doMove, getAllMoves, getLastMove, getLastShortMove, getMovesAsString, redoMove, undoMove
 
Methods inherited from interface chesspresso.position.MutablePosition
clear, set, setCastles, setHalfMoveClock, setPlyNumber, setSqiEP, setStart, setStone, setToPlay
 
Methods inherited from interface chesspresso.position.ImmutablePosition
getCastles, getFEN, getHalfMoveClock, getHashCode, getPlyNumber, getSqiEP, getStone, getToPlay, hashCode, isLegal, isStartPosition, validate
 

Constructor Detail

AbstractMoveablePosition

public AbstractMoveablePosition()
Method Detail

doMove

public void doMove(Move move)
            throws IllegalMoveException
Specified by:
doMove in interface MoveablePosition
IllegalMoveException

getMove

public short getMove(int from,
                     int to,
                     int promoPiece)
Specified by:
getMove in interface MoveablePosition