de.java_chess.javaChess.ply
Interface TransformationPly

All Known Implementing Classes:
TransformationPlyImpl

public interface TransformationPly
extends Ply

This interface is for pawn plies, that reach the last row and transform into a new piece type.


Method Summary
 byte getTypeAfterTransformation()
          Get the new type of the piece after the transformation.
 void setTypeAfterTransformation(byte pieceType)
          Set the new piece type after the transformation.
 
Methods inherited from interface de.java_chess.javaChess.ply.Ply
equals, getDestination, getSource, setDestination, setSource
 

Method Detail

getTypeAfterTransformation

public byte getTypeAfterTransformation()
Get the new type of the piece after the transformation.
Returns:
The new piece after the transformation.

setTypeAfterTransformation

public void setTypeAfterTransformation(byte pieceType)
Set the new piece type after the transformation.
Parameters:
pieceType - The new piece type after the transformation.