md3.md3model
Class MD3Animation

java.lang.Object
  |
  +--md3.md3model.MD3Animation

public class MD3Animation
extends java.lang.Object

A class with metadata describing an MD3 model animation.

Author:
Erwin Vervaet (erwin@cs.kuleuven.ac.be)

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

type

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.

See Also:
AnimationCfg

offset

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.


name

public java.lang.String name

Name of the animation.


first

public int first

First frame.


num

public int num

Number of frames in the animation. A value of less then 0 indicates that all available frames should be used.


looping

public int looping

Number of looping frames.


fps

public int fps

Frames per second.

Constructor Detail

MD3Animation

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!


MD3Animation

protected MD3Animation()

Create an empty animation object. Constructor for use in subclasses.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object