Package com.amirhn.Pieces
Class Knight
java.lang.Object
com.amirhn.Pieces.Piece
com.amirhn.Pieces.Knight
The type Knight.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class com.amirhn.Pieces.Piece
canBeCapturedBy, copy, equals, generate, generate, getAllowedMoves, getLocation, getNaturalMoves, getSymbol, hashCode, hasMoved, isAllowedToMove, removeLocation, setLocation, setLocationBack, toString
-
Constructor Details
-
Knight
Instantiates a new Knight.- Parameters:
color
- the colorlocation
- the location
-
-
Method Details
-
getThreatenedLocations
Gets threatened locations.- Specified by:
getThreatenedLocations
in classPiece
- Parameters:
board
- the board- Returns:
- the threatened locations
-