Package de.tum.cit.fop.maze.objects
Class GameObjectTemp
java.lang.Object
de.tum.cit.fop.maze.objects.GameObjectTemp
Temporary/legacy game object class for simple static objects.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGameObjectTemp(float x, float y, com.badlogic.gdx.graphics.g2d.TextureRegion texture) -
Method Summary
-
Field Details
-
position
protected com.badlogic.gdx.math.Vector2 position -
texture
protected com.badlogic.gdx.graphics.g2d.TextureRegion texture -
bounds
protected com.badlogic.gdx.math.Rectangle bounds
-
-
Constructor Details
-
GameObjectTemp
public GameObjectTemp(float x, float y, com.badlogic.gdx.graphics.g2d.TextureRegion texture)
-
-
Method Details
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch) Draws the object.- Parameters:
batch- Sprite batch for rendering
-
update
public void update(float delta) Updates the object state.- Parameters:
delta- Time since last update
-
getBounds
public com.badlogic.gdx.math.Rectangle getBounds()Gets the object's bounds.- Returns:
- Bounds rectangle
-