Class SawClearingSprite

All Implemented Interfaces:
ImageObserver, Comparable<Sprite>

public class SawClearingSprite extends HexSprite
Displays a circular saw blade indicator on hexes that are being cleared by saws. Shows a steel gray blade with triangular teeth and a turns-remaining number in the center, positioned in the lower portion of the hex.
  • Constructor Details

    • SawClearingSprite

      public SawClearingSprite(BoardView boardView, Coords loc, int turnsRemaining)
      Creates a new saw clearing sprite for the given hex.
      Parameters:
      boardView - the parent board view
      loc - the hex coordinates
      turnsRemaining - the number of turns remaining to complete clearing
  • Method Details

    • prepare

      public void prepare()
      Description copied from class: Sprite
      Do any necessary preparation. This is called after creation, but before drawing, when a device context is ready to draw with.
      Specified by:
      prepare in class Sprite
    • isBehindTerrain

      public boolean isBehindTerrain()
      Description copied from class: HexSprite
      Returns true when this Sprite should be hidden by overlapping terrain in isometric mode, i.e. hidden behind mountains. By default, this method returns true.
      Overrides:
      isBehindTerrain in class HexSprite
      Returns:
      True for Sprites that should be hidden by overlapping terrain in isometric mode