de.java_chess.javaChess.ply
Interface Ply

All Known Subinterfaces:
CastlingPly, EnPassantPly, TransformationPly
All Known Implementing Classes:
PlyImpl

public interface Ply

This interface has to be implemented by any ply.


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.
 

Method Detail

getSource

public Position getSource()
Get the source of the ply.

setSource

public void setSource(Position source)
Set the source of the ply.

getDestination

public Position getDestination()
Get the destination of the piece.

setDestination

public void setDestination(Position destination)
Set the destination of the piece.

equals

public boolean equals(Ply ply)
Test, if this ply is equal to another ply.
Parameters:
ply - The other ply.
Returns:
true, if the 2 plies are equal.