Moai SDK  2.0
MOAIAnim Class Reference
+ Inheritance diagram for MOAIAnim:

Function List

apply
 
getLength
 
reserveLinks
 
setLink
 
- Function List inherited from MOAINode
clearAttrLink
 
clearNodeLink
 
forceUpdate
 
getAttr
 
getAttrLink
 
getNodeState
 
moveAttr
 
scheduleUpdate
 
seekAttr
 
setAttrLink
 
setAttr
 
setNodeLink
 
- Function List inherited from MOAIInstanceEventSource
getListener
 
setListener
 
- Function List inherited from MOAIAction
addChild
 
attach
 
clear
 
defer
 
detach
 
getChildren
 
hasChildren
 
isActive
 
isBusy
 
isDone
 
isPaused
 
pause
 
setAutoStop
 
start
 
stop
 
throttle
 
update
 

Additional Inherited Members

- Function List inherited from MOAITimer
getSpeed
 
getTime
 
getTimesExecuted
 
setCurve
 
setMode
 
setSpan
 
setSpeed
 
setTime
 
toggleDirection
 

Function Documentation

apply

Apply the animation at a given time or time step.


function apply ( MOAIAnim self [, number t0 ] )

Parameters
MOAIAnimself
numbert0 Optional. Default value is 0.
Returns
nil
Note
Apply the animation at time t0.

function apply ( MOAIAnim self, number t0, number t1 )

Parameters
MOAIAnimself
numbert0
numbert1
Returns
nil
Note
Apply the animation for the step t0 to t1.
getLength

Return the length of the animation.


function getLength ( MOAIAnim self )

Parameters
MOAIAnimself
Returns
number length
reserveLinks

Reserves a specified number of links for the animation.


function reserveLinks ( MOAIAnim self, number nLinks )

Parameters
MOAIAnimself
numbernLinks
Returns
nil
setLink

Connect a curve to a given node attribute.


function setLink ( MOAIAnim self, number linkID, MOAIAnimCurveBase curve, MOAINode target, number attrID [, boolean asDelta ] )

Parameters
MOAIAnimself
numberlinkID
MOAIAnimCurveBasecurve
MOAINodetarget Target node.
numberattrID Attribute of the target node to be driven by the curve.
booleanasDelta Optional. 'true' to apply the curve as a delta instead of an absolute. Default value is false.
Returns
nil