|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.java_chess.javaChess.notation.GameNotationImpl
This class implements the functionality to notate an entire game.
Constructor Summary | |
GameNotationImpl()
Create a new game notation instance. |
Method Summary | |
void |
addPly(PlyNotation plyNotation)
Add a new ply with it's notation. |
java.lang.String |
getMove(int moveIndex,
boolean white)
Get the notation for a given move and piece color. |
NotationPanel |
getNotationPanel()
Get the panel for the output. |
java.lang.String |
getPlayerInfo(boolean white)
Get some info on a player. |
void |
setNotationPanel(NotationPanel notationPanel)
Set the panel for the notation output. |
void |
setPlayerInfo(java.lang.String playerInfo,
boolean white)
Set the info on a player. |
java.lang.String |
toString()
Get the entire game as a string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public GameNotationImpl()
Method Detail |
public final java.lang.String getMove(int moveIndex, boolean white)
moveIndex
- The index of the move.boolean
- white Flag to indicate if the color is white.public void addPly(PlyNotation plyNotation)
plyNotation
- The notation of the new ply.public final java.lang.String toString()
public final java.lang.String getPlayerInfo(boolean white)
public final void setPlayerInfo(java.lang.String playerInfo, boolean white)
playerInfo
- The player info.white
- Flag to indicate, if it's the player
with the white pieces.public final NotationPanel getNotationPanel()
public final void setNotationPanel(NotationPanel notationPanel)
notationPanel
- The panel for the output.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |