Class AnimationEvent

java.lang.Object
com.jme3.cinematic.events.AbstractCinematicEvent
com.jme3.cinematic.events.AnimationEvent
All Implemented Interfaces:
CinematicEvent, Savable
Direct Known Subclasses:
AnimationTrack

@Deprecated public class AnimationEvent extends AbstractCinematicEvent
Deprecated.
An event based on an animation of a model. The model has to hold an AnimControl with valid animation (bone or spatial animations). It helps to schedule the playback of an animation on a model in a Cinematic.
  • Field Details

    • SAVABLE_VERSION

      public static final int SAVABLE_VERSION
      Deprecated.
      See Also:
    • MODEL_CHANNELS

      public static final String MODEL_CHANNELS
      Deprecated.
      See Also:
    • channel

      protected AnimChannel channel
      Deprecated.
    • animationName

      protected String animationName
      Deprecated.
    • model

      protected Spatial model
      Deprecated.
    • modelName

      protected String modelName
      Deprecated.
    • blendTime

      protected float blendTime
      Deprecated.
    • channelIndex

      protected int channelIndex
      Deprecated.
    • cinematic

      protected Cinematic cinematic
      Deprecated.
  • Constructor Details

    • AnimationEvent

      protected AnimationEvent()
      Deprecated.
      used for serialization don't call directly use one of the following constructors
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, float initialDuration)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      initialDuration - the initial duration of the event
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, LoopMode loopMode)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      loopMode - the loopMode
      See Also:
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, float initialDuration, LoopMode loopMode)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      initialDuration - the initial duration of the event
      loopMode - the loopMode
      See Also:
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, float initialDuration, float blendTime)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      initialDuration - the initial duration of the event
      blendTime - the time interval during which the animation will be blended
      See Also:
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, LoopMode loopMode, float blendTime)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      loopMode - the loopMode
      blendTime - the time interval during which the animation will be blended
      See Also:
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, float initialDuration, LoopMode loopMode, float blendTime)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      initialDuration - the initial duration of the event
      loopMode - the loopMode
      blendTime - the time interval during which the animation will be blended
      See Also:
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, LoopMode loopMode, int channelIndex)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      loopMode - the loopMode
      channelIndex - the index of the channel default is 0. Events on the same channelIndex will use the same channel.
      See Also:
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, int channelIndex)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      channelIndex - the index of the channel default is 0. Events on the same channelIndex will use the same channel.
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, LoopMode loopMode, int channelIndex, float blendTime)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      loopMode - the desired mode (Loop/DontLoop/Cycle)
      channelIndex - the index of the channel default is 0. Events on the
      blendTime - the time interval during which the animation will be blended same channelIndex will use the same channel.
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, float initialDuration, int channelIndex)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      initialDuration - the initial duration of the event
      channelIndex - the index of the channel default is 0. Events on the same channelIndex will use the same channel.
    • AnimationEvent

      public AnimationEvent(Spatial model, String animationName, float initialDuration, LoopMode loopMode, int channelIndex)
      Deprecated.
      creates an animation event
      Parameters:
      model - the model on which the animation will be played
      animationName - the name of the animation to play
      initialDuration - the initial duration of the event
      loopMode - the loopMode
      channelIndex - the index of the channel default is 0. Events on the same channelIndex will use the same channel.
      See Also:
  • Method Details