com.model.md5.interfaces
Interface IMD5Animation

All Superinterfaces:
com.jme.util.export.Savable
All Known Implementing Classes:
MD5Animation

public interface IMD5Animation
extends com.jme.util.export.Savable

IMD5Animation defines the interface of a completed loaded MD5 animation.


Method Summary
 void addAnimation(IMD5Animation animation)
          Add a child MD5 animation.
 IMD5Animation clone()
          Clone this animation.
 float getAnimationTime()
          Retrieve the total time of a complete cycle of this animation.
 int getFrameCount()
          Retrieve the total number of frames.
 java.lang.String[] getJointIDs()
          Retrieve the IDs of joints of this animation.
 java.lang.String getName()
          Retrieve the name of this animation.
 IFrame getNextFrame()
          Retrieve the next frame.
 int getNextIndex()
          Retrieve the next frame index number.
 float getNextTime()
          Retrieve the starting time of the next frame.
 float getPercentage()
          Get the complete percentage of the current cycle.
 IFrame getPreviousFrame()
          Retrieve the previous frame.
 int getPreviousIndex()
          Retrieve the previous frame index number.
 float getPreviousTime()
          Retrieve the starting time of the previous frame.
 boolean isBackward()
          Check if this animation is being played backward.
 boolean isCyleComplete()
          Check if one cycle of this animation is complete, but the new one has not yet started.
 void removeAnimation(IMD5Animation animation)
          Remove the given animation.
 void reset()
          Reset the time and frame index information.
 void update(float time, int repeat, float speed)
          Update the frame index based on given values.
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Method Detail

update

void update(float time,
            int repeat,
            float speed)
Update the frame index based on given values.

Parameters:
time - The Float frame interpolation.
repeat - The Controller repeat type.
speed - The Float speed of the controller.

addAnimation

void addAnimation(IMD5Animation animation)
Add a child MD5 animation.

Parameters:
animation - The child IMD5Animation to be added.

removeAnimation

void removeAnimation(IMD5Animation animation)
Remove the given animation.

Parameters:
animation - The child IMD5Animation to be removed.

getAnimationTime

float getAnimationTime()
Retrieve the total time of a complete cycle of this animation.

Returns:
The Float complete cycle time.

getFrameCount

int getFrameCount()
Retrieve the total number of frames.

Returns:
The Integer number of frames.

getPercentage

float getPercentage()
Get the complete percentage of the current cycle.

Returns:
The Float percentage value.

getPreviousFrame

IFrame getPreviousFrame()
Retrieve the previous frame.

Returns:
The previous IFrame.

getPreviousIndex

int getPreviousIndex()
Retrieve the previous frame index number.

Returns:
The Integer index number.

getPreviousTime

float getPreviousTime()
Retrieve the starting time of the previous frame.

Returns:
The Float starting time.

getNextFrame

IFrame getNextFrame()
Retrieve the next frame.

Returns:
The next IFrame.

getNextIndex

int getNextIndex()
Retrieve the next frame index number.

Returns:
The Integer index number.

getNextTime

float getNextTime()
Retrieve the starting time of the next frame.

Returns:
The Float starting time.

getJointIDs

java.lang.String[] getJointIDs()
Retrieve the IDs of joints of this animation.

Returns:
The array of String IDs.

getName

java.lang.String getName()
Retrieve the name of this animation.

Returns:
The String name.

isBackward

boolean isBackward()
Check if this animation is being played backward.

Returns:
True if the animation is being played backward. False forward.

isCyleComplete

boolean isCyleComplete()
Check if one cycle of this animation is complete, but the new one has not yet started.

Returns:
True if one cycle is complete. False otherwise.

reset

void reset()
Reset the time and frame index information.


clone

IMD5Animation clone()
Clone this animation.

Returns:
The cloned IMD5Animation instance.