Package org.collebol.shared
Class EngineObject
java.lang.Object
org.collebol.shared.EngineObject
- Direct Known Subclasses:
GameObject
EngineObject represents an object in the game engine,
holding its position (as a Vector2D) and texture (for visual representation).
- Since:
- 1.0-dev
- Author:
- ColleBol - contact@collebol.org
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintPosition relative to the screen.booleanvoidsetOriginPosition(Vector2D originPosition) voidvoidsetTexture(int id) voidPosition relative to the screen.
-
Constructor Details
-
EngineObject
public EngineObject()
-
-
Method Details
-
getVector
Position relative to the screen.- Returns:
- position as vector
-
getTexture
public int getTexture() -
setTexture
public void setTexture(int id) -
getSprite
-
hasSprite
public boolean hasSprite() -
getOriginPosition
-