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

public class AnimationData extends Component implements Animatable
A component that handles animated properties of other components.
  • Field Details

    • properties

      public List<Animatable> properties
    • applyTimeScale

      public final boolean applyTimeScale
  • Constructor Details

    • AnimationData

      public AnimationData(boolean applyTimeScale)
  • Method Details

    • replaceProperty

      public void replaceProperty(Animatable oldProperty, Animatable newProperty)
    • restartAnimation

      public void restartAnimation()
      Description copied from interface: Animatable
      Restarts the animation from the beginning.
      Specified by:
      restartAnimation in interface Animatable
    • updateAnimation

      public void updateAnimation(float deltaTime)
      Description copied from interface: Animatable
      Progresses the animation in time.
      Specified by:
      updateAnimation in interface Animatable
      Parameters:
      deltaTime - Time between this frame and the last one, in seconds.