Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIAnim Class Reference
Inheritance diagram for MOAIAnim:
MOAITimer MOAINode MOAIAction MOAIInstanceEventSource MOAIInstanceEventSource MOAIEventSource MOAIEventSource

List of all members.

Function List

  apply
  getLength
  reserveLinks
  setLink

Function Documentation

Apply the animation at a given time or time step.


function apply ( MOAIAnim self [, number t0 ] )
Parameters:
self ( MOAIAnim )
t0 ( number ) Optional. Default value is 0.
Returns:
nil
Note:
Apply the animation at time t0.

function apply ( MOAIAnim self, number t0, number t1 )
Parameters:
self ( MOAIAnim )
t0 ( number )
t1 ( number )
Returns:
nil
Note:
Apply the animation for the step t0 to t1.

Return the length of the animation.


function getLength ( MOAIAnim self )
Parameters:
self ( MOAIAnim )
Returns:
length ( number )

Reserves a specified number of links for the animation.


function reserveLinks ( MOAIAnim self, number nLinks )
Parameters:
self ( MOAIAnim )
nLinks ( number )
Returns:
nil

Connect a curve to a given node attribute.


function setLink ( MOAIAnim self, number linkID, MOAIAnimCurveBase curve, MOAINode target, number attrID [, boolean asDelta ] )
Parameters:
self ( MOAIAnim )
linkID ( number )
curve ( MOAIAnimCurveBase )
target ( MOAINode ) Target node.
attrID ( number ) Attribute of the target node to be driven by the curve.
asDelta ( boolean ) Optional. 'true' to apply the curve as a delta instead of an absolute. Default value is false.
Returns:
nil