|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnimatableModel
A COLLADA model. This interface should be implemented by the game engine, that wants to use JAGaToo for model loading. It contains mostly methods used for controlling animations.
| Method Summary | |
|---|---|
COLLADAAction |
getAction(java.lang.String id)
Get a specific action |
java.util.HashMap<java.lang.String,COLLADAAction> |
getActions()
|
ColladaProtoypeModel |
getPrototypeModel()
Get the prototype model (Jagatoo side) used by this model (Game engine side). |
boolean |
hasActions()
|
boolean |
isLooping()
|
boolean |
isPlaying()
|
int |
numActions()
|
void |
pause()
Pause the model (stop to play an animation). |
void |
play(COLLADAAction action,
boolean loop)
Begin to play a particular action, whatever the model was doing (we don't mind if it was paused or what..) |
void |
play(java.lang.String actionId,
boolean loop)
Begin to play a particular action, whatever the model was doing (we don't mind if it was paused or what..) |
void |
resume()
Pause the model (stop to play an animation). |
| Method Detail |
|---|
ColladaProtoypeModel getPrototypeModel()
boolean hasActions()
int numActions()
java.util.HashMap<java.lang.String,COLLADAAction> getActions()
COLLADAAction getAction(java.lang.String id)
id - The ID string of this action
void play(COLLADAAction action,
boolean loop)
action - The action to playloop - true if we should loop the animation
void play(java.lang.String actionId,
boolean loop)
actionId - The ID String of the action to playloop - true if we should loop the animationvoid pause()
void resume()
boolean isPlaying()
boolean isLooping()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||