|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.java_chess.javaChess.game.GameImpl
This class stores a complete chess game and provides access to all the game stages.
Constructor Summary | |
GameImpl()
Create a new game instance. |
Method Summary | |
void |
doPly(Ply ply)
Do a new ply in this game. |
Ply |
getLastPly()
Get the last ply. |
int |
getNumberOfPlies()
Get the total number of plies. |
boolean |
hasBeenMoved(Position position)
Check, if a piece on a given positon was moved from it's initial position. |
void |
reset()
Reset the game. |
java.lang.String |
toString()
Convert the game to a string. |
void |
undoLastPly()
Undo the last ply. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public GameImpl()
Method Detail |
public final void reset()
public final void doPly(Ply ply)
ply
- The next ply.public final void undoLastPly()
public final int getNumberOfPlies()
public final Ply getLastPly()
public final boolean hasBeenMoved(Position position)
position
- The position to check.public final java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |