Class cc.ShuffleTiles

Class Summary
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

  • <static> {cc.ShuffleTiles} cc.ShuffleTiles.create(duration, gridSize, seed)
    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
    Parameters:
    {cc.Point} pos
    {cc.Tile} tile
  • shuffle(array, len)
    shuffle
    Parameters:
    {Array} array
    {Number} len
  • startWithTarget(target)
    start with target
    Parameters:
    {cc.Node} target