|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.java_chess.javaChess.ply.PlyImpl
This class implements the functionality of a ply.
Constructor Summary | |
PlyImpl(Position source,
Position destination)
Construct a new ply from a source and a destination. |
Method Summary | |
boolean |
equals(Ply ply)
Test, if this ply is equal to another ply. |
Position |
getDestination()
Get the destination of the piece. |
Position |
getSource()
Get the source of the ply. |
void |
setDestination(Position destination)
Set the destination of the piece. |
void |
setSource(Position source)
Set the source of the ply. |
java.lang.String |
toString()
Convert the ply into something human readable. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public PlyImpl(Position source, Position destination)
source
- The source of the ply.destination
- The destination of the ply.Method Detail |
public final Position getSource()
public final void setSource(Position source)
The
- new source of the piece.public final Position getDestination()
public final void setDestination(Position destination)
destination
- The new destination of the piece.public java.lang.String toString()
public final boolean equals(Ply ply)
ply
- The other ply.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |