Class cc.ShuffleTiles
- Defined in: CCActionTiledGrid.js
- Extends cc.TiledGrid3DAction
Constructor Attributes | Constructor Name and Description |
---|---|
cc.ShuffleTiles action, Shuffle the tiles in random order
|
Method Summary
Class Detail
cc.ShuffleTiles()
cc.ShuffleTiles action, Shuffle the tiles in random order
Method Detail
-
creates the action with a random seed, the grid size and the duration
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} seed
- Returns:
- {cc.ShuffleTiles}
-
getDelta(pos)get Delta
- Parameters:
- {cc.Size} pos
-
{Boolean} initWithDuration(duration, gridSize, seed)initializes the action with a random seed, the grid size and the duration
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} seed
- Returns:
- {Boolean}
-
placeTile(pos, tile)place Tile
-
shuffle(array, len)shuffle
- Parameters:
- {Array} array
- {Number} len
-
startWithTarget(target)start with target
- Parameters:
- {cc.Node} target