Class AnimationClipInstance

java.lang.Object
com.ardor3d.extension.animation.skeletal.clip.AnimationClipInstance

public class AnimationClipInstance extends Object
Maintains state information about an instance of a specific animation clip, such as time scaling applied, active flag, start time of the instance, etc.
  • Constructor Details

    • AnimationClipInstance

      public AnimationClipInstance()
  • Method Details

    • addAnimationListener

      public void addAnimationListener(AnimationListener animationListener)
      Add an animation listener to our callback list.
      Parameters:
      animationListener - the listener to add.
    • removeAnimationListener

      public boolean removeAnimationListener(AnimationListener animationListener)
      Remove an animation listener from our callback list.
      Parameters:
      animationListener - the listener to remove.
      Returns:
      true if the listener was found in our list
    • getAnimationListeners

      public List<AnimationListener> getAnimationListeners()
      Returns:
      an immutable copy of the list of action listeners.
    • isActive

      public boolean isActive()
    • setActive

      public void setActive(boolean active)
    • getLoopCount

      public int getLoopCount()
    • setLoopCount

      public void setLoopCount(int loopCount)
    • getTimeScale

      public double getTimeScale()
    • setTimeScale

      public void setTimeScale(double timeScale)
    • getStartTime

      public double getStartTime()
    • setStartTime

      public void setStartTime(double startTime)
    • getApplyTo

      public Object getApplyTo(AbstractAnimationChannel channel)
    • getChannelData

      public Map<String,Object> getChannelData()
    • fireAnimationFinished

      public void fireAnimationFinished()
      Tell any animation listeners on this instance that the associated clip has finished playing.