Class MovingEntitySprite

java.lang.Object
megamek.client.ui.swing.boardview.sprite.Sprite
megamek.client.ui.swing.boardview.sprite.MovingEntitySprite
All Implemented Interfaces:
ImageObserver, Comparable<Sprite>

public class MovingEntitySprite extends Sprite
  • Constructor Details

    • MovingEntitySprite

      public MovingEntitySprite(BoardView boardView1, Entity entity, Coords position, int facing, int elevation)
  • Method Details

    • drawOnto

      public void drawOnto(Graphics g, int x, int y, ImageObserver observer)
      Description copied from class: Sprite
      Draws this sprite onto the specified graphics context.
      Overrides:
      drawOnto in class Sprite
    • prepare

      public void prepare()
      Creates the sprite for this entity. It is an extra pain to create transparent images in AWT.
      Specified by:
      prepare in class Sprite