Class SawClearingSprite
java.lang.Object
megamek.client.ui.clientGUI.boardview.sprite.Sprite
megamek.client.ui.clientGUI.boardview.sprite.HexSprite
megamek.client.ui.clientGUI.boardview.sprite.SawClearingSprite
- All Implemented Interfaces:
ImageObserver,Comparable<Sprite>
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.
-
Field Summary
Fields inherited from class megamek.client.ui.clientGUI.boardview.sprite.Sprite
bounds, bv, hidden, imageFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionSawClearingSprite(BoardView boardView, Coords loc, int turnsRemaining) Creates a new saw clearing sprite for the given hex. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true when this Sprite should be hidden by overlapping terrain in isometric mode, i.e.voidprepare()Do any necessary preparation.Methods inherited from class megamek.client.ui.clientGUI.boardview.sprite.HexSprite
createNewHexImage, getPosition, updateBoundsMethods inherited from class megamek.client.ui.clientGUI.boardview.sprite.Sprite
compareTo, drawOnto, drawOnto, equals, getBounds, getSpritePriority, getTooltip, imageUpdate, isHidden, isInside, isReady, setHidden, toString
-
Constructor Details
-
SawClearingSprite
Creates a new saw clearing sprite for the given hex.- Parameters:
boardView- the parent board viewloc- the hex coordinatesturnsRemaining- the number of turns remaining to complete clearing
-
-
Method Details
-
prepare
public void prepare()Description copied from class:SpriteDo any necessary preparation. This is called after creation, but before drawing, when a device context is ready to draw with. -
isBehindTerrain
public boolean isBehindTerrain()Description copied from class:HexSpriteReturns 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:
isBehindTerrainin classHexSprite- Returns:
- True for Sprites that should be hidden by overlapping terrain in isometric mode
-