Class IsometricSprite
java.lang.Object
megamek.client.ui.clientGUI.boardview.sprite.Sprite
megamek.client.ui.clientGUI.boardview.sprite.HexSprite
megamek.client.ui.clientGUI.boardview.sprite.isometric.IsometricSprite
- All Implemented Interfaces:
ImageObserver,Comparable<Sprite>
Sprite used for isometric rendering to render an entity partially hidden behind a hill.
-
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
ConstructorsConstructorDescriptionIsometricSprite(BoardView boardView1, Entity entity, int secondaryPos, Image radarBlipImage) -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawImmobileElements(Graphics graph, int x, int y, ImageObserver observer) Worker function that draws "immobile" decals.voiddrawOnto(Graphics g, int x, int y, ImageObserver observer, boolean makeTranslucent) protected intDetermines the sprite's draw priority: sprites with a higher priority get drawn last, ensuring that they are "on top" of other sprites.voidprepare()Do any necessary preparation.Methods inherited from class megamek.client.ui.clientGUI.boardview.sprite.HexSprite
createNewHexImage, isBehindTerrain, updateBounds
-
Constructor Details
-
IsometricSprite
-
-
Method Details
-
getEntity
-
getPosition
- Overrides:
getPositionin classHexSprite
-
drawOnto
-
drawImmobileElements
Worker function that draws "immobile" decals. -
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. -
getSpritePriority
protected int getSpritePriority()Description copied from class:SpriteDetermines the sprite's draw priority: sprites with a higher priority get drawn last, ensuring that they are "on top" of other sprites.- Overrides:
getSpritePriorityin classSprite- Returns:
- this Sprite's draw priority, higher values drawing later
-