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.


Constructor Summary
EnPassantPlyImpl(Position source, Position destination, Position attackedPosition)
          Create a new en passant ply instance.
 
Method Summary
 Position getAttackedPosition()
          Get the position of the attacked pawn.
 void setAttackedPosition(Position attackedPosition)
          Set the position of the attacked pawn.
 
Methods inherited from class de.java_chess.javaChess.ply.PlyImpl
equals, getDestination, getSource, setDestination, setSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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

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.