Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIAnimCurveBase Class Reference
Inheritance diagram for MOAIAnimCurveBase:
MOAINode MOAIInstanceEventSource MOAIEventSource MOAIAnimCurve MOAIAnimCurveQuat MOAIAnimCurveVec

List of all members.

Function List

  getLength
  reserveKeys
  setWrapMode

Function Documentation

Return the largest key frame time value in the curve.


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

Reserve key frames.


function reserveKeys ( MOAIAnimCurveBase self, number nKeys )
Parameters:
self ( MOAIAnimCurveBase )
nKeys ( number )
Returns:
nil

Sets the wrap mode for values above 1.0 and below 0.0. CLAMP sets all values above and below 1.0 and 0.0 to values at 1.0 and 0.0 respectively.


function setWrapMode ( MOAIAnimCurveBase self [, number mode ] )
Parameters:
self ( MOAIAnimCurveBase )
mode ( number ) Optional. One of MOAIAnimCurveBase.CLAMP, MOAIAnimCurveBase.WRAP, MOAIAnimCurveBase.MIRROR, MOAIAnimCurveBase.APPEND. Default value is MOAIAnimCurveBase.CLAMP.
Returns:
nil