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

List of all members.

Function List

  reserve
  setBase
  setRemap

Function Documentation

The total number of indices to remap. Index remaps will be initialized from 1 to N.


function reserve ( MOAIDeckRemapper self [, number size ] )
Parameters:
self ( MOAIDeckRemapper )
size ( number ) Optional. Default value is 0.
Returns:
nil

Set the base offset for the range of indices to remap. Used when remapping only a portion of the indices in the original deck.


function setBase ( MOAIDeckRemapper self [, number base ] )
Parameters:
self ( MOAIDeckRemapper )
base ( number ) Optional. Default value is 0.
Returns:
nil

Remap a single index to a new value.


function setRemap ( MOAIDeckRemapper self, number index [, number remap ] )
Parameters:
self ( MOAIDeckRemapper )
index ( number ) Index to remap.
remap ( number ) Optional. New value for index. Default value is index (i.e. remove the remap).
Returns:
nil