Class AnimationData
java.lang.Object
dev.prozilla.pine.core.component.Component
dev.prozilla.pine.core.component.animation.AnimationData
- All Implemented Interfaces:
Animatable,Destructible,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 TypeMethodDescriptionvoidreplaceProperty(Animatable oldProperty, Animatable newProperty) voidRestarts the animation from the beginning.voidupdateAnimation(float deltaTime) Progresses the animation in time.Methods inherited from class dev.prozilla.pine.core.component.Component
destroy, equals, getApplication, getEntity, getName, getScene, hashCode, onEntityChange, setActive, setEntity, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.prozilla.pine.core.ApplicationProvider
getAudioDevice, getConfig, getInput, getLocalStorage, getLogger, getModManager, getRenderer, getTimer, getTracker, getWindowMethods inherited from interface dev.prozilla.pine.core.component.ComponentsProvider
getComponent, getComponentInParent, getComponentInParent, getComponents, getComponentsInChildrenMethods inherited from interface dev.prozilla.pine.core.entity.EntityContext
isDescendantOfMethods inherited from interface dev.prozilla.pine.core.entity.EntityProvider
getChild, getChildWithTag, getFirstChild, getLastChild, getParentWithTag, getTransform, isDescendantOfMethods 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:AnimatableRestarts the animation from the beginning.- Specified by:
restartAnimationin interfaceAnimatable
-
updateAnimation
public void updateAnimation(float deltaTime) Description copied from interface:AnimatableProgresses the animation in time.- Specified by:
updateAnimationin interfaceAnimatable- Parameters:
deltaTime- Time between this frame and the last one, in seconds.
-