|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChessBackend
Method Summary | |
---|---|
boolean |
addMove(Move move)
Add a certain move to the backend. |
void |
addMoveListener(MoveListener listener)
Add a move listener. |
void |
addResultListener(ResultListener listener)
|
void |
fireMoveListeners(Move move)
|
void |
fireResultListeners(Result result)
|
long |
getBlackTime()
Gives the remaining time for black [im milliseconds] |
Party |
getParty()
|
Position |
getPosition()
|
long |
getWhiteTime()
Gives the remaining time for white [in milliseconds] |
boolean |
isGameRunning()
|
void |
removeMoveListener(MoveListener listener)
Remove a move listener |
void |
removeResultListener(ResultListener listener)
|
void |
setActive()
Set the backend active (let it accept new moves). |
void |
setInactive()
Set the backend inactive (see #setActive for more information) |
void |
setPosition(Position position)
Sets the backend position to the given position. |
void |
unload()
Unload the backend, e. g. close file/database/process connections |
Method Detail |
---|
void setActive()
void setInactive()
boolean addMove(Move move)
move
- the move that has been done by the user
void setPosition(Position position)
position
- the given positionPosition getPosition()
long getWhiteTime()
long getBlackTime()
Party getParty()
void unload()
void addMoveListener(MoveListener listener)
listener
- void removeMoveListener(MoveListener listener)
listener
- void fireResultListeners(Result result)
void addResultListener(ResultListener listener)
void removeResultListener(ResultListener listener)
void fireMoveListeners(Move move)
boolean isGameRunning()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |