Class GameObjectMemento
java.lang.Object
de.tum.cit.fop.maze.game_saves.mementos.GameObjectMemento
- All Implemented Interfaces:
Memento
- Direct Known Subclasses:
BouncerMemento,ExitMemento,FreezeTrapMemento,GarlicTrapMemento,HeartMemento,JunkieMemento,KeyMemento,TouristMemento
Memento storing basic game object state including position, velocity, and animation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatfloatfloat -
Constructor Summary
ConstructorsConstructorDescriptionGameObjectMemento(float positionX, float positionY, float velocityX, float velocityY, float speed, String animationType, String objectType) -
Method Summary
-
Field Details
-
positionX
public float positionX -
positionY
public float positionY -
velocityX
public float velocityX -
velocityY
public float velocityY -
speed
public float speed -
animationType
-
objectType
-
-
Constructor Details
-
GameObjectMemento
public GameObjectMemento() -
GameObjectMemento
-