Skip to main content

CCShuffleTiles

CCShuffleTiles

Cocos2D

@brief CCShuffleTiles action Shuffle the tiles in random order

Inheritance: System.Object → Cocos2D.CCAction → Cocos2D.CCFiniteTimeAction → Cocos2D.CCActionInterval → Cocos2D.CCGridAction → Cocos2D.CCTiledGrid3DAction

Implements: Cocos2D.ICCCopyable

Constructors

CCShuffleTiles()

CCShuffleTiles()()

CCShuffleTiles(CCGridSize, float, int)

CCShuffleTiles(CCGridSize, float, int)(Cocos2D.CCGridSize gridSize, System.Single duration, System.Int32 seed)

creates the action with a random seed, the grid size and the duration

Parameters:
gridSize (Cocos2D.CCGridSize)
duration (System.Single)
seed (System.Int32)
Example

Fields

m_nSeed(System.Int32)
m_nTilesCount(System.Int32)
m_pTiles(Cocos2D.CCTile[])
m_pTilesOrder(System.Int32[])

Methods

Copy(ICCCopyable)

System.Object Copy(ICCCopyable)(Cocos2D.ICCCopyable pZone)

Copy/Duplicatae protocol for making a self copy of this object instance. If null is given as the parameter then selfie of this instance is returned. Otherwise, the state of this instance is copied to the given target.

Parameters:
pZone (Cocos2D.ICCCopyable)
Returns:
System.Object
Example

GetDelta(CCGridSize)

Cocos2D.CCGridSize GetDelta(CCGridSize)(Cocos2D.CCGridSize pos)
Parameters:
pos (Cocos2D.CCGridSize)
Returns:
Cocos2D.CCGridSize

InitWithDuration(float, CCGridSize, int)

System.Boolean InitWithDuration(float, CCGridSize, int)(System.Single duration, Cocos2D.CCGridSize gridSize, System.Int32 seed)

initializes the action with a random seed, the grid size and the duration

Parameters:
duration (System.Single)
gridSize (Cocos2D.CCGridSize)
seed (System.Int32)
Returns:
System.Boolean
Example

PlaceTile(CCGridSize, CCTile)

PlaceTile(CCGridSize, CCTile)(Cocos2D.CCGridSize pos, Cocos2D.CCTile t)
Parameters:
pos (Cocos2D.CCGridSize)
t (Cocos2D.CCTile)

Shuffle(ref int[], int)

Shuffle(ref int[], int)(System.Int32[] pArray, System.Int32 nLen)
Parameters:
pArray (System.Int32[])
nLen (System.Int32)

StartWithTarget(CCNode)

StartWithTarget(CCNode)(Cocos2D.CCNode target)
Parameters:
target (Cocos2D.CCNode)
Example

Update(float)

Update(float)(System.Single time)
Parameters:
time (System.Single)
Example