Package com.amirhn.Pieces
Class Rook
java.lang.Object
com.amirhn.Pieces.Piece
com.amirhn.Pieces.Rook
The type Rook.
-
Field Summary
-
Constructor Summary
Constructors -
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
-
Rook
Instantiates a new Rook.- Parameters:
color- the colorlocation- the location
-
-
Method Details
-
getThreatenedLocations
Gets threatened locations.- Specified by:
getThreatenedLocationsin classPiece- Parameters:
board- the board- Returns:
- the threatened locations
-