java.lang.Object
app.chess.AbstractChessPiece
app.chess.pieces.Knight
- All Implemented Interfaces:
Piece
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class app.chess.AbstractChessPiece
canParticipateInCastling, enPassantable, getColor, getKind, getPlayer, getPosition, isAlive, move, overwriteState, resetMoved, toString, wrap
-
Constructor Details
-
Knight
-
Knight
-
-
Method Details
-
getPotentialMoves
- Specified by:
getPotentialMoves
in classAbstractChessPiece
- Returns:
- A list of ChessMoves that are potentially valid (i.e. the caller needs to check if king's safety is ok and whether path to the given field isn't obstructed
-