Class AbstractWreckSprite
java.lang.Object
megamek.client.ui.clientGUI.boardview.sprite.Sprite
megamek.client.ui.clientGUI.boardview.sprite.AbstractWreckSprite
- All Implemented Interfaces:
ImageObserver,Comparable<Sprite>
- Direct Known Subclasses:
IsometricWreckSprite,WreckSprite
Contains common functionality for wreck sprites (currently isometric and regular)
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns our bounding rectangle.Since most sprites being drawn correspond to something in the game, this returns a little info for a tooltip.booleanOverrides to provide for a smaller sensitive area.voidprepare()Creates the sprite for this entity.
-
Field Details
-
entity
-
modelRect
-
secondaryPos
protected int secondaryPos
-
-
Constructor Details
-
AbstractWreckSprite
-
-
Method Details
-
getBounds
Description copied from class:SpriteReturns our bounding rectangle. The coordinates here are stored with the top left corner of the _board_ being 0, 0, so these do not always correspond to screen coordinates. -
getEntity
-
prepare
public void prepare()Creates the sprite for this entity. It is an extra pain to create transparent images in AWT. -
isInside
Overrides to provide for a smaller sensitive area. -
getPosition
-
getTooltip
Description copied from class:SpriteSince most sprites being drawn correspond to something in the game, this returns a little info for a tooltip.- Overrides:
getTooltipin classSprite
-