public class Skeleton extends java.lang.Object implements IUpdateable
Constructor and Description |
---|
Skeleton() |
Modifier and Type | Method and Description |
---|---|
void |
addAnimation(Animation animation)
Add a new animation
|
void |
addBone(Bone bone)
Add a new bone
|
void |
addBone(Bone bone,
Bone parent)
Add a bone and assign a parent for it
|
Animation |
getAnimation(java.lang.String animationName)
Get an existing animation
|
Bone |
getBone(int index) |
float[] |
getBoneData() |
int |
getCountBones() |
boolean |
isFinished() |
void |
onUpdate(float time) |
public void addAnimation(Animation animation)
animation
- public Animation getAnimation(java.lang.String animationName)
animationName
- public void addBone(Bone bone)
bone
- public void addBone(Bone bone, Bone parent)
bone
- parent
- public Bone getBone(int index)
public void onUpdate(float time)
onUpdate
in interface IUpdateable
public float[] getBoneData()
public boolean isFinished()
isFinished
in interface IUpdateable
public int getCountBones()