All Implemented Interfaces:
ImageObserver, Comparable<Sprite>

public class IsometricSprite extends HexSprite
Sprite used for isometric rendering to render an entity partially hidden behind a hill.
  • Constructor Details

    • IsometricSprite

      public IsometricSprite(BoardView boardView1, Entity entity, int secondaryPos, Image radarBlipImage)
  • Method Details

    • getEntity

      public Entity getEntity()
    • getPosition

      public Coords getPosition()
      Overrides:
      getPosition in class HexSprite
    • drawOnto

      public void drawOnto(Graphics g, int x, int y, ImageObserver observer, boolean makeTranslucent)
      Overrides:
      drawOnto in class Sprite
    • drawImmobileElements

      public void drawImmobileElements(Graphics graph, int x, int y, ImageObserver observer)
      Worker function that draws "immobile" decals.
    • 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
    • getSpritePriority

      protected int getSpritePriority()
      Description copied from class: Sprite
      Determines the sprite's draw priority: sprites with a higher priority get drawn last, ensuring that they are "on top" of other sprites.
      Overrides:
      getSpritePriority in class Sprite
      Returns:
      this Sprite's draw priority, higher values drawing later