public CCParticleSystem()
 {
     this.modeA.gravity            = new CCPoint(0f, 0f);
     this.modeA.speed              = 0f;
     this.modeA.speedVar           = 0f;
     this.modeA.tangentialAccel    = 0f;
     this.modeA.tangentialAccelVar = 0f;
     this.modeA.radialAccel        = 0f;
     this.modeA.radialAccelVar     = 0f;
     this.modeB                    = new sModeB();
     this.modeB.startRadius        = 0f;
     this.modeB.startRadiusVar     = 0f;
     this.modeB.endRadius          = 0f;
     this.modeB.endRadiusVar       = 0f;
     this.modeB.rotatePerSecond    = 0f;
     this.modeB.rotatePerSecondVar = 0f;
     this.m_tBlendFunc             = new ccBlendFunc();
     this.m_tBlendFunc.src         = 0;
     this.m_tBlendFunc.dst         = 0x303;
 }
 public CCParticleSystem()
 {
     m_sPlistFile = "";
     m_fElapsed = 0;
     m_pParticles = null;
     m_fEmitCounter = 0;
     m_uParticleIdx = 0;
     #if CC_ENABLE_PROFILERS
     m_pProfilingTimer = NULL;
     #endif
     m_bIsActive = true;
     m_uParticleCount = 0;
     m_fDuration = 0;
     m_tSourcePosition = new CCPoint(0,0);
     m_tPosVar = new CCPoint(0,0);
     m_fLife = 0;
     m_fLifeVar = 0;
     m_fAngle = 0;
     m_fAngleVar = 0;
     m_fStartSize = 0;
     m_fStartSizeVar = 0;
     m_fEndSize = 0;
     m_fEndSizeVar = 0;
     m_fStartSpin = 0;
     m_fStartSpinVar = 0;
     m_fEndSpin = 0;
     m_fEndSpinVar = 0;
     m_fEmissionRate = 0;
     m_uTotalParticles = 0;
     m_pTexture = null;
     m_bIsBlendAdditive = false;
     m_ePositionType = eParticlePositionType.kCCPositionTypeFree;
     m_bIsAutoRemoveOnFinish = false;
     m_nEmitterMode = (int)eParticleMode.kCCParticleModeGravity;
     modeA = new sModeA();
     modeA.gravity = new CCPoint(0,0);
     modeA.speed = 0;
     modeA.speedVar = 0;
     modeA.tangentialAccel = 0;
     modeA.tangentialAccelVar = 0;
     modeA.radialAccel = 0;
     modeA.radialAccelVar = 0;
     modeB = new sModeB();
     modeB.startRadius = 0;
     modeB.startRadiusVar = 0;
     modeB.endRadius = 0;
     modeB.endRadiusVar = 0;
     modeB.rotatePerSecond = 0;
     modeB.rotatePerSecondVar = 0;
     m_tBlendFunc = new ccBlendFunc();
     m_tBlendFunc.src = 0;// CC_BLEND_SRC;
     m_tBlendFunc.dst = 0x0303;// CC_BLEND_DST;
 }
 public CCParticle()
 {
     pos = new CCPoint();
     startPos = new CCPoint();
     color = new ccColor4F();
     deltaColor = new ccColor4F();
     modeA = new sModeA();
     modeB = new sModeB();
 }