Skip to main content

CCTurnOffTiles

CCTurnOffTiles

Cocos2D

@brief CCTurnOffTiles action. Turn off the files in random order

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

Implements: Cocos2D.ICCCopyable

Constructors

CCTurnOffTiles()

CCTurnOffTiles()()

CCTurnOffTiles(float, CCGridSize)

CCTurnOffTiles(float, CCGridSize)(System.Single duration, Cocos2D.CCGridSize gridSize)

creates the action with the grid size and the duration

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

CCTurnOffTiles(float, CCGridSize, int)

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

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

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

Fields

m_nSeed(System.Int32)
m_nTilesCount(System.Int32)
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

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

Shuffle(int[], int)

Shuffle(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

TurnOffTile(CCGridSize)

TurnOffTile(CCGridSize)(Cocos2D.CCGridSize pos)
Parameters:
pos (Cocos2D.CCGridSize)

TurnOnTile(CCGridSize)

TurnOnTile(CCGridSize)(Cocos2D.CCGridSize pos)
Parameters:
pos (Cocos2D.CCGridSize)

Update(float)

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