Package basiselements
Class DungeonElement
java.lang.Object
basiselements.DungeonElement
- Direct Known Subclasses:
Entity
,HUDElement
-
Constructor Summary
ConstructorsConstructorDescriptionDungeonElement
(com.badlogic.gdx.graphics.g2d.SpriteBatch batch) An object in the dungeon that can be drawn -
Method Summary
-
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
- Returns:
- the exact position in the dungeon of this instance
-
getTexturePath
- Returns:
- the (current) Texture-Path of the object
-