Interface AnimationApplier
- All Known Implementing Classes:
SimpleAnimationApplier
public interface AnimationApplier
Describes a class that can take information from a manager and its current layers and state and apply it to a given
SkeletonPose. The class should not update or modify the manager, but should merely request current state (usually via
manager.getCurrentSourceData();)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTriggerCallback
(String key, TriggerCallback callback) Add a trigger callback to our callback list.void
apply
(Spatial root, AnimationManager manager) Apply the current status of the manager to non-skeletal assets.void
applyTo
(SkeletonPose applyToPose, AnimationManager manager) Apply the current status of the manager to our SkeletonPose.boolean
removeTriggerCallback
(String key, TriggerCallback callback) Remove a trigger callback from our callback list for a specific key.
-
Method Details
-
applyTo
Apply the current status of the manager to our SkeletonPose.- Parameters:
applyToPose
- the pose to apply tomanager
- the animation manager to pull state from.
-
apply
Apply the current status of the manager to non-skeletal assets.- Parameters:
root
- the root of the scene graph we will apply to.manager
- the animation manager to pull state from.
-
addTriggerCallback
Add a trigger callback to our callback list.- Parameters:
key
- the key to add a callback tocallback
- the callback logic to add.
-
removeTriggerCallback
Remove a trigger callback from our callback list for a specific key.- Parameters:
key
- the key to remove fromcallback
- the callback logic to remove.- Returns:
- true if the callback was found to remove
-