|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.animation.AnimationEventManager
public class AnimationEventManager
AnimationEventManager maintains a collection of animation triggers. A trigger is found using the BoneAnimation and the keyframe. The bone animation will request the list of events on a keyframe change. All events will have the performAction method called as needed from the bone animation.
Method Summary | |
---|---|
void |
addAnimationEvent(BoneAnimation ba,
java.lang.Integer key,
AnimationEvent data)
Adds a single animation event to the list of events for a specified animation at a given keyframe. |
void |
bind(BoneAnimation key,
BoneAnimation original)
|
java.util.HashMap<java.lang.Integer,java.util.ArrayList<AnimationEvent>> |
getAllEvents(BoneAnimation key)
retrieves all events assigned to a BoneAnimation. |
java.util.ArrayList<AnimationEvent> |
getAnimationEventList(BoneAnimation ba,
java.lang.Integer key)
|
java.util.ArrayList<AnimationEvent> |
getEvents(BoneAnimation key,
int frame)
Obtains a list of events for a given animation at a specified frame. |
java.lang.Integer[] |
getFrames(BoneAnimation key)
returns a list of frames that contain events for a given bone animation. |
static AnimationEventManager |
getInstance()
Obtains the singleton instance of the AnimationEventManager. |
boolean |
removeAnimationEvent(BoneAnimation ba,
java.lang.Integer key,
AnimationEvent event)
|
java.util.ArrayList<AnimationEvent> |
removeAnimationEventList(BoneAnimation ba,
java.lang.Integer key)
|
void |
setAnimationEventList(BoneAnimation key,
java.util.HashMap<java.lang.Integer,java.util.ArrayList<AnimationEvent>> data)
stores a map of animation events for a specified animation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AnimationEventManager getInstance()
public java.util.HashMap<java.lang.Integer,java.util.ArrayList<AnimationEvent>> getAllEvents(BoneAnimation key)
key
- the bone animation object to retrieve events for.
public java.lang.Integer[] getFrames(BoneAnimation key)
key
- the bone animation to obtain the frames for.
public java.util.ArrayList<AnimationEvent> getEvents(BoneAnimation key, int frame)
key
- the animation to obtain the events for.frame
- the keyframe to obtain events for.
public void setAnimationEventList(BoneAnimation key, java.util.HashMap<java.lang.Integer,java.util.ArrayList<AnimationEvent>> data)
key
- the animation that will be linked to the events.data
- the events to store.public void addAnimationEvent(BoneAnimation ba, java.lang.Integer key, AnimationEvent data)
ba
- the animation to link to this event.key
- the frame to use to trigger the event.data
- the event.public java.util.ArrayList<AnimationEvent> getAnimationEventList(BoneAnimation ba, java.lang.Integer key)
public java.util.ArrayList<AnimationEvent> removeAnimationEventList(BoneAnimation ba, java.lang.Integer key)
public boolean removeAnimationEvent(BoneAnimation ba, java.lang.Integer key, AnimationEvent event)
public void bind(BoneAnimation key, BoneAnimation original)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |