klaus.backend
Class AnalyzeBackend
java.lang.Object
klaus.backend.NullBackend
klaus.backend.OfflinePlayingBackend
klaus.backend.AnalyzeBackend
- All Implemented Interfaces:
- ChessBackend, ScrollingBackend
public class AnalyzeBackend
- extends OfflinePlayingBackend
Methods inherited from class klaus.backend.OfflinePlayingBackend |
fireResultListeners, forceMove, getBlack, getBlackTime, getParty, getPosition, getWhite, getWhiteTime, goToFirst, goToLast, goToNext, goToPrevious, isEngineThinking, isGameRunning, setGameModel, startCalculation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnalyzeBackend
public AnalyzeBackend()
setBlackEngine
public void setBlackEngine(Engine e)
- Overrides:
setBlackEngine
in class OfflinePlayingBackend
setWhiteEngine
public void setWhiteEngine(Engine e)
- Overrides:
setWhiteEngine
in class OfflinePlayingBackend
unload
public void unload()
- Description copied from interface:
ChessBackend
- Unload the backend, e. g. close file/database/process connections
- Specified by:
unload
in interface ChessBackend
- Overrides:
unload
in class OfflinePlayingBackend
setParty
public void setParty(Party party)
addMove
public boolean addMove(Move move)
- Description copied from interface:
ChessBackend
- Add a certain move to the backend. The backend has to react to this move.
If the move is accepted, true is returned and the move can be displayed.
If not, the interface should beep and/or show an error message.
- Specified by:
addMove
in interface ChessBackend
- Overrides:
addMove
in class OfflinePlayingBackend
- Parameters:
move
- the move that has been done by the user
- Returns:
- true if the move was accepted, else false