Class Index | File Index

Classes


Class cc.TurnOffTiles


Extends cc.TiledGrid3DAction.

Defined in: CCActionTiledGrid.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.TurnOffTiles action.
Method Summary
Method Attributes Method Name and Description
<static>  
cc.TurnOffTiles.create(gridSize, duration, seed)
 
initWithSeed(gridSize, duration, seed)
initializes the action with a random seed, the grid size and the duration
 
shuffle(array, len)
 
 
 
 
update(time)
Class Detail
cc.TurnOffTiles()
cc.TurnOffTiles action.
Turn off the files in random order
Method Detail
<static> {cc.TurnOffTiles} cc.TurnOffTiles.create(gridSize, duration, seed)
// example
// turnOffTiles without seed
var toff = cc.TurnOffTiles.create(cc.g(x, y), this._duration);

// turnOffTiles with seed
var toff = cc.TurnOffTiles.create(cc.g(x, y), this._duration, 0);
Parameters:
{cc.GridSize} gridSize
{Number} duration
{Number|Null} seed
Returns:
{cc.TurnOffTiles}

{Boolean} initWithSeed(gridSize, duration, seed)
initializes the action with a random seed, the grid size and the duration
Parameters:
{cc.GridSize} gridSize
{Number} duration
{Number} seed
Returns:
{Boolean}

shuffle(array, len)
Parameters:
{Array} array
{Number} len

startWithTarget(target)
Parameters:
{cc.Node} target

turnOffTile(pos)
Parameters:
{cc.GridSize} pos

turnOnTile(pos)
Parameters:
{cc.GridSize} pos

update(time)
Parameters:
{Number} time

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 09 2013 07:51:55 GMT-0800 (PST)