Package org.collebol.shared.objects
Class GameObject
java.lang.Object
org.collebol.shared.EngineObject
org.collebol.shared.objects.GameObject
The GameObject class represents a object in the game world.
It extends the
EngineObject class and includes properties for velocity and GameLocation.
This class is used to manage the state and behavior of a object in the game.
Usage:
GameObject object = new GameObject();
- Since:
- 1.0-dev
- Author:
- ColleBol - contact@collebol.org
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGameLocation is the location in game.Velocity is the speed in combination with the direction of motion of the object.voidsetGameLocation(GameLocation gameLocation) GameLocation is the location in game.voidsetVelocity(Vector2D velocity) Velocity is the speed in combination with the direction of motion of the object.Methods inherited from class org.collebol.shared.EngineObject
getTexture, getVector, setTexture, setVector
-
Constructor Details
-
GameObject
public GameObject()
-
-
Method Details
-
getVelocity
Velocity is the speed in combination with the direction of motion of the object.- Returns:
- vector velocity
-
getGameLocation
GameLocation is the location in game.- Returns:
- game location
-