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.
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.