com.jme.animation
Interface AnimationEvent

All Superinterfaces:
Savable

public interface AnimationEvent
extends Savable

AnimationEvent defines a trigger for an animation set to a keyframe. The AnimationEventManager handles linking a trigger to a BoneAnimation object. During the animation cycle, frames are used to find available triggers. If a trigger is found the performAction method is called.

Author:
Mark Powell

Method Summary
 int getTriggerFrame()
          Retrieves the animation frame that triggers this event.
 void performAction()
          performAction executes the defined event of the implementing event.
 void setTriggerFrame(int frame)
          Sets the animation frame that triggers this event.
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Method Detail

getTriggerFrame

int getTriggerFrame()
Retrieves the animation frame that triggers this event.

Returns:
the animation frame that triggers this event.

setTriggerFrame

void setTriggerFrame(int frame)
Sets the animation frame that triggers this event.

Parameters:
frame - sets the animation frame that triggers this event.

performAction

void performAction()
performAction executes the defined event of the implementing event.