Class CollapseWarningSprite

All Implemented Interfaces:
ImageObserver, Comparable<Sprite>

public class CollapseWarningSprite extends HexSprite
Represents structure CF warnings for entities during deployment and movement phase that will collapse if the entity lands-on or is deployed on that structure. From TW: If a units tonnage exceeds the CF of a building or bridge, it will collapse. (Or the sum of tonnage of stacked units if multiple units occupy the hex)
  • Constructor Details

    • CollapseWarningSprite

      public CollapseWarningSprite(BoardView boardView1, Coords loc)
      Parameters:
      boardView1 - - parent BoardView object this sprite will be displayed on.
      loc - - Hex location coordinates of building or bridge where warning will be visible.
  • 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