|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.md5importer.control.AbstractController
com.md5importer.control.MD5AnimController
public class MD5AnimController
MD5AnimController defines the concrete implementation
of a logic controller unit that is responsible for updating the
IMD5Anim instance given at construction time.
| Field Summary |
|---|
| Fields inherited from class com.md5importer.control.AbstractController |
|---|
active |
| Constructor Summary | |
|---|---|
MD5AnimController(IMD5Anim anim)
Constructor of MD5AnimController. |
|
| Method Summary | |
|---|---|
IMD5Anim |
getAnim()
Retrieve the animation this controller controls. |
ERepeatType |
getRepeatType()
Retrieve the current repeat type. |
boolean |
isBackward()
Check if this animation is being played backward. |
boolean |
isCyleComplete()
Check if one cycle of this animation is complete, but the new one has not yet started. |
void |
reset()
Reset the controller by resetting the accumulated time to zero and resetting the animation to the first frame. |
void |
setRepeatType(ERepeatType type)
Set the repeat type of this controller. |
void |
setSpeed(float speed)
Set the speed of this controller. |
void |
update(float interpolation)
Update the controller. |
| Methods inherited from class com.md5importer.control.AbstractController |
|---|
isActive, setActive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.md5importer.interfaces.control.IController |
|---|
isActive, setActive |
| Constructor Detail |
|---|
public MD5AnimController(IMD5Anim anim)
MD5AnimController.
anim - The IMD5Anim instance.| Method Detail |
|---|
public void update(float interpolation)
IController
update in interface IControllerinterpolation - The Float time interpolation.public void setRepeatType(ERepeatType type)
IMD5AnimController
setRepeatType in interface IMD5AnimControllertype - The ERepeatType value.public void setSpeed(float speed)
IMD5AnimController
setSpeed in interface IMD5AnimControllerspeed - The Float speed.public ERepeatType getRepeatType()
IMD5AnimController
getRepeatType in interface IMD5AnimControllerERepeatType enumeration.public IMD5Anim getAnim()
IMD5AnimController
getAnim in interface IMD5AnimControllerIMD5Anim.public void reset()
IMD5AnimController
reset in interface IMD5AnimControllerpublic boolean isBackward()
IMD5AnimController
isBackward in interface IMD5AnimControllerpublic boolean isCyleComplete()
IMD5AnimController
isCyleComplete in interface IMD5AnimController
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||