public class Bone
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
alpha |
Frame[] |
key_frame |
java.lang.String |
label |
boolean |
loop |
com.badlogic.gdx.math.Vector2 |
ori |
com.badlogic.gdx.math.Vector2 |
pos |
float |
rotation |
com.badlogic.gdx.math.Vector2 |
size |
com.badlogic.gdx.graphics.g2d.Sprite |
sprite |
java.lang.String |
texture_file |
Constructor and Description |
---|
Bone(Animation animation,
java.lang.String texture_file,
java.lang.String label,
float pos_x,
float pos_y,
float size_x,
float size_y,
float ori_x,
float ori_y,
float rotation,
boolean loop,
float alpha) |
Modifier and Type | Method and Description |
---|---|
boolean |
addKeyFrame(float time,
float pos_x,
float pos_y,
float size_x,
float size_y,
float ori_x,
float ori_y,
float rotation,
float alpha) |
boolean |
addKeyFrame(Frame frame) |
boolean |
deleteKeyFrame(int index) |
Frame |
getActualFrame() |
float |
getActualTime() |
int |
getFrame(float t) |
Frame[] |
getKeyFrame() |
java.lang.String[] |
getKeyFrameDescription() |
float |
getMaxTime() |
void |
resetBoneAnimation() |
void |
setTexture(java.lang.String texture_file) |
void |
setTime(float t) |
void |
update(float time_base) |
void |
updateSprite() |
public com.badlogic.gdx.graphics.g2d.Sprite sprite
public Frame[] key_frame
public java.lang.String texture_file
public java.lang.String label
public boolean loop
public float alpha
public float rotation
public com.badlogic.gdx.math.Vector2 pos
public com.badlogic.gdx.math.Vector2 size
public com.badlogic.gdx.math.Vector2 ori
public Bone(Animation animation, java.lang.String texture_file, java.lang.String label, float pos_x, float pos_y, float size_x, float size_y, float ori_x, float ori_y, float rotation, boolean loop, float alpha)
public void update(float time_base)
public void updateSprite()
public void resetBoneAnimation()
public boolean deleteKeyFrame(int index)
public boolean addKeyFrame(Frame frame)
public boolean addKeyFrame(float time, float pos_x, float pos_y, float size_x, float size_y, float ori_x, float ori_y, float rotation, float alpha)
public void setTime(float t)
public java.lang.String[] getKeyFrameDescription()
public Frame getActualFrame()
public int getFrame(float t)
public Frame[] getKeyFrame()
public float getActualTime()
public float getMaxTime()
public void setTexture(java.lang.String texture_file)