Class AnimationClipInstance
java.lang.Object
com.ardor3d.extension.animation.skeletal.clip.AnimationClipInstance
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnimationListener
(AnimationListener animationListener) Add an animation listener to our callback list.void
Tell any animation listeners on this instance that the associated clip has finished playing.getApplyTo
(AbstractAnimationChannel channel) int
double
double
boolean
isActive()
boolean
removeAnimationListener
(AnimationListener animationListener) Remove an animation listener from our callback list.void
setActive
(boolean active) void
setLoopCount
(int loopCount) void
setStartTime
(double startTime) void
setTimeScale
(double timeScale)
-
Constructor Details
-
AnimationClipInstance
public AnimationClipInstance()
-
-
Method Details
-
addAnimationListener
Add an animation listener to our callback list.- Parameters:
animationListener
- the listener to add.
-
removeAnimationListener
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
- 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
-
getChannelData
-
fireAnimationFinished
public void fireAnimationFinished()Tell any animation listeners on this instance that the associated clip has finished playing.
-