Class EngineObject

java.lang.Object
org.collebol.utils.EngineObject
Direct Known Subclasses:
GameObject

public class EngineObject extends Object
EngineObject represents an object in the game engine, holding its position (as a Vector2D) and texture (for visual representation).
  • Constructor Details

    • EngineObject

      public EngineObject()
  • Method Details

    • getVector

      public Vector2D getVector()
      Position relative to the screen.
      Returns:
      position as vector
    • setVector

      public void setVector(Vector2D vector)
      Position relative to the screen.
      Parameters:
      vector - set the screen position of the object.
    • getTexture

      public int getTexture()
    • setTexture

      public void setTexture(int index)