Package basiselements

Class DungeonElement

java.lang.Object
basiselements.DungeonElement
Direct Known Subclasses:
Entity, HUDElement

public abstract class DungeonElement extends Object
  • Constructor Details

    • DungeonElement

      public DungeonElement(com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      An object in the dungeon that can be drawn
      Parameters:
      batch - SpriteBatch to draw on
  • Method Details

    • update

      public void update()
      Will be executed every frame.
    • removable

      public boolean removable()
      Returns:
      true, if this instance can be deleted; false otherwise
    • getBatch

      public com.badlogic.gdx.graphics.g2d.SpriteBatch getBatch()
    • getPosition

      public abstract Point getPosition()
      Returns:
      the exact position in the dungeon of this instance
    • getTexturePath

      public abstract String getTexturePath()
      Returns:
      the (current) Texture-Path of the object