Package org.collebol.utils
Class EngineObject
java.lang.Object
org.collebol.utils.EngineObject
- Direct Known Subclasses:
GameObject
EngineObject represents an object in the game engine,
holding its position (as a Vector2D) and texture (for visual representation).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintPosition relative to the screen.voidsetTexture(int index) voidPosition relative to the screen.
-
Constructor Details
-
EngineObject
public EngineObject()
-
-
Method Details
-
getVector
Position relative to the screen.- Returns:
- position as vector
-
setVector
Position relative to the screen.- Parameters:
vector- set the screen position of the object.
-
getTexture
public int getTexture() -
setTexture
public void setTexture(int index)
-