Class AnimationData
java.lang.Object
dev.prozilla.pine.core.component.Component
dev.prozilla.pine.core.component.animation.AnimationData
- All Implemented Interfaces:
Animatable
,Lifecycle
,Printable
,ApplicationContext
,ApplicationProvider
,ComponentsContext
,ComponentsProvider
,EntityContext
,EntityProvider
,SceneContext
,SceneProvider
A component that handles animated properties of other components.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
replaceProperty
(Animatable oldProperty, Animatable newProperty) void
Restarts the animation from the beginning.void
updateAnimation
(float deltaTime) Progresses the animation in time.Methods inherited from class dev.prozilla.pine.core.component.Component
equals, getApplication, getEntity, getName, getScene, hashCode, setActive, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.prozilla.pine.core.ApplicationProvider
getConfig, getInput, getLogger, getModManager, getRenderer, getTimer, getTracker, getWindow
Methods inherited from interface dev.prozilla.pine.core.component.ComponentsProvider
getComponent, getComponentInParent, getComponentInParent, getComponents, getComponentsInChildren
Methods inherited from interface dev.prozilla.pine.core.entity.EntityContext
isDescendantOf
Methods inherited from interface dev.prozilla.pine.core.entity.EntityProvider
getChildWithTag, getFirstChild, getLastChild, getParentWithTag, getTransform, isDescendantOf
Methods inherited from interface dev.prozilla.pine.common.Lifecycle
destroy, init, init, input, input, render, render, start, update, update
Methods inherited from interface dev.prozilla.pine.core.scene.SceneProvider
getCameraData, getWorld
-
Field Details
-
properties
-
applyTimeScale
public final boolean applyTimeScale
-
-
Constructor Details
-
AnimationData
public AnimationData(boolean applyTimeScale)
-
-
Method Details
-
replaceProperty
-
restartAnimation
public void restartAnimation()Description copied from interface:Animatable
Restarts the animation from the beginning.- Specified by:
restartAnimation
in interfaceAnimatable
-
updateAnimation
public void updateAnimation(float deltaTime) Description copied from interface:Animatable
Progresses the animation in time.- Specified by:
updateAnimation
in interfaceAnimatable
- Parameters:
deltaTime
- Time between this frame and the last one, in seconds.
-