chesspresso.position
Class AbstractMutablePosition
java.lang.Object
|
+--chesspresso.position.AbstractPosition
|
+--chesspresso.position.AbstractMutablePosition
- All Implemented Interfaces:
- ImmutablePosition, MutablePosition
- Direct Known Subclasses:
- AbstractMoveablePosition, LightWeightPosition
- public abstract class AbstractMutablePosition
- extends AbstractPosition
- implements MutablePosition
- Version:
- $Revision: 1.1 $
- Author:
- Bernhard Seybold
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.ImmutablePosition |
getCastles, getFEN, getHalfMoveClock, getHashCode, getPlyNumber, getSqiEP, getStone, getToPlay, hashCode, isLegal, isStartPosition, validate |
m_listeners
protected PositionListener[] m_listeners
m_changeListeners
protected PositionChangeListener[] m_changeListeners
m_notifyListeners
protected boolean m_notifyListeners
m_notifyPositionChanged
protected boolean m_notifyPositionChanged
AbstractMutablePosition
protected AbstractMutablePosition()
getPiece
public int getPiece(int sqi)
getColor
public int getColor(int sqi)
isSquareEmpty
public boolean isSquareEmpty(int sqi)
toggleToPlay
public void toggleToPlay()
clear
public void clear()
- Specified by:
clear
in interface MutablePosition
setStart
public void setStart()
- Specified by:
setStart
in interface MutablePosition
set
public void set(ImmutablePosition position)
- Specified by:
set
in interface MutablePosition
inverse
public final void inverse()
includeCastles
public final void includeCastles(int whichCastles)
excludeCastles
public final void excludeCastles(int whichCastles)
resetHalfMoveClock
public final void resetHalfMoveClock()
incHalfMoveClock
public final void incHalfMoveClock()
fireSquareChanged
protected void fireSquareChanged(int sqi)
fireToPlayChanged
protected void fireToPlayChanged()
fireSqiEPChanged
protected void fireSqiEPChanged()
fireCastlesChanged
protected void fireCastlesChanged()
firePlyNumberChanged
protected void firePlyNumberChanged()
fireHalfMoveClockChanged
protected void fireHalfMoveClockChanged()
fireMoveDone
protected void fireMoveDone(short move)
fireMoveUndone
protected void fireMoveUndone()
firePositionChanged
public void firePositionChanged()
addPositionListener
public final void addPositionListener(PositionListener listener)
removePositionListener
public final void removePositionListener(PositionListener listener)
setNotifyListeners
public final void setNotifyListeners(boolean notify)
addPositionChangeListener
public final void addPositionChangeListener(PositionChangeListener listener)
removePositionChangeListener
public final void removePositionChangeListener(PositionChangeListener listener)