|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.java_chess.javaChess.notation.PlyNotationImpl
This class holds all the methods to render a ply as a string notation.
Constructor Summary | |
PlyNotationImpl(Ply ply,
boolean capture,
Piece piece)
Create a new ply notation instance. |
Method Summary | |
Piece |
getPiece()
Get the piece of this ply. |
java.lang.String |
getPieceTypeNotation(byte pieceType)
Get the notation for a piece type. |
Ply |
getPly()
Get the ply of this notation. |
boolean |
isCapture()
Check if the piece captures another piece with this ply. |
void |
setCapture(boolean capture)
Set the flag to indicate if another piece is captureed with this ply. |
void |
setPiece(Piece piece)
Set the piece, that is moved with this ply. |
void |
setPly(Ply ply)
Set the ply for this notation. |
java.lang.String |
toString()
Render this notation as a string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public PlyNotationImpl(Ply ply, boolean capture, Piece piece)
ply
- The ply to render.capture
- Flag to indicate if it's a capture.piece
- The moved piece.Method Detail |
public java.lang.String toString()
public final Piece getPiece()
public final void setPiece(Piece piece)
ply
- The moved ply.public final Ply getPly()
public final void setPly(Ply ply)
ply
- The ply for this notation.public final boolean isCapture()
public final void setCapture(boolean capture)
capture
- Flag to indicate, if this ply captures another piece.public final java.lang.String getPieceTypeNotation(byte pieceType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |