Class GameObjectTemp

java.lang.Object
de.tum.cit.fop.maze.objects.GameObjectTemp

public abstract class GameObjectTemp extends Object
Temporary/legacy game object class for simple static objects.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.badlogic.gdx.math.Rectangle
     
    protected com.badlogic.gdx.math.Vector2
     
    protected com.badlogic.gdx.graphics.g2d.TextureRegion
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GameObjectTemp(float x, float y, com.badlogic.gdx.graphics.g2d.TextureRegion texture)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(com.badlogic.gdx.graphics.g2d.Batch batch)
    Draws the object.
    com.badlogic.gdx.math.Rectangle
    Gets the object's bounds.
    void
    update(float delta)
    Updates the object state.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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