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 Details

    • applyTo

      void applyTo(SkeletonPose applyToPose, AnimationManager manager)
      Apply the current status of the manager to our SkeletonPose.
      Parameters:
      applyToPose - the pose to apply to
      manager - the animation manager to pull state from.
    • apply

      void apply(Spatial root, AnimationManager manager)
      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

      void addTriggerCallback(String key, TriggerCallback callback)
      Add a trigger callback to our callback list.
      Parameters:
      key - the key to add a callback to
      callback - the callback logic to add.
    • removeTriggerCallback

      boolean removeTriggerCallback(String key, TriggerCallback callback)
      Remove a trigger callback from our callback list for a specific key.
      Parameters:
      key - the key to remove from
      callback - the callback logic to remove.
      Returns:
      true if the callback was found to remove