Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIAction Class Reference
Inheritance diagram for MOAIAction:
MOAIInstanceEventSource MOAIEventSource MOAIBox2DWorld MOAICameraFitter2D MOAICoroutine MOAICpSpace MOAIParticleEmitter MOAIParticleSystem MOAITextBox MOAITimer

List of all members.

Function List

  addChild
  attach
  clear
  detach
  isActive
  isBusy
  isDone
  pause
  start
  stop
  throttle

Function Documentation

Attaches a child action for updating.


function addChild ( MOAIAction self, MOAIAction child )
Parameters:
self ( MOAIAction )
child ( MOAIAction )
Returns:
self ( MOAIAction )

Attaches a child to a parent action. The child will receive updates from the parent only if the parent is in the action tree.


function attach ( MOAIAction self [, MOAIAction parent ] )
Parameters:
self ( MOAIAction )
parent ( MOAIAction ) Optional. Default value is nil; same effect as calling detach ().
Returns:
self ( MOAIAction )

Removes all child actions.


function clear ( MOAIAction self )
Parameters:
self ( MOAIAction )
Returns:
self ( MOAIAction )

Detaches an action from its parent (if any) thereby removing it from the action tree. Same effect as calling stop ().


function detach ( MOAIAction self )
Parameters:
self ( MOAIAction )
Returns:
self ( MOAIAction )

Checks to see if an action is currently in the action tree.


function isActive ( MOAIAction self )
Parameters:
self ( MOAIAction )
Returns:
isActive ( boolean )

Checks to see if an action is currently busy. An action is 'busy' only if it is 'active' and not 'done.'.


function isBusy ( MOAIAction self )
Parameters:
self ( MOAIAction )
Returns:
isBusy ( boolean )

Checks to see if an action is 'done.' Definition of 'done' is up to individual action implementations.


function isDone ( MOAIAction self )
Parameters:
self ( MOAIAction )
Returns:
isDone ( boolean )

Leaves the action in the action tree but prevents it from receiving updates. Call pause ( false ) or start () to unpause.


function pause ( MOAIAction self [, boolean pause ] )
Parameters:
self ( MOAIAction )
pause ( boolean ) Optional. Default value is 'true.'
Returns:
nil

Adds the action to a parent action or the root of the action tree.


function start ( MOAIAction self [, MOAIAction parent ] )
Parameters:
self ( MOAIAction )
parent ( MOAIAction ) Optional. Default value is MOAIActionMgr.getRoot ()
Returns:
self ( MOAIAction )

Removed the action from its parent action; action will stop being updated.


function stop ( MOAIAction self )
Parameters:
self ( MOAIAction )
Returns:
self ( MOAIAction )

Sets the actions throttle. Throttle is a scalar on time. Is is passed to the action's children.


function throttle ( MOAIAction self [, number throttle ] )
Parameters:
self ( MOAIAction )
throttle ( number ) Optional. Default value is 1.
Returns:
self ( MOAIAction )