Package com.amirhn.Pieces
Class Bishop
java.lang.Object
com.amirhn.Pieces.Piece
com.amirhn.Pieces.Bishop
The type Bishop.
-
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
-
Bishop
Instantiates a new Bishop.- 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
-