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

Function List

fillColor
 
getColor
 
setColor
 
- Function List inherited from MOAIGrid
clearTileFlags
 
fill
 
getTile
 
getTileFlags
 
setRow
 
setTile
 
setTileFlags
 
streamTilesIn
 
streamTilesOut
 
toggleTileFlags
 

Additional Inherited Members

- Function List inherited from MOAIGridSpace
cellAddrToCoord
 
getCellAddr
 
getCellSize
 
getOffset
 
getSize
 
getTileLoc
 
getTileSize
 
initAxialHexGrid
 
initDiamondGrid
 
initHexGrid
 
initObliqueGrid
 
initRectGrid
 
locToCellAddr
 
locToCoord
 
setRepeat
 
setShape
 
setSize
 
wrapCoord
 

Function Documentation

fillColor

Set all tiles to a single color.


function fillColor ( MOAIFancyGrid self, number value )

Parameters
MOAIFancyGridself
numbervalue
Returns
nil
getColor

Returns the color index of a given tile.


function getColor ( MOAIFancyGrid self, number xTile, number yTile )

Parameters
MOAIFancyGridself
numberxTile
numberyTile
Returns
number color
setColor

Sets the color index of a given tile.


function setColor ( MOAIFancyGrid self, number xTile, number yTile, number value )

Parameters
MOAIFancyGridself
numberxTile
numberyTile
numbervalue
Returns
nil