CCParticleSystem
CCParticleSystem
Cocos2DInheritance: System.Object → Cocos2D.CCNode
Implements: Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCTextureProtocol, Cocos2D.ICCBlendProtocol
Constructors
CCParticleSystem()
CCParticleSystem()()
CCParticleSystem(string)
CCParticleSystem(string)(System.String plistFile)
Parameters:
plistFile
(System.String)Fields
kCCParticleDurationInfinity(System.Int32)
kCCParticleStartRadiusEqualToEndRadius(System.Int32)
kCCParticleStartSizeEqualToEndSize(System.Int32)
kParticleDurationInfinity(System.Int32)
kParticleStartSizeEqualToEndSize(System.Int32)
m_bIsActive(System.Boolean)
m_bIsAutoRemoveOnFinish(System.Boolean)
m_bIsBlendAdditive(System.Boolean)
m_bOpacityModifyRGB(System.Boolean)
m_bTransformSystemDirty(System.Boolean)
m_ePositionType(Cocos2D.CCPositionType)
m_fAngle(System.Single)
m_fAngleVar(System.Single)
m_fDuration(System.Single)
m_fElapsed(System.Single)
m_fEmissionRate(System.Single)
m_fEmitCounter(System.Single)
m_fEndSize(System.Single)
m_fEndSizeVar(System.Single)
m_fEndSpin(System.Single)
m_fEndSpinVar(System.Single)
m_fLife(System.Single)
m_fLifeVar(System.Single)
m_fStartSize(System.Single)
m_fStartSizeVar(System.Single)
m_fStartSpin(System.Single)
m_fStartSpinVar(System.Single)
m_nEmitterMode(Cocos2D.CCEmitterMode)
m_pBatchNode(Cocos2D.CCParticleBatchNode)
m_pParticles(Cocos2D.CCParticleSystem.CCParticle[])
m_pTexture(Cocos2D.CCTexture2D)
m_tBlendFunc(Cocos2D.CCBlendFunc)
m_tEndColor(Cocos2D.CCColor4F)
m_tEndColorVar(Cocos2D.CCColor4F)
m_tPosVar(Cocos2D.CCPoint)
m_tSourcePosition(Cocos2D.CCPoint)
m_tStartColor(Cocos2D.CCColor4F)
m_tStartColorVar(Cocos2D.CCColor4F)
m_uAllocatedParticles(System.Int32)
m_uAtlasIndex(System.Int32)
m_uParticleCount(System.Int32)
m_uTotalParticles(System.Int32)
modeA(Cocos2D.CCParticleSystem.ModeA)
modeB(Cocos2D.CCParticleSystem.ModeB)
Properties
Angle(System.Single)
AngleVar(System.Single)
AtlasIndex(System.Int32)
AutoRemoveOnFinish(System.Boolean)
BatchNode(Cocos2D.CCParticleBatchNode)
BlendAdditive(System.Boolean)
BlendFunc(Cocos2D.CCBlendFunc)
gets or sets the source blending function for the texture
Duration(System.Single)
EmissionRate(System.Single)
EmitterMode(Cocos2D.CCEmitterMode)
EndColor(Cocos2D.CCColor4F)
EndColorVar(Cocos2D.CCColor4F)
EndRadius(System.Single)
EndRadiusVar(System.Single)
EndSize(System.Single)
EndSizeVar(System.Single)
EndSpin(System.Single)
EndSpinVar(System.Single)
Gravity(Cocos2D.CCPoint)
IsActive(System.Boolean)
Life(System.Single)
LifeVar(System.Single)
OpacityModifyRGB(System.Boolean)
ParticleCount(System.Int32)
PosVar(Cocos2D.CCPoint)
PositionType(Cocos2D.CCPositionType)
RadialAccel(System.Single)
RadialAccelVar(System.Single)
RotatePerSecond(System.Single)
RotatePerSecondVar(System.Single)
Rotation(System.Single)
2D rotation of the node relative to the 0,1 vector in a clock-wise orientation.
RotationIsDir(System.Boolean)
Scale(System.Single)
The general scale that applies to both X and Y directions.
ScaleX(System.Single)
Scale of the node in the X direction (left to right)
ScaleY(System.Single)
Scale of the node in the Y direction (top to bottom)
SourcePosition(Cocos2D.CCPoint)
Speed(System.Single)
SpeedVar(System.Single)
StartColor(Cocos2D.CCColor4F)
StartColorVar(Cocos2D.CCColor4F)
StartRadius(System.Single)
StartRadiusVar(System.Single)
StartSize(System.Single)
StartSizeVar(System.Single)
StartSpin(System.Single)
StartSpinVar(System.Single)
TangentialAccel(System.Single)
TangentialAccelVar(System.Single)
Texture(Cocos2D.CCTexture2D)
gets or sets a new texture. it will be retained
TotalParticles(System.Int32)
isFull(System.Boolean)
Methods
Init()
System.Boolean Init()()
Returns:
System.Boolean
Example
InitWithDictionary(PlistDictionary)
System.Boolean InitWithDictionary(PlistDictionary)(Cocos2D.PlistDictionary dictionary)
Parameters:
dictionary
(Cocos2D.PlistDictionary)Returns:
System.Boolean
InitWithFile(string)
System.Boolean InitWithFile(string)(System.String plistFile)
Parameters:
plistFile
(System.String)Returns:
System.Boolean
InitWithTotalParticles(int)
System.Boolean InitWithTotalParticles(int)(System.Int32 numberOfParticles)
Parameters:
numberOfParticles
(System.Int32)Returns:
System.Boolean
OnEnter()
OnEnter()()
Example
OnExit()
OnExit()()
Example
PostStep()
PostStep()()
ResetSystem()
ResetSystem()()
StopSystem()
StopSystem()()
Update(float)
Update(float)(System.Single dt)
Parameters:
dt
(System.Single)Example
UpdateQuadsWithParticles()
UpdateQuadsWithParticles()()
UpdateWithNoTime()
UpdateWithNoTime()()