Package org.collebol.game
Class GameObject
java.lang.Object
org.collebol.utils.EngineObject
org.collebol.game.GameObject
-
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.utils.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
-
setVelocity
Velocity is the speed in combination with the direction of motion of the object.- Parameters:
velocity- vector with x and y its moving in
-
getGameLocation
GameLocation is the location in game.- Returns:
- game location
-
setGameLocation
GameLocation is the location in game.- Parameters:
gameLocation- game location. not Vector2D.
-