Class cc.ShuffleTiles
- Defined in: CCActionTiledGrid.js
- Extends cc.TiledGrid3DAction
Constructor Attributes | Constructor Name and Description |
---|---|
cc.ShuffleTiles(duration, gridSize, seed)
cc.ShuffleTiles action, Shuffle the tiles in random order.
|
Method Summary
Class Detail
cc.ShuffleTiles(duration, gridSize, seed)
cc.ShuffleTiles action, Shuffle the tiles in random order.
Reference the test cases (Effects Test)
Reference the test cases (Effects Test)
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} seed
Field Detail
Please use cc.shuffleTiles instead.
Creates the action with a random seed, the grid size and the duration.
Reference the test cases (Effects Test)
Creates the action with a random seed, the grid size and the duration.
Reference the test cases (Effects Test)
- Deprecated:
-
since v3.0
Please use cc.shuffleTiles instead.
Method Detail
-
ctor(duration, gridSize, seed)Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
Creates the action with a random seed, the grid size and the duration.- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} seed
-
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
-
update(dt)Called once per frame. Time is the number of seconds of a frame interval.
- Parameters:
- {Number} dt