Class Queen

java.lang.Object
com.amirhn.Pieces.Piece
com.amirhn.Pieces.Queen

public class Queen extends Piece
The type Queen.
  • Constructor Details

    • Queen

      public Queen(Color color, Location location)
      Instantiates a new Queen.
      Parameters:
      color - the color
      location - the location
  • Method Details

    • setLocation

      public void setLocation(Location location)
      Sets location.
      Overrides:
      setLocation in class Piece
      Parameters:
      location - the location
    • setLocationBack

      public void setLocationBack(Location location)
      Sets location back.
      Overrides:
      setLocationBack in class Piece
      Parameters:
      location - the location
    • removeLocation

      public void removeLocation()
      Remove location.
      Overrides:
      removeLocation in class Piece
    • getThreatenedLocations

      public List<Location> getThreatenedLocations(Board board)
      Gets threatened locations.
      Specified by:
      getThreatenedLocations in class Piece
      Parameters:
      board - the board
      Returns:
      the threatened locations