|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--md3.md3model.MD3Animation
A class with metadata describing an MD3 model animation.
Field Summary | |
int |
first
First frame. |
int |
fps
Frames per second. |
int |
looping
Number of looping frames. |
java.lang.String |
name
Name of the animation. |
int |
num
Number of frames in the animation. |
int |
offset
For LEGS animations, this value give the amount by which the first frame value was offset because of the need to skip TORSO frames. |
int |
type
The animation type specifies for what parts of a model this animation data is applicable (e.g. |
Constructor Summary | |
protected |
MD3Animation()
Create an empty animation object. |
protected |
MD3Animation(java.lang.String line)
Create a new MD3Animation object and initialize it with the data on the given line. |
Method Summary | |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public int type
The animation type specifies for what parts of a model this animation data is applicable (e.g. LEGS, BOTH, ...). The possible animation types are specified in the AnimationCfg class.
AnimationCfg
public int offset
For LEGS animations, this value give the amount by which the first frame value was offset because of the need to skip TORSO frames.
For other types of animations, this value has no meaning.
public java.lang.String name
Name of the animation.
public int first
First frame.
public int num
Number of frames in the animation. A value of less then 0 indicates that all available frames should be used.
public int looping
Number of looping frames.
public int fps
Frames per second.
Constructor Detail |
protected MD3Animation(java.lang.String line) throws java.io.IOException
Create a new MD3Animation object and initialize it with the data on the given line.
Note that the name and type of the animation are NOT initialized! This has to be done separately!
protected MD3Animation()
Create an empty animation object. Constructor for use in subclasses.
Method Detail |
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |