com.model.md5.interfaces
Interface IMD5Controller

All Superinterfaces:
com.jme.util.export.Savable
All Known Implementing Classes:
MD5Controller

public interface IMD5Controller
extends com.jme.util.export.Savable

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

update

void update(float interpolation)
Update the controller.

Parameters:
interpolation - The Float frame interpolation.

addAnimation

void addAnimation(IMD5Animation animation)
Add a new animation to this controller. The new animation set it to be the active animation if currently there is no active animation.

Parameters:
animation - The IMD5Animation to be added.

removeAnimation

void removeAnimation(IMD5Animation animation)
Remove the given animation.

Parameters:
animation - The IMD5Animation to be removed.

fadeTo

void fadeTo(java.lang.String name,
            float duration,
            boolean scale)
Fade from the current active animation to the given animation.

Parameters:
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.

fadeTo

void fadeTo(IMD5Animation animation,
            float duration,
            boolean scale)
Fade from the current active animation to the given animation.

Parameters:
animation - The IMD5Animation to be faded into.
duration - The Float fading duration in seconds.
scale - True if fading duration should scale with controller speed.

setRepeatType

void setRepeatType(int type)
Set the repeat type of the animations on this controller.

Parameters:
type - The Integer repeat type.

setSpeed

void setSpeed(float speed)
Set the speed of this controller.

Parameters:
speed - The Float speed.

setActive

void setActive(boolean active)
Activate or deactivate this controller.

Parameters:
active - True if activate. False deactivate.

getActiveAnimation

IMD5Animation getActiveAnimation()
Retrieve the current active animation.

Returns:
The active IMD5Animation.

getAnimations

java.util.Collection<IMD5Animation> getAnimations()
Retrieve all the maintained animations.

Returns:
The Collection of IMD5Animation.

getRepeatType

int getRepeatType()
Retrieve the current repeat type.

Returns:
The Integer repeat type.