de.java_chess.javaChess.ply
Class EnPassantPlyImpl
java.lang.Object
|
+--de.java_chess.javaChess.ply.PlyImpl
|
+--de.java_chess.javaChess.ply.EnPassantPlyImpl
- public class EnPassantPlyImpl
- extends PlyImpl
- implements EnPassantPly
This class is for pawn plies, that attack a pawn
en passant.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
EnPassantPlyImpl
public EnPassantPlyImpl(Position source,
Position destination,
Position attackedPosition)
- Create a new en passant ply instance.
- Parameters:
source
- The source square of the attacking pawn.destination
- The destination square of the attacking pawn.attackedPosition
- The position of the attacked pawn.
getAttackedPosition
public final Position getAttackedPosition()
- Get the position of the attacked pawn.
- Specified by:
- getAttackedPosition in interface EnPassantPly
- Returns:
- Get the position of the attacked pawn.
setAttackedPosition
public final void setAttackedPosition(Position attackedPosition)
- Set the position of the attacked pawn.
- Specified by:
- setAttackedPosition in interface EnPassantPly
- Parameters:
position
- The position of the attacked pawn.