com.md5importer.control
Class BlendController

java.lang.Object
  extended by com.md5importer.control.AbstractController
      extended by com.md5importer.control.BlendController
All Implemented Interfaces:
IBlendController, IController

public class BlendController
extends AbstractController
implements IBlendController

BlendController defines the concrete implementation of a controller unit that provides the functionality to blend the maintained IMD5Node from its current skeleton position to the first frame of a given IMD5Anim.


Field Summary
 
Fields inherited from class com.md5importer.control.AbstractController
active
 
Constructor Summary
BlendController(IMD5Node node, IMD5NodeController controller)
          Constructor of BlendController.
 
Method Summary
 void blend(IMD5Anim anim, IMD5AnimController animController, float duration)
          Blend the maintained node from its current skeleton position to the first frame of the given animation in given duration.
 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

BlendController

public BlendController(IMD5Node node,
                       IMD5NodeController controller)
Constructor of BlendController.

Parameters:
node - The IMD5Node to blend.
controller - The IMD5NodeController for the node.
Method Detail

update

public void update(float interpolation)
Description copied from interface: IController
Update the controller.

Specified by:
update in interface IController
Parameters:
interpolation - The Float time interpolation.

blend

public void blend(IMD5Anim anim,
                  IMD5AnimController animController,
                  float duration)
Description copied from interface: IBlendController
Blend the maintained node from its current skeleton position to the first frame of the given animation in given duration.

Specified by:
blend in interface IBlendController
Parameters:
anim - The IMD5Anim to blend to.
animController - The IMD5AnimController of the target animation.
duration - The Float blending duration.