|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IMD5Controller
IMD5Controller defines the interface of a controller
unit that is responsible for controlling a single instance of
IMD5Node with its IMD5Animation.
| Method Summary | |
|---|---|
void |
addAnimation(IMD5Animation animation)
Add a new animation to this controller. |
void |
fadeTo(IMD5Animation animation,
float duration,
boolean scale)
Fade from the current active animation to the given animation. |
void |
fadeTo(java.lang.String name,
float duration,
boolean scale)
Fade from the current active animation to the given animation. |
IMD5Animation |
getActiveAnimation()
Retrieve the current active animation. |
java.util.Collection<IMD5Animation> |
getAnimations()
Retrieve all the maintained animations. |
int |
getRepeatType()
Retrieve the current repeat type. |
void |
removeAnimation(IMD5Animation animation)
Remove the given animation. |
void |
setActive(boolean active)
Activate or deactivate this controller. |
void |
setRepeatType(int type)
Set the repeat type of the animations on this controller. |
void |
setSpeed(float speed)
Set the speed of this controller. |
void |
update(float interpolation)
Update the controller. |
| Methods inherited from interface com.jme.util.export.Savable |
|---|
getClassTag, read, write |
| Method Detail |
|---|
void update(float interpolation)
interpolation - The Float frame interpolation.void addAnimation(IMD5Animation animation)
animation - The IMD5Animation to be added.void removeAnimation(IMD5Animation animation)
animation - The IMD5Animation to be removed.
void fadeTo(java.lang.String name,
float duration,
boolean scale)
name - The name of theIMD5Animation to be faded into.duration - The Float fading duration in seconds.scale - True if fading duration should scale with controller speed.
void fadeTo(IMD5Animation animation,
float duration,
boolean scale)
animation - The IMD5Animation to be faded into.duration - The Float fading duration in seconds.scale - True if fading duration should scale with controller speed.void setRepeatType(int type)
type - The Integer repeat type.void setSpeed(float speed)
speed - The Float speed.void setActive(boolean active)
active - True if activate. False deactivate.IMD5Animation getActiveAnimation()
IMD5Animation.java.util.Collection<IMD5Animation> getAnimations()
Collection of IMD5Animation.int getRepeatType()
Integer repeat type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||