cocos2d-x  2.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCParticleSystem Class Reference

Particle System base class. More...

#include <CCParticleSystem.h>

Inheritance diagram for CCParticleSystem:
CCNode CCTextureProtocol CCObject CCBlendProtocol CCCopying CCParticleSystemQuad CCParticleExplosion CCParticleFire CCParticleFireworks CCParticleFlower CCParticleGalaxy CCParticleMeteor CCParticleRain CCParticleSmoke CCParticleSnow CCParticleSpiral CCParticleSun

Public Member Functions

virtual CCParticleBatchNodegetBatchNode (void)
 getBatchNode More...
 
virtual void setBatchNode (CCParticleBatchNode *var)
 setBatchNode More...
 
virtual unsigned int getParticleCount (void)
 getParticleCount More...
 
local getParticleCount ()
 getParticleCount More...
 
virtual float getDuration (void)
 getDuration More...
 
var getDuration ()
 getDuration More...
 
local getDuration ()
 getDuration More...
 
virtual void setDuration (float var)
 setDuration More...
 
local setDuration ( local var)
 setDuration More...
 
virtual const CCPointgetSourcePosition (void)
 getSourcePosition More...
 
local getSourcePosition ()
 getSourcePosition More...
 
virtual void setSourcePosition (const CCPoint &var)
 setSourcePosition More...
 
var setSourcePosition ( var var)
 setSourcePosition More...
 
local setSourcePosition ( local var)
 setSourcePosition More...
 
virtual const CCPointgetPosVar (void)
 getPosVar More...
 
local getPosVar ()
 getPosVar More...
 
virtual void setPosVar (const CCPoint &var)
 setPosVar More...
 
virtual float getLife (void)
 getLife More...
 
virtual void setLife (float var)
 setLife More...
 
var setLife ( var var)
 setLife More...
 
local setLife ( local var)
 setLife More...
 
virtual float getLifeVar (void)
 getLifeVar More...
 
virtual void setLifeVar (float var)
 setLifeVar More...
 
local setLifeVar ( local var)
 setLifeVar More...
 
virtual float getAngle (void)
 getAngle More...
 
virtual void setAngle (float var)
 setAngle More...
 
local setAngle ( local var)
 setAngle More...
 
virtual float getAngleVar (void)
 getAngleVar More...
 
virtual void setAngleVar (float var)
 setAngleVar More...
 
local setAngleVar ( local var)
 setAngleVar More...
 
virtual const CCPointgetGravity ()
local getGravity ()
virtual void setGravity (const CCPoint &g)
var setGravity ( var g)
local setGravity ( local g)
virtual float getSpeed ()
virtual void setSpeed (float speed)
virtual float getSpeedVar ()
virtual void setSpeedVar (float speed)
var setSpeedVar ( var speed)
local setSpeedVar ( local speed)
virtual float getTangentialAccel ()
virtual void setTangentialAccel (float t)
var setTangentialAccel ( var t)
local setTangentialAccel ( local t)
virtual float getTangentialAccelVar ()
virtual void setTangentialAccelVar (float t)
local setTangentialAccelVar ( local t)
virtual float getRadialAccel ()
virtual void setRadialAccel (float t)
local setRadialAccel ( local t)
virtual float getRadialAccelVar ()
virtual void setRadialAccelVar (float t)
var setRadialAccelVar ( var t)
local setRadialAccelVar ( local t)
virtual bool getRotationIsDir ()
virtual void setRotationIsDir (bool t)
var setRotationIsDir ( var t)
local setRotationIsDir ( local t)
virtual float getStartRadius ()
virtual void setStartRadius (float startRadius)
var setStartRadius ( var startRadius)
local setStartRadius ( local startRadius)
virtual float getStartRadiusVar ()
virtual void setStartRadiusVar (float startRadiusVar)
var setStartRadiusVar ( var startRadiusVar)
local setStartRadiusVar ( local startRadiusVar)
virtual float getEndRadius ()
virtual void setEndRadius (float endRadius)
var setEndRadius ( var endRadius)
local setEndRadius ( local endRadius)
virtual float getEndRadiusVar ()
virtual void setEndRadiusVar (float endRadiusVar)
var setEndRadiusVar ( var endRadiusVar)
local setEndRadiusVar ( local endRadiusVar)
virtual float getRotatePerSecond ()
virtual void setRotatePerSecond (float degrees)
local setRotatePerSecond ( local degrees)
virtual float getRotatePerSecondVar ()
virtual void setRotatePerSecondVar (float degrees)
var setRotatePerSecondVar ( var degrees)
local setRotatePerSecondVar ( local degrees)
virtual void setScale (float s)
 Changes both X and Y scale factor of the node. More...
 
virtual void setRotation (float newRotation)
 Sets the rotation (angle) of the node in degrees. More...
 
virtual void setScaleX (float newScaleX)
 Changes the scale factor on X axis of this node. More...
 
local setScaleX ( local newScaleX)
 Changes the scale factor on X axis of this node. More...
 
virtual void setScaleY (float newScaleY)
 Changes the scale factor on Y axis of this node. More...
 
virtual bool isActive ()
virtual bool isBlendAdditive ()
virtual void setBlendAdditive (bool value)
local setBlendAdditive ( local value)
virtual float getStartSize (void)
 getStartSize More...
 
virtual void setStartSize (float var)
 setStartSize More...
 
var setStartSize ( var var)
 setStartSize More...
 
local setStartSize ( local var)
 setStartSize More...
 
virtual float getStartSizeVar (void)
 getStartSizeVar More...
 
virtual void setStartSizeVar (float var)
 setStartSizeVar More...
 
local setStartSizeVar ( local var)
 setStartSizeVar More...
 
virtual float getEndSize (void)
 getEndSize More...
 
var getEndSize ()
 getEndSize More...
 
local getEndSize ()
 getEndSize More...
 
virtual void setEndSize (float var)
 setEndSize More...
 
local setEndSize ( local var)
 setEndSize More...
 
virtual float getEndSizeVar (void)
 getEndSizeVar More...
 
virtual void setEndSizeVar (float var)
 setEndSizeVar More...
 
local setEndSizeVar ( local var)
 setEndSizeVar More...
 
virtual const ccColor4FgetStartColor (void)
 getStartColor More...
 
virtual void setStartColor (const ccColor4F &var)
 setStartColor More...
 
virtual const ccColor4FgetStartColorVar (void)
 getStartColorVar More...
 
local getStartColorVar ()
 getStartColorVar More...
 
virtual void setStartColorVar (const ccColor4F &var)
 setStartColorVar More...
 
local setStartColorVar ( local var)
 setStartColorVar More...
 
virtual const ccColor4FgetEndColor (void)
 getEndColor More...
 
local getEndColor ()
 getEndColor More...
 
virtual void setEndColor (const ccColor4F &var)
 setEndColor More...
 
virtual const ccColor4FgetEndColorVar (void)
 getEndColorVar More...
 
var getEndColorVar ()
 getEndColorVar More...
 
local getEndColorVar ()
 getEndColorVar More...
 
virtual void setEndColorVar (const ccColor4F &var)
 setEndColorVar More...
 
virtual float getStartSpin (void)
 getStartSpin More...
 
virtual void setStartSpin (float var)
 setStartSpin More...
 
local setStartSpin ( local var)
 setStartSpin More...
 
virtual float getStartSpinVar (void)
 getStartSpinVar More...
 
virtual void setStartSpinVar (float var)
 setStartSpinVar More...
 
local setStartSpinVar ( local var)
 setStartSpinVar More...
 
virtual float getEndSpin (void)
 getEndSpin More...
 
var getEndSpin ()
 getEndSpin More...
 
local getEndSpin ()
 getEndSpin More...
 
virtual void setEndSpin (float var)
 setEndSpin More...
 
local setEndSpin ( local var)
 setEndSpin More...
 
virtual float getEndSpinVar (void)
 getEndSpinVar More...
 
virtual void setEndSpinVar (float var)
 setEndSpinVar More...
 
local setEndSpinVar ( local var)
 setEndSpinVar More...
 
virtual float getEmissionRate (void)
 getEmissionRate More...
 
local getEmissionRate ()
 getEmissionRate More...
 
virtual void setEmissionRate (float var)
 setEmissionRate More...
 
local setEmissionRate ( local var)
 setEmissionRate More...
 
virtual unsigned int getTotalParticles (void)
 getTotalParticles More...
 
var getTotalParticles ()
 getTotalParticles More...
 
local getTotalParticles ()
 getTotalParticles More...
 
virtual void setTotalParticles (unsigned int var)
 setTotalParticles More...
 
var setTotalParticles ( var var)
 setTotalParticles More...
 
local setTotalParticles ( local var)
 setTotalParticles More...
 
virtual CCTexture2DgetTexture (void)
 getTexture More...
 
virtual void setTexture (CCTexture2D *var)
 setTexture More...
 
virtual ccBlendFunc getBlendFunc (void)
 getBlendFunc More...
 
virtual void setBlendFunc (ccBlendFunc var)
 setBlendFunc More...
 
virtual bool getOpacityModifyRGB (void)
 getOpacityModifyRGB More...
 
virtual void setOpacityModifyRGB (bool var)
 setOpacityModifyRGB More...
 
var setOpacityModifyRGB ( var var)
 setOpacityModifyRGB More...
 
local setOpacityModifyRGB ( local var)
 setOpacityModifyRGB More...
 
virtual tCCPositionType getPositionType (void)
 getPositionType More...
 
local getPositionType ()
 getPositionType More...
 
virtual void setPositionType (tCCPositionType var)
 setPositionType More...
 
virtual bool isAutoRemoveOnFinish ()
virtual void setAutoRemoveOnFinish (bool var)
var setAutoRemoveOnFinish ( var var)
local setAutoRemoveOnFinish ( local var)
virtual int getEmitterMode (void)
 getEmitterMode More...
 
virtual void setEmitterMode (int var)
 setEmitterMode More...
 
var setEmitterMode ( var var)
 setEmitterMode More...
 
local setEmitterMode ( local var)
 setEmitterMode More...
 
 CCParticleSystem ()
virtual ~CCParticleSystem ()
bool init ()
 initializes a CCParticleSystem More...
 
bool initWithFile (const char *plistFile)
 initializes a CCParticleSystem from a plist file. More...
 
bool initWithDictionary (CCDictionary *dictionary)
 initializes a CCQuadParticleSystem from a CCDictionary. More...
 
bool initWithDictionary (CCDictionary *dictionary, const char *dirname)
 initializes a particle system from a NSDictionary and the path from where to load the png More...
 
virtual bool initWithTotalParticles (unsigned int numberOfParticles)
 Initializes a system with a fixed number of particles. More...
 
bool addParticle ()
 Add a particle to the emitter. More...
 
void initParticle (tCCParticle *particle)
 Initializes a particle. More...
 
void stopSystem ()
 stop emitting particles. Running particles will continue to run until they die More...
 
void resetSystem ()
 Kill all living particles. More...
 
bool isFull ()
 whether or not the system is full More...
 
virtual void updateQuadWithParticle (tCCParticle *particle, const CCPoint &newPosition)
 should be overridden by subclasses More...
 
virtual void postStep ()
 should be overridden by subclasses More...
 
virtual void update (float dt)
local update ( local dt)
virtual void updateWithNoTime (void)
var updateWithNoTime ()
local updateWithNoTime ()
- Public Member Functions inherited from CCNode
virtual CCCameragetCamera ()
 Returns a camera object that lets you move the node using a gluLookAt. More...
 
virtual bool isRunning ()
 Returns whether or not the node accepts event callbacks. More...
 
virtual void cleanup (void)
 Stops all running actions and schedulers. More...
 
virtual void draw (void)
 Override this method to draw your own node. More...
 
virtual void visit (void)
 Visits this node's children and draw them recursively. More...
 
local visit ()
 Visits this node's children and draw them recursively. More...
 
virtual CCRect boundingBox (void)
 Returns a "local" axis aligned bounding box of the node. More...
 
virtual void setZOrder (int zOrder)
 Sets the Z order which stands for the drawing order, and reorder this node in its parent's children array. More...
 
virtual void _setZOrder (int z)
 Sets the z order which stands for the drawing order. More...
 
var _setZOrder ( var z)
 Sets the z order which stands for the drawing order. More...
 
local _setZOrder ( local z)
 Sets the z order which stands for the drawing order. More...
 
virtual int getZOrder ()
 Gets the Z order of this node. More...
 
virtual void setVertexZ (float vertexZ)
 Sets the real OpenGL Z vertex. More...
 
local setVertexZ ( local vertexZ)
 Sets the real OpenGL Z vertex. More...
 
virtual float getVertexZ ()
 Gets OpenGL Z vertex of this node. More...
 
var getVertexZ ()
 Gets OpenGL Z vertex of this node. More...
 
local getVertexZ ()
 Gets OpenGL Z vertex of this node. More...
 
virtual float getScaleX ()
 Returns the scale factor on X axis of this node. More...
 
var getScaleX ()
 Returns the scale factor on X axis of this node. More...
 
local getScaleX ()
 Returns the scale factor on X axis of this node. More...
 
virtual float getScaleY ()
 Returns the scale factor on Y axis of this node. More...
 
virtual float getScale ()
 Gets the scale factor of the node, when X and Y have the same scale factor. More...
 
virtual void setScale (float fScaleX, float fScaleY)
 Changes both X and Y scale factor of the node. More...
 
local setScale ( local fScaleX, local fScaleY)
 Changes both X and Y scale factor of the node. More...
 
virtual void setPosition (const CCPoint &position)
 Changes the position (x,y) of the node in OpenGL coordinates. More...
 
local setPosition ( local position)
 Changes the position (x,y) of the node in OpenGL coordinates. More...
 
virtual const CCPointgetPosition ()
 Gets the position (x,y) of the node in OpenGL coordinates. More...
 
local getPosition ()
 Gets the position (x,y) of the node in OpenGL coordinates. More...
 
virtual void setPosition (float x, float y)
 Sets position in a more efficient way. More...
 
local setPosition ( local x, local y)
 Sets position in a more efficient way. More...
 
virtual void getPosition (float *x, float *y)
 Gets position in a more efficient way, returns two number instead of a CCPoint object. More...
 
local getPosition ( local x, local y)
 Gets position in a more efficient way, returns two number instead of a CCPoint object. More...
 
virtual void setPositionX (float x)
 Gets/Sets x or y coordinate individually for position. More...
 
var setPositionX ( var x)
 Gets/Sets x or y coordinate individually for position. More...
 
local setPositionX ( local x)
 Gets/Sets x or y coordinate individually for position. More...
 
virtual float getPositionX (void)
virtual void setPositionY (float y)
var setPositionY ( var y)
local setPositionY ( local y)
virtual float getPositionY (void)
var getPositionY ()
local getPositionY ()
virtual void setSkewX (float fSkewX)
 Changes the X skew angle of the node in degrees. More...
 
local setSkewX ( local fSkewX)
 Changes the X skew angle of the node in degrees. More...
 
virtual float getSkewX ()
 Returns the X skew angle of the node in degrees. More...
 
local getSkewX ()
 Returns the X skew angle of the node in degrees. More...
 
virtual void setSkewY (float fSkewY)
 Changes the Y skew angle of the node in degrees. More...
 
virtual float getSkewY ()
 Returns the Y skew angle of the node in degrees. More...
 
var getSkewY ()
 Returns the Y skew angle of the node in degrees. More...
 
local getSkewY ()
 Returns the Y skew angle of the node in degrees. More...
 
virtual void setAnchorPoint (const CCPoint &anchorPoint)
 Sets the anchor point in percent. More...
 
local setAnchorPoint ( local anchorPoint)
 Sets the anchor point in percent. More...
 
virtual const CCPointgetAnchorPoint ()
 Returns the anchor point in percent. More...
 
local getAnchorPoint ()
 Returns the anchor point in percent. More...
 
virtual const CCPointgetAnchorPointInPoints ()
 Returns the anchorPoint in absolute pixels. More...
 
local getAnchorPointInPoints ()
 Returns the anchorPoint in absolute pixels. More...
 
virtual void setContentSize (const CCSize &contentSize)
 Sets the untransformed size of the node. More...
 
local setContentSize ( local contentSize)
 Sets the untransformed size of the node. More...
 
virtual const CCSizegetContentSize () const
 Returns the untransformed size of the node. More...
 
virtual void setVisible (bool visible)
 Sets whether the node is visible. More...
 
local setVisible ( local visible)
 Sets whether the node is visible. More...
 
virtual bool isVisible ()
 Determines if the node is visible. More...
 
virtual float getRotation ()
 Returns the rotation of the node in degrees. More...
 
virtual void setRotationX (float fRotaionX)
 Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew. More...
 
local setRotationX ( local fRotaionX)
 Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew. More...
 
virtual float getRotationX ()
 Gets the X rotation (angle) of the node in degrees which performs a horizontal rotation skew. More...
 
local getRotationX ()
 Gets the X rotation (angle) of the node in degrees which performs a horizontal rotation skew. More...
 
virtual void setRotationY (float fRotationY)
 Sets the Y rotation (angle) of the node in degrees which performs a vertical rotational skew. More...
 
local setRotationY ( local fRotationY)
 Sets the Y rotation (angle) of the node in degrees which performs a vertical rotational skew. More...
 
virtual float getRotationY ()
 Gets the Y rotation (angle) of the node in degrees which performs a vertical rotational skew. More...
 
var getRotationY ()
 Gets the Y rotation (angle) of the node in degrees which performs a vertical rotational skew. More...
 
local getRotationY ()
 Gets the Y rotation (angle) of the node in degrees which performs a vertical rotational skew. More...
 
virtual void setOrderOfArrival (unsigned int uOrderOfArrival)
 Sets the arrival order when this node has a same ZOrder with other children. More...
 
var setOrderOfArrival ( var uOrderOfArrival)
 Sets the arrival order when this node has a same ZOrder with other children. More...
 
local setOrderOfArrival ( local uOrderOfArrival)
 Sets the arrival order when this node has a same ZOrder with other children. More...
 
virtual unsigned int getOrderOfArrival ()
 Returns the arrival order, indecates which children is added previously. More...
 
virtual void setGLServerState (ccGLServerState glServerState)
 Sets the state of OpenGL server side. More...
 
local setGLServerState ( local glServerState)
 Sets the state of OpenGL server side. More...
 
virtual ccGLServerState getGLServerState ()
 Returns the state of OpenGL server side. More...
 
local getGLServerState ()
 Returns the state of OpenGL server side. More...
 
virtual void ignoreAnchorPointForPosition (bool ignore)
 Sets whether the anchor point will be (0,0) when you position this node. More...
 
local ignoreAnchorPointForPosition ( local ignore)
 Sets whether the anchor point will be (0,0) when you position this node. More...
 
virtual bool isIgnoreAnchorPointForPosition ()
 Gets whether the anchor point will be (0,0) when you position this node. More...
 
virtual void addChild (CCNode *child)
 Adds a child to the container with z-order as 0. More...
 
var addChild ( var child)
 Adds a child to the container with z-order as 0. More...
 
local addChild ( local child)
 Adds a child to the container with z-order as 0. More...
 
virtual void addChild (CCNode *child, int zOrder)
 Adds a child to the container with a z-order. More...
 
local addChild ( local child, local zOrder)
 Adds a child to the container with a z-order. More...
 
virtual void addChild (CCNode *child, int zOrder, int tag)
 Adds a child to the container with z order and tag. More...
 
var addChild ( var child, var zOrder, var tag)
 Adds a child to the container with z order and tag. More...
 
local addChild ( local child, local zOrder, local tag)
 Adds a child to the container with z order and tag. More...
 
virtual CCNodegetChildByTag (int tag)
 Gets a child from the container with its tag. More...
 
virtual CCArraygetChildren ()
 Return an array of children. More...
 
local getChildren ()
 Return an array of children. More...
 
virtual unsigned int getChildrenCount (void) const
 Get the amount of children. More...
 
var getChildrenCount ()
 Get the amount of children. More...
 
local getChildrenCount ()
 Get the amount of children. More...
 
virtual void setParent (CCNode *parent)
 Sets the parent node. More...
 
virtual CCNodegetParent ()
 Returns a pointer to the parent node. More...
 
var getParent ()
 Returns a pointer to the parent node. More...
 
local getParent ()
 Returns a pointer to the parent node. More...
 
virtual void removeFromParent ()
 Removes this node itself from its parent node with a cleanup. More...
 
virtual void removeFromParentAndCleanup (bool cleanup)
 Removes this node itself from its parent node. More...
 
local removeFromParentAndCleanup ( local cleanup)
 Removes this node itself from its parent node. More...
 
virtual void removeChild (CCNode *child)
 Removes a child from the container with a cleanup. More...
 
virtual void removeChild (CCNode *child, bool cleanup)
 Removes a child from the container. More...
 
virtual void removeChildByTag (int tag)
 Removes a child from the container by tag value with a cleanup. More...
 
virtual void removeChildByTag (int tag, bool cleanup)
 Removes a child from the container by tag value. More...
 
local removeChildByTag ( local tag, local cleanup)
 Removes a child from the container by tag value. More...
 
virtual void removeAllChildren ()
 Removes all children from the container with a cleanup. More...
 
var removeAllChildren ()
 Removes all children from the container with a cleanup. More...
 
local removeAllChildren ()
 Removes all children from the container with a cleanup. More...
 
virtual void removeAllChildrenWithCleanup (bool cleanup)
 Removes all children from the container, and do a cleanup to all running actions depending on the cleanup parameter. More...
 
var removeAllChildren ( var cleanup)
 Removes all children from the container, and do a cleanup to all running actions depending on the cleanup parameter. More...
 
local removeAllChildrenWithCleanup ( local cleanup)
 Removes all children from the container, and do a cleanup to all running actions depending on the cleanup parameter. More...
 
virtual void reorderChild (CCNode *child, int zOrder)
 Reorders a child according to a new z value. More...
 
virtual void sortAllChildren ()
 Sorts the children array once before drawing, instead of every time when a child is added or reordered. More...
 
var sortAllChildren ()
 Sorts the children array once before drawing, instead of every time when a child is added or reordered. More...
 
local sortAllChildren ()
 Sorts the children array once before drawing, instead of every time when a child is added or reordered. More...
 
virtual CCGridBasegetGrid ()
 Returns a grid object that is used when applying effects. More...
 
virtual void setGrid (CCGridBase *pGrid)
 Changes a grid object that is used when applying effects. More...
 
virtual int getTag () const
 Returns a tag that is used to identify the node easily. More...
 
var getTag ()
 Returns a tag that is used to identify the node easily. More...
 
local getTag ()
 Returns a tag that is used to identify the node easily. More...
 
virtual void setTag (int nTag)
 Changes the tag that is used to identify the node easily. More...
 
local setTag ( local nTag)
 Changes the tag that is used to identify the node easily. More...
 
virtual void * getUserData ()
 Returns a custom user data pointer. More...
 
virtual void setUserData (void *pUserData)
 Sets a custom user data pointer. More...
 
local setUserData ( local pUserData)
 Sets a custom user data pointer. More...
 
virtual CCObjectgetUserObject ()
 Returns a user assigned CCObject. More...
 
local getUserObject ()
 Returns a user assigned CCObject. More...
 
virtual void setUserObject (CCObject *pUserObject)
 Returns a user assigned CCObject. More...
 
local setUserObject ( local pUserObject)
 Returns a user assigned CCObject. More...
 
virtual CCGLProgramgetShaderProgram ()
 Return the shader program currently used for this node. More...
 
virtual void setShaderProgram (CCGLProgram *pShaderProgram)
 Sets the shader program for this node. More...
 
virtual void registerScriptHandler (int handler)
 Registers a script function that will be called in onEnter() & onExit() seires functions. More...
 
local registerScriptHandler ( local handler)
 Registers a script function that will be called in onEnter() & onExit() seires functions. More...
 
virtual void unregisterScriptHandler (void)
 Unregisters a script function that will be called in onEnter() & onExit() series functions. More...
 
int getScriptHandler ()
 Gets script handler for onEnter/onExit event. More...
 
void scheduleUpdateWithPriorityLua (int nHandler, int priority)
 Schedules for lua script. More...
 
local scheduleUpdateWithPriorityLua ( local nHandler, local priority)
 Schedules for lua script. More...
 
virtual void onEnter ()
 Event callback that is invoked every time when CCNode enters the 'stage'. More...
 
virtual void onEnterTransitionDidFinish ()
 Event callback that is invoked when the CCNode enters in the 'stage'. More...
 
virtual void onExit ()
 Event callback that is invoked every time the CCNode leaves the 'stage'. More...
 
virtual void onExitTransitionDidStart ()
 Event callback that is called every time the CCNode leaves the 'stage'. More...
 
virtual void setActionManager (CCActionManager *actionManager)
 Sets the CCActionManager object that is used by all actions. More...
 
virtual CCActionManagergetActionManager ()
 Gets the CCActionManager object that is used by all actions. More...
 
local getActionManager ()
 Gets the CCActionManager object that is used by all actions. More...
 
CCActionrunAction (CCAction *action)
 Executes an action, and returns the action that is executed. More...
 
void stopAllActions (void)
 Stops and removes all actions from the running action list . More...
 
var stopAllActions ()
 Stops and removes all actions from the running action list . More...
 
local stopAllActions ()
 Stops and removes all actions from the running action list . More...
 
void stopAction (CCAction *action)
 Stops and removes an action from the running action list. More...
 
var stopAction ( var action)
 Stops and removes an action from the running action list. More...
 
local stopAction ( local action)
 Stops and removes an action from the running action list. More...
 
void stopActionByTag (int tag)
 Removes an action from the running action list by its tag. More...
 
var stopActionByTag ( var tag)
 Removes an action from the running action list by its tag. More...
 
local stopActionByTag ( local tag)
 Removes an action from the running action list by its tag. More...
 
CCActiongetActionByTag (int tag)
 Gets an action from the running action list by its tag. More...
 
unsigned int numberOfRunningActions (void)
 Returns the numbers of actions that are running plus the ones that are schedule to run (actions in actionsToAdd and actions arrays). More...
 
local numberOfRunningActions ()
 Returns the numbers of actions that are running plus the ones that are schedule to run (actions in actionsToAdd and actions arrays). More...
 
virtual void setScheduler (CCScheduler *scheduler)
 Sets a CCScheduler object that is used to schedule all "updates" and timers. More...
 
virtual CCSchedulergetScheduler ()
 Gets a CCSheduler object. More...
 
local getScheduler ()
 Gets a CCSheduler object. More...
 
bool isScheduled (SEL_SCHEDULE selector)
 Checks whether a selector is scheduled. More...
 
void scheduleUpdate (void)
 Schedules the "update" method. More...
 
void scheduleUpdateWithPriority (int priority)
 Schedules the "update" method with a custom priority. More...
 
var scheduleUpdateWithPriority ( var priority)
 Schedules the "update" method with a custom priority. More...
 
void unscheduleUpdate (void)
var unscheduleUpdate ()
local unscheduleUpdate ()
void schedule (SEL_SCHEDULE selector, float interval, unsigned int repeat, float delay)
 Schedules a custom selector. More...
 
void schedule (SEL_SCHEDULE selector, float interval)
 Schedules a custom selector with an interval time in seconds. More...
 
var schedule ( var selector, var interval)
 Schedules a custom selector with an interval time in seconds. More...
 
void scheduleOnce (SEL_SCHEDULE selector, float delay)
 Schedules a selector that runs only once, with a delay of 0 or larger. More...
 
void schedule (SEL_SCHEDULE selector)
 Schedules a custom selector, the scheduled selector will be ticked every frame. More...
 
void unschedule (SEL_SCHEDULE selector)
 Unschedules a custom selector. More...
 
void unscheduleAllSelectors (void)
 Unschedule all scheduled selectors: custom selectors, and the 'update' selector. More...
 
void resumeSchedulerAndActions (void)
 Resumes all scheduled selectors and actions. More...
 
void pauseSchedulerAndActions (void)
 Pauses all scheduled selectors and actions. More...
 
void transform (void)
 Performs OpenGL view-matrix transformation based on position, scale, rotation and other attributes. More...
 
void transformAncestors (void)
 Performs OpenGL view-matrix transformation of it's ancestors. More...
 
virtual void updateTransform (void)
 Calls children's updateTransform() method recursively. More...
 
virtual CCAffineTransform nodeToParentTransform (void)
 Returns the matrix that transform the node's (local) space coordinates into the parent's space coordinates. More...
 
local nodeToParentTransform ()
 Returns the matrix that transform the node's (local) space coordinates into the parent's space coordinates. More...
 
virtual CCAffineTransform parentToNodeTransform (void)
 Returns the matrix that transform parent's space coordinates to the node's (local) space coordinates. More...
 
local parentToNodeTransform ()
 Returns the matrix that transform parent's space coordinates to the node's (local) space coordinates. More...
 
virtual CCAffineTransform nodeToWorldTransform (void)
 Returns the world affine transform matrix. More...
 
local nodeToWorldTransform ()
 Returns the world affine transform matrix. More...
 
virtual CCAffineTransform worldToNodeTransform (void)
 Returns the inverse world affine transform matrix. More...
 
local worldToNodeTransform ()
 Returns the inverse world affine transform matrix. More...
 
CCPoint convertToNodeSpace (const CCPoint &worldPoint)
 Converts a Point to node (local) space coordinates. More...
 
CCPoint convertToWorldSpace (const CCPoint &nodePoint)
 Converts a Point to world space coordinates. More...
 
var convertToWorldSpace ( var nodePoint)
 Converts a Point to world space coordinates. More...
 
local convertToWorldSpace ( local nodePoint)
 Converts a Point to world space coordinates. More...
 
CCPoint convertToNodeSpaceAR (const CCPoint &worldPoint)
 Converts a Point to node (local) space coordinates. More...
 
CCPoint convertToWorldSpaceAR (const CCPoint &nodePoint)
 Converts a local Point to world space coordinates.The result is in Points. More...
 
CCPoint convertTouchToNodeSpace (CCTouch *touch)
 convenience methods which take a CCTouch instead of CCPoint More...
 
var convertTouchToNodeSpace ( var touch)
 convenience methods which take a CCTouch instead of CCPoint More...
 
local convertTouchToNodeSpace ( local touch)
 convenience methods which take a CCTouch instead of CCPoint More...
 
CCPoint convertTouchToNodeSpaceAR (CCTouch *touch)
 converts a CCTouch (world coordinates) into a local coordinate. More...
 
void setAdditionalTransform (const CCAffineTransform &additionalTransform)
 Sets the additional transform. More...
 
var setAdditionalTransform ( var additionalTransform)
 Sets the additional transform. More...
 
local setAdditionalTransform ( local additionalTransform)
 Sets the additional transform. More...
 
CCComponentgetComponent (const char *pName) const
 gets a component by its name More...
 
var getComponent ( var pName)
 gets a component by its name More...
 
local getComponent ( local pName)
 gets a component by its name More...
 
virtual bool addComponent (CCComponent *pComponent)
 adds a component More...
 
var addComponent ( var pComponent)
 adds a component More...
 
local addComponent ( local pComponent)
 adds a component More...
 
virtual bool removeComponent (const char *pName)
 removes a component by its name More...
 
virtual bool removeComponent (CCComponent *pComponent)
 removes a component by its pointer More...
 
var removeComponent ( var pComponent)
 removes a component by its pointer More...
 
local removeComponent ( local pComponent)
 removes a component by its pointer More...
 
virtual void removeAllComponents ()
 removes all components More...
 
 CCNode (void)
 Default constructor. More...
 
virtual ~CCNode (void)
 Default destructor. More...
 
const char * description (void)
 Gets the description string. More...
 
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static CCParticleSystemcreate (const char *plistFile)
 creates an initializes a CCParticleSystem from a plist file. More...
 
local create ( local plistFile)
 creates an initializes a CCParticleSystem from a plist file. More...
 
static CCParticleSystemcreateWithTotalParticles (unsigned int numberOfParticles)
 create a system with a fixed number of particles More...
 
local createWithTotalParticles ( local numberOfParticles)
 create a system with a fixed number of particles More...
 
- Static Public Member Functions inherited from CCNode
static CCNodecreate (void)
 Allocates and initializes a node. More...
 
local create ()
 Allocates and initializes a node. More...
 

Public Attributes

virtual unsigned int getAtlasIndex (void)\n\n public
 getAtlasIndex More...
 
bool m_bTransformSystemDirty
unsigned int m_uAllocatedParticles
bool m_bIsActive
 Is the emitter active. More...
 
bool m_bIsBlendAdditive
 whether or not the particles are using blend additive. More...
 
- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Protected Member Functions

virtual void updateBlendFunc ()

Protected Attributes

std::string m_sPlistFile
float m_fElapsed
 time elapsed since the start of the system (in seconds) More...
 
var m_fElapsed
 time elapsed since the start of the system (in seconds) More...
 
local m_fElapsed
 time elapsed since the start of the system (in seconds) More...
 
struct {
   CCPoint   gravity
 Gravity value. More...
 
   var   gravity
 Gravity value. More...
 
   local   gravity
 Gravity value. More...
 
   float   speed
 speed of each particle. More...
 
   var   speed
 speed of each particle. More...
 
   local   speed
 speed of each particle. More...
 
   float   speedVar
 speed variance of each particle. More...
 
   var   speedVar
 speed variance of each particle. More...
 
   local   speedVar
 speed variance of each particle. More...
 
   float   tangentialAccel
 tangential acceleration of each particle. More...
 
   var   tangentialAccel
 tangential acceleration of each particle. More...
 
   local   tangentialAccel
 tangential acceleration of each particle. More...
 
   float   tangentialAccelVar
 tangential acceleration variance of each particle. More...
 
   var   tangentialAccelVar
 tangential acceleration variance of each particle. More...
 
   local   tangentialAccelVar
 tangential acceleration variance of each particle. More...
 
   float   radialAccel
 radial acceleration of each particle. More...
 
   var   radialAccel
 radial acceleration of each particle. More...
 
   local   radialAccel
 radial acceleration of each particle. More...
 
   float   radialAccelVar
 radial acceleration variance of each particle. More...
 
   var   radialAccelVar
 radial acceleration variance of each particle. More...
 
   local   radialAccelVar
 radial acceleration variance of each particle. More...
 
   bool   rotationIsDir
 set the rotation of each particle to its direction Only available in 'Gravity' mode. More...
 
   var   rotationIsDir
 set the rotation of each particle to its direction Only available in 'Gravity' mode. More...
 
   local   rotationIsDir
 set the rotation of each particle to its direction Only available in 'Gravity' mode. More...
 
modeA
 Mode A:Gravity + Tangential Accel + Radial Accel. More...
 
struct {
   float   startRadius
 The starting radius of the particles. More...
 
   var   startRadius
 The starting radius of the particles. More...
 
   local   startRadius
 The starting radius of the particles. More...
 
   float   startRadiusVar
 The starting radius variance of the particles. More...
 
   var   startRadiusVar
 The starting radius variance of the particles. More...
 
   local   startRadiusVar
 The starting radius variance of the particles. More...
 
   float   endRadius
 The ending radius of the particles. More...
 
   var   endRadius
 The ending radius of the particles. More...
 
   local   endRadius
 The ending radius of the particles. More...
 
   float   endRadiusVar
 The ending radius variance of the particles. More...
 
   var   endRadiusVar
 The ending radius variance of the particles. More...
 
   local   endRadiusVar
 The ending radius variance of the particles. More...
 
   float   rotatePerSecond
 Number of degrees to rotate a particle around the source pos per second. More...
 
   var   rotatePerSecond
 Number of degrees to rotate a particle around the source pos per second. More...
 
   local   rotatePerSecond
 Number of degrees to rotate a particle around the source pos per second. More...
 
   float   rotatePerSecondVar
 Variance in degrees for rotatePerSecond. More...
 
   var   rotatePerSecondVar
 Variance in degrees for rotatePerSecond. More...
 
   local   rotatePerSecondVar
 Variance in degrees for rotatePerSecond. More...
 
modeB
 Mode B: circular movement (gravity, radial accel and tangential accel don't are not used in this mode) More...
 
tCCParticlem_pParticles
 Array of particles. More...
 
float m_fEmitCounter
 How many particles can be emitted per second. More...
 
unsigned int m_uParticleIdx
 particle idx More...
 
CCParticleBatchNodem_pBatchNode
 weak reference to the CCSpriteBatchNode that renders the CCSprite More...
 
var m_pBatchNode
 weak reference to the CCSpriteBatchNode that renders the CCSprite More...
 
local m_pBatchNode
 weak reference to the CCSpriteBatchNode that renders the CCSprite More...
 
unsigned int m_uAtlasIndex
unsigned int m_uParticleCount
 Quantity of particles that are being simulated at the moment. More...
 
float m_fDuration
 How many seconds the emitter will run. More...
 
CCPoint m_tSourcePosition
 sourcePosition of the emitter More...
 
CCPoint m_tPosVar
 Position variance of the emitter. More...
 
float m_fLife
 life, and life variation of each particle More...
 
float m_fLifeVar
 life variance of each particle More...
 
float m_fAngle
 angle and angle variation of each particle More...
 
float m_fAngleVar
 angle variance of each particle More...
 
float m_fStartSize
 start size in pixels of each particle More...
 
float m_fStartSizeVar
 size variance in pixels of each particle More...
 
float m_fEndSize
 end size in pixels of each particle More...
 
float m_fEndSizeVar
 end size variance in pixels of each particle More...
 
ccColor4F m_tStartColor
 start color of each particle More...
 
ccColor4F m_tStartColorVar
 start color variance of each particle More...
 
ccColor4F m_tEndColor
 end color and end color variation of each particle More...
 
ccColor4F m_tEndColorVar
 end color variance of each particle More...
 
float m_fStartSpin
float m_fStartSpinVar
float m_fEndSpin
float m_fEndSpinVar
float m_fEmissionRate
 emission rate of the particles More...
 
unsigned int m_uTotalParticles
 maximum particles of the system More...
 
CCTexture2Dm_pTexture
 conforms to CocosNodeTexture protocol More...
 
ccBlendFunc m_tBlendFunc
 conforms to CocosNodeTexture protocol More...
 
bool m_bOpacityModifyRGB
 does the alpha value modify color More...
 
tCCPositionType m_ePositionType
 particles movement type: Free or Grouped More...
 
bool m_bIsAutoRemoveOnFinish
 whether or not the node will be auto-removed when it has no particles left. More...
 
int m_nEmitterMode
 Switch between different kind of emitter modes: More...
 
- Protected Attributes inherited from CCNode
float m_fRotationX
 rotation angle on x-axis More...
 
float m_fRotationY
 rotation angle on y-axis More...
 
var m_fRotationY
 rotation angle on y-axis More...
 
local m_fRotationY
 rotation angle on y-axis More...
 
float m_fScaleX
 scaling factor on x-axis More...
 
var m_fScaleX
 scaling factor on x-axis More...
 
local m_fScaleX
 scaling factor on x-axis More...
 
float m_fScaleY
 scaling factor on y-axis More...
 
var m_fScaleY
 scaling factor on y-axis More...
 
local m_fScaleY
 scaling factor on y-axis More...
 
float m_fVertexZ
 OpenGL real Z vertex. More...
 
var m_fVertexZ
 OpenGL real Z vertex. More...
 
local m_fVertexZ
 OpenGL real Z vertex. More...
 
CCPoint m_obPosition
 position of the node More...
 
var m_obPosition
 position of the node More...
 
local m_obPosition
 position of the node More...
 
float m_fSkewX
 skew angle on x-axis More...
 
var m_fSkewX
 skew angle on x-axis More...
 
local m_fSkewX
 skew angle on x-axis More...
 
float m_fSkewY
 skew angle on y-axis More...
 
var m_fSkewY
 skew angle on y-axis More...
 
local m_fSkewY
 skew angle on y-axis More...
 
CCPoint m_obAnchorPointInPoints
 anchor point in points More...
 
var m_obAnchorPointInPoints
 anchor point in points More...
 
local m_obAnchorPointInPoints
 anchor point in points More...
 
CCPoint m_obAnchorPoint
 anchor point normalized (NOT in points) More...
 
var m_obAnchorPoint
 anchor point normalized (NOT in points) More...
 
local m_obAnchorPoint
 anchor point normalized (NOT in points) More...
 
CCSize m_obContentSize
 untransformed size of the node More...
 
CCAffineTransform m_sAdditionalTransform
 transform More...
 
var m_sAdditionalTransform
 transform More...
 
local m_sAdditionalTransform
 transform More...
 
CCAffineTransform m_sTransform
 transform More...
 
var m_sTransform
 transform More...
 
local m_sTransform
 transform More...
 
CCAffineTransform m_sInverse
 transform More...
 
var m_sInverse
 transform More...
 
local m_sInverse
 transform More...
 
CCCameram_pCamera
 a camera More...
 
var m_pCamera
 a camera More...
 
local m_pCamera
 a camera More...
 
CCGridBasem_pGrid
 a grid More...
 
var m_pGrid
 a grid More...
 
local m_pGrid
 a grid More...
 
int m_nZOrder
 z-order value that affects the draw order More...
 
var m_nZOrder
 z-order value that affects the draw order More...
 
local m_nZOrder
 z-order value that affects the draw order More...
 
CCArraym_pChildren
 array of children nodes More...
 
var m_pChildren
 array of children nodes More...
 
local m_pChildren
 array of children nodes More...
 
CCNodem_pParent
 weak reference to parent node More...
 
var m_pParent
 weak reference to parent node More...
 
local m_pParent
 weak reference to parent node More...
 
int m_nTag
 a tag. Can be any number you assigned just to identify this node More...
 
void * m_pUserData
 A user assingned void pointer, Can be point to any cpp object. More...
 
var m_pUserData
 A user assingned void pointer, Can be point to any cpp object. More...
 
local m_pUserData
 A user assingned void pointer, Can be point to any cpp object. More...
 
CCObjectm_pUserObject
 A user assigned CCObject. More...
 
var m_pUserObject
 A user assigned CCObject. More...
 
local m_pUserObject
 A user assigned CCObject. More...
 
CCGLProgramm_pShaderProgram
 OpenGL shader. More...
 
var m_pShaderProgram
 OpenGL shader. More...
 
local m_pShaderProgram
 OpenGL shader. More...
 
ccGLServerState m_eGLServerState
 OpenGL servier side state. More...
 
var m_eGLServerState
 OpenGL servier side state. More...
 
local m_eGLServerState
 OpenGL servier side state. More...
 
unsigned int m_uOrderOfArrival
 used to preserve sequence while sorting children with the same zOrder More...
 
CCSchedulerm_pScheduler
 scheduler used to schedule timers and updates More...
 
var m_pScheduler
 scheduler used to schedule timers and updates More...
 
local m_pScheduler
 scheduler used to schedule timers and updates More...
 
CCActionManagerm_pActionManager
 a pointer to ActionManager singleton, which is used to handle all the actions More...
 
var m_pActionManager
 a pointer to ActionManager singleton, which is used to handle all the actions More...
 
local m_pActionManager
 a pointer to ActionManager singleton, which is used to handle all the actions More...
 
bool m_bRunning
 is running More...
 
var m_bRunning
 is running More...
 
local m_bRunning
 is running More...
 
bool m_bTransformDirty
 transform dirty flag More...
 
var m_bTransformDirty
 transform dirty flag More...
 
local m_bTransformDirty
 transform dirty flag More...
 
bool m_bInverseDirty
 transform dirty flag More...
 
var m_bInverseDirty
 transform dirty flag More...
 
local m_bInverseDirty
 transform dirty flag More...
 
bool m_bAdditionalTransformDirty
 The flag to check whether the additional transform is dirty. More...
 
bool m_bVisible
 is this node visible More...
 
var m_bVisible
 is this node visible More...
 
local m_bVisible
 is this node visible More...
 
bool m_bIgnoreAnchorPointForPosition
 true if the Anchor Point will be (0,0) when you position the CCNode, false otherwise. More...
 
var m_bIgnoreAnchorPointForPosition
 true if the Anchor Point will be (0,0) when you position the CCNode, false otherwise. More...
 
local m_bIgnoreAnchorPointForPosition
 true if the Anchor Point will be (0,0) when you position the CCNode, false otherwise. More...
 
bool m_bReorderChildDirty
 children order dirty flag More...
 
var m_bReorderChildDirty
 children order dirty flag More...
 
local m_bReorderChildDirty
 children order dirty flag More...
 
int m_nScriptHandler
 script handler for onEnter() & onExit(), used in Javascript binding and Lua binding. More...
 
var m_nScriptHandler
 script handler for onEnter() & onExit(), used in Javascript binding and Lua binding. More...
 
local m_nScriptHandler
 script handler for onEnter() & onExit(), used in Javascript binding and Lua binding. More...
 
int m_nUpdateScriptHandler
 script handler for update() callback per frame, which is invoked from lua & javascript. More...
 
var m_nUpdateScriptHandler
 script handler for update() callback per frame, which is invoked from lua & javascript. More...
 
local m_nUpdateScriptHandler
 script handler for update() callback per frame, which is invoked from lua & javascript. More...
 
ccScriptType m_eScriptType
 type of script binding, lua or javascript More...
 
var m_eScriptType
 type of script binding, lua or javascript More...
 
local m_eScriptType
 type of script binding, lua or javascript More...
 
CCComponentContainerm_pComponentContainer
 Dictionary of components. More...
 
var m_pComponentContainer
 Dictionary of components. More...
 
local m_pComponentContainer
 Dictionary of components. More...
 
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Detailed Description

Particle System base class.

Attributes of a Particle System:

  • emission rate of the particles
  • Gravity Mode (Mode A):
  • gravity
  • direction
  • speed +- variance
  • tangential acceleration +- variance
  • radial acceleration +- variance
  • Radius Mode (Mode B):
  • startRadius +- variance
  • endRadius +- variance
  • rotate +- variance
  • Properties common to all modes:
  • life +- life variance
  • start spin +- variance
  • end spin +- variance
  • start size +- variance
  • end size +- variance
  • start color +- variance
  • end color +- variance
  • life +- variance
  • blending function
  • texture

cocos2d also supports particles generated by Particle Designer (http://particledesigner.71squared.com/). 'Radius Mode' in Particle Designer uses a fixed emit rate of 30 hz. Since that can't be guaranteed in cocos2d, cocos2d uses a another approach, but the results are almost identical.

cocos2d supports all the variables used by Particle Designer plus a bit more:

  • spinning particles (supported when using CCParticleSystemQuad)
  • tangential acceleration (Gravity mode)
  • radial acceleration (Gravity mode)
  • radius direction (Radius mode) (Particle Designer supports outwards to inwards direction only)

It is possible to customize any of the above mentioned properties in runtime. Example:

emitter.radialAccel = 15;
emitter.startSpin = 0;

Constructor & Destructor Documentation

var ctor ( )
local CCParticleSystem ( )
virtual ~CCParticleSystem ( )
virtual

Member Function Documentation

bool addParticle ( )

Add a particle to the emitter.

var addParticle ( )

Add a particle to the emitter.

local addParticle ( )

Add a particle to the emitter.

static CCParticleSystem* create ( const char *  plistFile)
static

creates an initializes a CCParticleSystem from a plist file.

This plist files can be created manually or with Particle Designer: http://particledesigner.71squared.com/

Since
v2.0
var create ( var  plistFile)
static

creates an initializes a CCParticleSystem from a plist file.

This plist files can be created manually or with Particle Designer: http://particledesigner.71squared.com/

Since
v2.0
local create ( local  plistFile)
static

creates an initializes a CCParticleSystem from a plist file.

This plist files can be created manually or with Particle Designer: http://particledesigner.71squared.com/

Since
v2.0
static CCParticleSystem*
createWithTotalParticles
( unsigned int  numberOfParticles)
static

create a system with a fixed number of particles

var createWithTotalParticles ( var  numberOfParticles)
static

create a system with a fixed number of particles

local createWithTotalParticles ( local  numberOfParticles)
static

create a system with a fixed number of particles

virtual float getAngle ( void  )
virtual

getAngle

var getAngle (   )
virtual

getAngle

local getAngle (   )
virtual

getAngle

virtual float getAngleVar ( void  )
virtual

getAngleVar

var getAngleVar (   )
virtual

getAngleVar

local getAngleVar (   )
virtual

getAngleVar

virtual CCParticleBatchNode*
getBatchNode
( void  )
virtual

getBatchNode

var getBatchNode (   )
virtual

getBatchNode

local getBatchNode (   )
virtual

getBatchNode

virtual ccBlendFunc getBlendFunc ( void  )
virtual

getBlendFunc

Implements CCBlendProtocol.

var getBlendFunc (   )
virtual

getBlendFunc

Implements CCBlendProtocol.

local getBlendFunc (   )
virtual

getBlendFunc

Implements CCBlendProtocol.

virtual float getDuration ( void  )
virtual

getDuration

var getDuration (   )
virtual

getDuration

local getDuration (   )
virtual

getDuration

virtual float getEmissionRate ( void  )
virtual

getEmissionRate

var getEmissionRate (   )
virtual

getEmissionRate

local getEmissionRate (   )
virtual

getEmissionRate

virtual int getEmitterMode ( void  )
virtual

getEmitterMode

var getEmitterMode (   )
virtual

getEmitterMode

local getEmitterMode (   )
virtual

getEmitterMode

virtual const ccColor4F&
getEndColor
( void  )
virtual

getEndColor

var getEndColor (   )
virtual

getEndColor

local getEndColor (   )
virtual

getEndColor

virtual const ccColor4F&
getEndColorVar
( void  )
virtual

getEndColorVar

var getEndColorVar (   )
virtual

getEndColorVar

local getEndColorVar (   )
virtual

getEndColorVar

virtual float getEndRadius ( )
virtual
var getEndRadius ( )
virtual
local getEndRadius ( )
virtual
virtual float getEndRadiusVar ( )
virtual
var getEndRadiusVar ( )
virtual
local getEndRadiusVar ( )
virtual
virtual float getEndSize ( void  )
virtual

getEndSize

var getEndSize (   )
virtual

getEndSize

local getEndSize (   )
virtual

getEndSize

virtual float getEndSizeVar ( void  )
virtual

getEndSizeVar

var getEndSizeVar (   )
virtual

getEndSizeVar

local getEndSizeVar (   )
virtual

getEndSizeVar

virtual float getEndSpin ( void  )
virtual

getEndSpin

var getEndSpin (   )
virtual

getEndSpin

local getEndSpin (   )
virtual

getEndSpin

virtual float getEndSpinVar ( void  )
virtual

getEndSpinVar

var getEndSpinVar (   )
virtual

getEndSpinVar

local getEndSpinVar (   )
virtual

getEndSpinVar

virtual const CCPoint& getGravity ( )
virtual
var getGravity ( )
virtual
local getGravity ( )
virtual
virtual float getLife ( void  )
virtual

getLife

var getLife (   )
virtual

getLife

local getLife (   )
virtual

getLife

virtual float getLifeVar ( void  )
virtual

getLifeVar

var getLifeVar (   )
virtual

getLifeVar

local getLifeVar (   )
virtual

getLifeVar

virtual bool getOpacityModifyRGB ( void  )
virtual

getOpacityModifyRGB

var getOpacityModifyRGB (   )
virtual

getOpacityModifyRGB

local getOpacityModifyRGB (   )
virtual

getOpacityModifyRGB

virtual unsigned int
getParticleCount
( void  )
virtual

getParticleCount

var getParticleCount (   )
virtual

getParticleCount

local getParticleCount (   )
virtual

getParticleCount

virtual tCCPositionType
getPositionType
( void  )
virtual

getPositionType

var getPositionType (   )
virtual

getPositionType

local getPositionType (   )
virtual

getPositionType

virtual const CCPoint& getPosVar ( void  )
virtual

getPosVar

var getPosVar (   )
virtual

getPosVar

local getPosVar (   )
virtual

getPosVar

virtual float getRadialAccel ( )
virtual
var getRadialAccel ( )
virtual
local getRadialAccel ( )
virtual
virtual float getRadialAccelVar ( )
virtual
var getRadialAccelVar ( )
virtual
local getRadialAccelVar ( )
virtual
virtual float getRotatePerSecond ( )
virtual
var getRotatePerSecond ( )
virtual
local getRotatePerSecond ( )
virtual
virtual float getRotatePerSecondVar ( )
virtual
var getRotatePerSecondVar ( )
virtual
local getRotatePerSecondVar ( )
virtual
virtual bool getRotationIsDir ( )
virtual
var getRotationIsDir ( )
virtual
local getRotationIsDir ( )
virtual
virtual const CCPoint&
getSourcePosition
( void  )
virtual

getSourcePosition

var getSourcePosition (   )
virtual

getSourcePosition

local getSourcePosition (   )
virtual

getSourcePosition

virtual float getSpeed ( )
virtual
var getSpeed ( )
virtual
local getSpeed ( )
virtual
virtual float getSpeedVar ( )
virtual
var getSpeedVar ( )
virtual
local getSpeedVar ( )
virtual
virtual const ccColor4F&
getStartColor
( void  )
virtual

getStartColor

var getStartColor (   )
virtual

getStartColor

local getStartColor (   )
virtual

getStartColor

virtual const ccColor4F&
getStartColorVar
( void  )
virtual

getStartColorVar

var getStartColorVar (   )
virtual

getStartColorVar

local getStartColorVar (   )
virtual

getStartColorVar

virtual float getStartRadius ( )
virtual
var getStartRadius ( )
virtual
local getStartRadius ( )
virtual
virtual float getStartRadiusVar ( )
virtual
var getStartRadiusVar ( )
virtual
local getStartRadiusVar ( )
virtual
virtual float getStartSize ( void  )
virtual

getStartSize

var getStartSize (   )
virtual

getStartSize

local getStartSize (   )
virtual

getStartSize

virtual float getStartSizeVar ( void  )
virtual

getStartSizeVar

var getStartSizeVar (   )
virtual

getStartSizeVar

local getStartSizeVar (   )
virtual

getStartSizeVar

virtual float getStartSpin ( void  )
virtual

getStartSpin

var getStartSpin (   )
virtual

getStartSpin

local getStartSpin (   )
virtual

getStartSpin

virtual float getStartSpinVar ( void  )
virtual

getStartSpinVar

var getStartSpinVar (   )
virtual

getStartSpinVar

local getStartSpinVar (   )
virtual

getStartSpinVar

virtual float getTangentialAccel ( )
virtual
var getTangentialAccel ( )
virtual
local getTangentialAccel ( )
virtual
virtual float getTangentialAccelVar ( )
virtual
var getTangentialAccelVar ( )
virtual
local getTangentialAccelVar ( )
virtual
virtual CCTexture2D* getTexture ( void  )
virtual

getTexture

Implements CCTextureProtocol.

var getTexture (   )
virtual

getTexture

Implements CCTextureProtocol.

local getTexture (   )
virtual

getTexture

Implements CCTextureProtocol.

virtual unsigned int
getTotalParticles
( void  )
virtual

getTotalParticles

var getTotalParticles (   )
virtual

getTotalParticles

local getTotalParticles (   )
virtual

getTotalParticles

bool init ( )
virtual

initializes a CCParticleSystem

Reimplemented from CCNode.

var init ( )
virtual

initializes a CCParticleSystem

Reimplemented from CCNode.

local init ( )
virtual

initializes a CCParticleSystem

Reimplemented from CCNode.

void initParticle ( tCCParticle particle)

Initializes a particle.

var initParticle ( var  particle)

Initializes a particle.

local initParticle ( local  particle)

Initializes a particle.

bool initWithDictionary ( CCDictionary dictionary)

initializes a CCQuadParticleSystem from a CCDictionary.

Since
v0.99.3
var initWithDictionary ( var  dictionary)

initializes a CCQuadParticleSystem from a CCDictionary.

Since
v0.99.3
local initWithDictionary ( local  dictionary)

initializes a CCQuadParticleSystem from a CCDictionary.

Since
v0.99.3
bool initWithDictionary ( CCDictionary dictionary,
const char *  dirname 
)

initializes a particle system from a NSDictionary and the path from where to load the png

Since
v2.1
var initWithDictionary ( var  dictionary,
var  dirname 
)

initializes a particle system from a NSDictionary and the path from where to load the png

Since
v2.1
local initWithDictionary ( local  dictionary,
local  dirname 
)

initializes a particle system from a NSDictionary and the path from where to load the png

Since
v2.1
bool initWithFile ( const char *  plistFile)

initializes a CCParticleSystem from a plist file.

This plist files can be created manually or with Particle Designer: http://particledesigner.71squared.com/

Since
v0.99.3
var initWithFile ( var  plistFile)

initializes a CCParticleSystem from a plist file.

This plist files can be created manually or with Particle Designer: http://particledesigner.71squared.com/

Since
v0.99.3
local initWithFile ( local  plistFile)

initializes a CCParticleSystem from a plist file.

This plist files can be created manually or with Particle Designer: http://particledesigner.71squared.com/

Since
v0.99.3
virtual bool initWithTotalParticles ( unsigned int  numberOfParticles)
virtual
var initWithTotalParticles ( var  numberOfParticles)
virtual
local initWithTotalParticles ( local  numberOfParticles)
virtual
virtual bool isActive ( )
virtual
var isActive ( )
virtual
local isActive ( )
virtual
virtual bool isAutoRemoveOnFinish ( )
virtual
var isAutoRemoveOnFinish ( )
virtual
local isAutoRemoveOnFinish ( )
virtual
virtual bool isBlendAdditive ( )
virtual
var isBlendAdditive ( )
virtual
local isBlendAdditive ( )
virtual
bool isFull ( )

whether or not the system is full

var isFull ( )

whether or not the system is full

local isFull ( )

whether or not the system is full

virtual void postStep ( )
virtual

should be overridden by subclasses

Reimplemented in CCParticleSystemQuad.

var postStep ( )
virtual

should be overridden by subclasses

Reimplemented in CCParticleSystemQuad.

local postStep ( )
virtual

should be overridden by subclasses

Reimplemented in CCParticleSystemQuad.

void resetSystem ( )

Kill all living particles.

var resetSystem ( )

Kill all living particles.

local resetSystem ( )

Kill all living particles.

virtual void setAngle ( float  var)
virtual

setAngle

var setAngle ( var  var)
virtual

setAngle

local setAngle ( local  var)
virtual

setAngle

virtual void setAngleVar ( float  var)
virtual

setAngleVar

var setAngleVar ( var  var)
virtual

setAngleVar

local setAngleVar ( local  var)
virtual

setAngleVar

virtual void setAutoRemoveOnFinish ( bool  var)
virtual
var setAutoRemoveOnFinish ( var  var)
virtual
local setAutoRemoveOnFinish ( local  var)
virtual
virtual void setBatchNode ( CCParticleBatchNode var)
virtual

setBatchNode

Reimplemented in CCParticleSystemQuad.

var setBatchNode ( var  var)
virtual

setBatchNode

Reimplemented in CCParticleSystemQuad.

local setBatchNode ( local  var)
virtual

setBatchNode

Reimplemented in CCParticleSystemQuad.

virtual void setBlendAdditive ( bool  value)
virtual
var setBlendAdditive ( var  value)
virtual
local setBlendAdditive ( local  value)
virtual
virtual void setBlendFunc ( ccBlendFunc  var)
virtual

setBlendFunc

Implements CCBlendProtocol.

var setBlendFunc ( var  var)
virtual

setBlendFunc

Implements CCBlendProtocol.

local setBlendFunc ( local  var)
virtual

setBlendFunc

Implements CCBlendProtocol.

virtual void setDuration ( float  var)
virtual

setDuration

var setDuration ( var  var)
virtual

setDuration

local setDuration ( local  var)
virtual

setDuration

virtual void setEmissionRate ( float  var)
virtual

setEmissionRate

var setEmissionRate ( var  var)
virtual

setEmissionRate

local setEmissionRate ( local  var)
virtual

setEmissionRate

virtual void setEmitterMode ( int  var)
virtual

setEmitterMode

var setEmitterMode ( var  var)
virtual

setEmitterMode

local setEmitterMode ( local  var)
virtual

setEmitterMode

virtual void setEndColor ( const ccColor4F var)
virtual

setEndColor

var setEndColor ( var  var)
virtual

setEndColor

local setEndColor ( local  var)
virtual

setEndColor

virtual void setEndColorVar ( const ccColor4F var)
virtual

setEndColorVar

var setEndColorVar ( var  var)
virtual

setEndColorVar

local setEndColorVar ( local  var)
virtual

setEndColorVar

virtual void setEndRadius ( float  endRadius)
virtual
var setEndRadius ( var  endRadius)
virtual
local setEndRadius ( local  endRadius)
virtual
virtual void setEndRadiusVar ( float  endRadiusVar)
virtual
var setEndRadiusVar ( var  endRadiusVar)
virtual
local setEndRadiusVar ( local  endRadiusVar)
virtual
virtual void setEndSize ( float  var)
virtual

setEndSize

var setEndSize ( var  var)
virtual

setEndSize

local setEndSize ( local  var)
virtual

setEndSize

virtual void setEndSizeVar ( float  var)
virtual

setEndSizeVar

var setEndSizeVar ( var  var)
virtual

setEndSizeVar

local setEndSizeVar ( local  var)
virtual

setEndSizeVar

virtual void setEndSpin ( float  var)
virtual

setEndSpin

var setEndSpin ( var  var)
virtual

setEndSpin

local setEndSpin ( local  var)
virtual

setEndSpin

virtual void setEndSpinVar ( float  var)
virtual

setEndSpinVar

var setEndSpinVar ( var  var)
virtual

setEndSpinVar

local setEndSpinVar ( local  var)
virtual

setEndSpinVar

virtual void setGravity ( const CCPoint g)
virtual
var setGravity ( var  g)
virtual
local setGravity ( local  g)
virtual
virtual void setLife ( float  var)
virtual

setLife

var setLife ( var  var)
virtual

setLife

local setLife ( local  var)
virtual

setLife

virtual void setLifeVar ( float  var)
virtual

setLifeVar

var setLifeVar ( var  var)
virtual

setLifeVar

local setLifeVar ( local  var)
virtual

setLifeVar

virtual void setOpacityModifyRGB ( bool  var)
virtual

setOpacityModifyRGB

var setOpacityModifyRGB ( var  var)
virtual

setOpacityModifyRGB

local setOpacityModifyRGB ( local  var)
virtual

setOpacityModifyRGB

virtual void setPositionType ( tCCPositionType  var)
virtual

setPositionType

var setPositionType ( var  var)
virtual

setPositionType

local setPositionType ( local  var)
virtual

setPositionType

virtual void setPosVar ( const CCPoint var)
virtual

setPosVar

var setPosVar ( var  var)
virtual

setPosVar

local setPosVar ( local  var)
virtual

setPosVar

virtual void setRadialAccel ( float  t)
virtual
var setRadialAccel ( var  t)
virtual
local setRadialAccel ( local  t)
virtual
virtual void setRadialAccelVar ( float  t)
virtual
var setRadialAccelVar ( var  t)
virtual
local setRadialAccelVar ( local  t)
virtual
virtual void setRotatePerSecond ( float  degrees)
virtual
var setRotatePerSecond ( var  degrees)
virtual
local setRotatePerSecond ( local  degrees)
virtual
virtual void setRotatePerSecondVar ( float  degrees)
virtual
var setRotatePerSecondVar ( var  degrees)
virtual
local setRotatePerSecondVar ( local  degrees)
virtual
virtual void setRotation ( float  fRotation)
virtual

Sets the rotation (angle) of the node in degrees.

0 is the default rotation angle. Positive values rotate node clockwise, and negative values for anti-clockwise.

Parameters
fRotationThe roration of the node in degrees.

Reimplemented from CCNode.

var setRotation ( var  fRotation)
virtual

Sets the rotation (angle) of the node in degrees.

0 is the default rotation angle. Positive values rotate node clockwise, and negative values for anti-clockwise.

Parameters
fRotationThe roration of the node in degrees.

Reimplemented from CCNode.

local setRotation ( local  fRotation)
virtual

Sets the rotation (angle) of the node in degrees.

0 is the default rotation angle. Positive values rotate node clockwise, and negative values for anti-clockwise.

Parameters
fRotationThe roration of the node in degrees.

Reimplemented from CCNode.

virtual void setRotationIsDir ( bool  t)
virtual
var setRotationIsDir ( var  t)
virtual
local setRotationIsDir ( local  t)
virtual
virtual void setScale ( float  scale)
virtual

Changes both X and Y scale factor of the node.

1.0 is the default scale factor. It modifies the X and Y scale at the same time.

Parameters
scaleThe scale factor for both X and Y axis.

Reimplemented from CCNode.

var setScale ( var  scale)
virtual

Changes both X and Y scale factor of the node.

1.0 is the default scale factor. It modifies the X and Y scale at the same time.

Parameters
scaleThe scale factor for both X and Y axis.

Reimplemented from CCNode.

local setScale ( local  scale)
virtual

Changes both X and Y scale factor of the node.

1.0 is the default scale factor. It modifies the X and Y scale at the same time.

Parameters
scaleThe scale factor for both X and Y axis.

Reimplemented from CCNode.

virtual void setScaleX ( float  fScaleX)
virtual

Changes the scale factor on X axis of this node.

The deafult value is 1.0 if you haven't changed it before

Parameters
fScaleXThe scale factor on X axis.

Reimplemented from CCNode.

var setScaleX ( var  fScaleX)
virtual

Changes the scale factor on X axis of this node.

The deafult value is 1.0 if you haven't changed it before

Parameters
fScaleXThe scale factor on X axis.

Reimplemented from CCNode.

local setScaleX ( local  fScaleX)
virtual

Changes the scale factor on X axis of this node.

The deafult value is 1.0 if you haven't changed it before

Parameters
fScaleXThe scale factor on X axis.

Reimplemented from CCNode.

virtual void setScaleY ( float  fScaleY)
virtual

Changes the scale factor on Y axis of this node.

The Default value is 1.0 if you haven't changed it before.

Parameters
fScaleYThe scale factor on Y axis.

Reimplemented from CCNode.

var setScaleY ( var  fScaleY)
virtual

Changes the scale factor on Y axis of this node.

The Default value is 1.0 if you haven't changed it before.

Parameters
fScaleYThe scale factor on Y axis.

Reimplemented from CCNode.

local setScaleY ( local  fScaleY)
virtual

Changes the scale factor on Y axis of this node.

The Default value is 1.0 if you haven't changed it before.

Parameters
fScaleYThe scale factor on Y axis.

Reimplemented from CCNode.

virtual void setSourcePosition ( const CCPoint var)
virtual

setSourcePosition

var setSourcePosition ( var  var)
virtual

setSourcePosition

local setSourcePosition ( local  var)
virtual

setSourcePosition

virtual void setSpeed ( float  speed)
virtual
var setSpeed ( var  speed)
virtual
local setSpeed ( local  speed)
virtual
virtual void setSpeedVar ( float  speed)
virtual
var setSpeedVar ( var  speed)
virtual
local setSpeedVar ( local  speed)
virtual
virtual void setStartColor ( const ccColor4F var)
virtual

setStartColor

var setStartColor ( var  var)
virtual

setStartColor

local setStartColor ( local  var)
virtual

setStartColor

virtual void setStartColorVar ( const ccColor4F var)
virtual

setStartColorVar

var setStartColorVar ( var  var)
virtual

setStartColorVar

local setStartColorVar ( local  var)
virtual

setStartColorVar

virtual void setStartRadius ( float  startRadius)
virtual
var setStartRadius ( var  startRadius)
virtual
local setStartRadius ( local  startRadius)
virtual
virtual void setStartRadiusVar ( float  startRadiusVar)
virtual
var setStartRadiusVar ( var  startRadiusVar)
virtual
local setStartRadiusVar ( local  startRadiusVar)
virtual
virtual void setStartSize ( float  var)
virtual

setStartSize

var setStartSize ( var  var)
virtual

setStartSize

local setStartSize ( local  var)
virtual

setStartSize

virtual void setStartSizeVar ( float  var)
virtual

setStartSizeVar

var setStartSizeVar ( var  var)
virtual

setStartSizeVar

local setStartSizeVar ( local  var)
virtual

setStartSizeVar

virtual void setStartSpin ( float  var)
virtual

setStartSpin

var setStartSpin ( var  var)
virtual

setStartSpin

local setStartSpin ( local  var)
virtual

setStartSpin

virtual void setStartSpinVar ( float  var)
virtual

setStartSpinVar

var setStartSpinVar ( var  var)
virtual

setStartSpinVar

local setStartSpinVar ( local  var)
virtual

setStartSpinVar

virtual void setTangentialAccel ( float  t)
virtual
var setTangentialAccel ( var  t)
virtual
local setTangentialAccel ( local  t)
virtual
virtual void setTangentialAccelVar ( float  t)
virtual
var setTangentialAccelVar ( var  t)
virtual
local setTangentialAccelVar ( local  t)
virtual
virtual void setTexture ( CCTexture2D var)
virtual

setTexture

Implements CCTextureProtocol.

Reimplemented in CCParticleSystemQuad.

var setTexture ( var  var)
virtual

setTexture

Implements CCTextureProtocol.

Reimplemented in CCParticleSystemQuad.

local setTexture ( local  var)
virtual

setTexture

Implements CCTextureProtocol.

Reimplemented in CCParticleSystemQuad.

virtual void setTotalParticles ( unsigned int  var)
virtual

setTotalParticles

Reimplemented in CCParticleSystemQuad.

var setTotalParticles ( var  var)
virtual

setTotalParticles

Reimplemented in CCParticleSystemQuad.

local setTotalParticles ( local  var)
virtual

setTotalParticles

Reimplemented in CCParticleSystemQuad.

void stopSystem ( )

stop emitting particles. Running particles will continue to run until they die

var stopSystem ( )

stop emitting particles. Running particles will continue to run until they die

local stopSystem ( )

stop emitting particles. Running particles will continue to run until they die

virtual void update ( float  dt)
virtual

Reimplemented from CCNode.

var update ( var  dt)
virtual

Reimplemented from CCNode.

local update ( local  dt)
virtual

Reimplemented from CCNode.

virtual void updateBlendFunc ( )
protectedvirtual
var updateBlendFunc ( )
protectedvirtual
local updateBlendFunc ( )
protectedvirtual
virtual void updateQuadWithParticle ( tCCParticle particle,
const CCPoint newPosition 
)
virtual

should be overridden by subclasses

Reimplemented in CCParticleSystemQuad.

var updateQuadWithParticle ( var  particle,
var  newPosition 
)
virtual

should be overridden by subclasses

Reimplemented in CCParticleSystemQuad.

local updateQuadWithParticle ( local  particle,
local  newPosition 
)
virtual

should be overridden by subclasses

Reimplemented in CCParticleSystemQuad.

virtual void updateWithNoTime ( void  )
virtual
var updateWithNoTime (   )
virtual
local updateWithNoTime (   )
virtual

Member Data Documentation

float endRadius

The ending radius of the particles.

Only available in 'Radius' mode.

var endRadius

The ending radius of the particles.

Only available in 'Radius' mode.

local endRadius

The ending radius of the particles.

Only available in 'Radius' mode.

float endRadiusVar

The ending radius variance of the particles.

Only available in 'Radius' mode.

var endRadiusVar

The ending radius variance of the particles.

Only available in 'Radius' mode.

local endRadiusVar

The ending radius variance of the particles.

Only available in 'Radius' mode.

virtual unsigned int
getAtlasIndex(void)\n\n public

getAtlasIndex

setAtlasIndex

var public

getAtlasIndex

setAtlasIndex

local public

getAtlasIndex

setAtlasIndex

CCPoint gravity

Gravity value.

Only available in 'Gravity' mode.

var gravity

Gravity value.

Only available in 'Gravity' mode.

local gravity

Gravity value.

Only available in 'Gravity' mode.

bool m_bIsActive

Is the emitter active.

var m_bIsActive

Is the emitter active.

local m_bIsActive

Is the emitter active.

bool m_bIsAutoRemoveOnFinish
protected

whether or not the node will be auto-removed when it has no particles left.

By default it is false.

Since
v0.8
var m_bIsAutoRemoveOnFinish
protected

whether or not the node will be auto-removed when it has no particles left.

By default it is false.

Since
v0.8
local m_bIsAutoRemoveOnFinish
protected

whether or not the node will be auto-removed when it has no particles left.

By default it is false.

Since
v0.8
bool m_bIsBlendAdditive

whether or not the particles are using blend additive.

If enabled, the following blending function will be used.

source blend function = GL_SRC_ALPHA;
dest blend function = GL_ONE;
var m_bIsBlendAdditive

whether or not the particles are using blend additive.

If enabled, the following blending function will be used.

source blend function = GL_SRC_ALPHA;
dest blend function = GL_ONE;
local m_bIsBlendAdditive

whether or not the particles are using blend additive.

If enabled, the following blending function will be used.

source blend function = GL_SRC_ALPHA;
dest blend function = GL_ONE;
bool m_bOpacityModifyRGB
protected

does the alpha value modify color

var m_bOpacityModifyRGB
protected

does the alpha value modify color

local m_bOpacityModifyRGB
protected

does the alpha value modify color

bool m_bTransformSystemDirty
var m_bTransformSystemDirty
local m_bTransformSystemDirty
tCCPositionType m_ePositionType
protected

particles movement type: Free or Grouped

Since
v0.8
var m_ePositionType
protected

particles movement type: Free or Grouped

Since
v0.8
local m_ePositionType
protected

particles movement type: Free or Grouped

Since
v0.8
float m_fAngle
protected

angle and angle variation of each particle

var m_fAngle
protected

angle and angle variation of each particle

local m_fAngle
protected

angle and angle variation of each particle

float m_fAngleVar
protected

angle variance of each particle

var m_fAngleVar
protected

angle variance of each particle

local m_fAngleVar
protected

angle variance of each particle

float m_fDuration
protected

How many seconds the emitter will run.

-1 means 'forever'

var m_fDuration
protected

How many seconds the emitter will run.

-1 means 'forever'

local m_fDuration
protected

How many seconds the emitter will run.

-1 means 'forever'

float m_fElapsed
protected

time elapsed since the start of the system (in seconds)

var m_fElapsed
protected

time elapsed since the start of the system (in seconds)

local m_fElapsed
protected

time elapsed since the start of the system (in seconds)

float m_fEmissionRate
protected

emission rate of the particles

var m_fEmissionRate
protected

emission rate of the particles

local m_fEmissionRate
protected

emission rate of the particles

float m_fEmitCounter
protected

How many particles can be emitted per second.

var m_fEmitCounter
protected

How many particles can be emitted per second.

local m_fEmitCounter
protected

How many particles can be emitted per second.

float m_fEndSize
protected

end size in pixels of each particle

var m_fEndSize
protected

end size in pixels of each particle

local m_fEndSize
protected

end size in pixels of each particle

float m_fEndSizeVar
protected

end size variance in pixels of each particle

var m_fEndSizeVar
protected

end size variance in pixels of each particle

local m_fEndSizeVar
protected

end size variance in pixels of each particle

float m_fEndSpin
protected
var m_fEndSpin
protected
local m_fEndSpin
protected
float m_fEndSpinVar
protected
var m_fEndSpinVar
protected
local m_fEndSpinVar
protected
float m_fLife
protected

life, and life variation of each particle

var m_fLife
protected

life, and life variation of each particle

local m_fLife
protected

life, and life variation of each particle

float m_fLifeVar
protected

life variance of each particle

var m_fLifeVar
protected

life variance of each particle

local m_fLifeVar
protected

life variance of each particle

float m_fStartSize
protected

start size in pixels of each particle

var m_fStartSize
protected

start size in pixels of each particle

local m_fStartSize
protected

start size in pixels of each particle

float m_fStartSizeVar
protected

size variance in pixels of each particle

var m_fStartSizeVar
protected

size variance in pixels of each particle

local m_fStartSizeVar
protected

size variance in pixels of each particle

float m_fStartSpin
protected
var m_fStartSpin
protected
local m_fStartSpin
protected
float m_fStartSpinVar
protected
var m_fStartSpinVar
protected
local m_fStartSpinVar
protected
int m_nEmitterMode
protected

Switch between different kind of emitter modes:

  • kCCParticleModeGravity: uses gravity, speed, radial and tangential acceleration
  • kCCParticleModeRadius: uses radius movement + rotation
var m_nEmitterMode
protected

Switch between different kind of emitter modes:

  • kCCParticleModeGravity: uses gravity, speed, radial and tangential acceleration
  • kCCParticleModeRadius: uses radius movement + rotation
local m_nEmitterMode
protected

Switch between different kind of emitter modes:

  • kCCParticleModeGravity: uses gravity, speed, radial and tangential acceleration
  • kCCParticleModeRadius: uses radius movement + rotation
CCParticleBatchNode* m_pBatchNode
protected

weak reference to the CCSpriteBatchNode that renders the CCSprite

var m_pBatchNode
protected

weak reference to the CCSpriteBatchNode that renders the CCSprite

local m_pBatchNode
protected

weak reference to the CCSpriteBatchNode that renders the CCSprite

tCCParticle* m_pParticles
protected

Array of particles.

var m_pParticles
protected

Array of particles.

local m_pParticles
protected

Array of particles.

CCTexture2D* m_pTexture
protected

conforms to CocosNodeTexture protocol

var m_pTexture
protected

conforms to CocosNodeTexture protocol

local m_pTexture
protected

conforms to CocosNodeTexture protocol

std::string m_sPlistFile
protected
var m_sPlistFile
protected
local m_sPlistFile
protected
ccBlendFunc m_tBlendFunc
protected

conforms to CocosNodeTexture protocol

var m_tBlendFunc
protected

conforms to CocosNodeTexture protocol

local m_tBlendFunc
protected

conforms to CocosNodeTexture protocol

ccColor4F m_tEndColor
protected

end color and end color variation of each particle

var m_tEndColor
protected

end color and end color variation of each particle

local m_tEndColor
protected

end color and end color variation of each particle

ccColor4F m_tEndColorVar
protected

end color variance of each particle

var m_tEndColorVar
protected

end color variance of each particle

local m_tEndColorVar
protected

end color variance of each particle

CCPoint m_tPosVar
protected

Position variance of the emitter.

var m_tPosVar
protected

Position variance of the emitter.

local m_tPosVar
protected

Position variance of the emitter.

CCPoint m_tSourcePosition
protected

sourcePosition of the emitter

var m_tSourcePosition
protected

sourcePosition of the emitter

local m_tSourcePosition
protected

sourcePosition of the emitter

ccColor4F m_tStartColor
protected

start color of each particle

var m_tStartColor
protected

start color of each particle

local m_tStartColor
protected

start color of each particle

ccColor4F m_tStartColorVar
protected

start color variance of each particle

var m_tStartColorVar
protected

start color variance of each particle

local m_tStartColorVar
protected

start color variance of each particle

unsigned int m_uAllocatedParticles
var m_uAllocatedParticles
local m_uAllocatedParticles
unsigned int m_uAtlasIndex
protected
var m_uAtlasIndex
protected
local m_uAtlasIndex
protected
unsigned int m_uParticleCount
protected

Quantity of particles that are being simulated at the moment.

var m_uParticleCount
protected

Quantity of particles that are being simulated at the moment.

local m_uParticleCount
protected

Quantity of particles that are being simulated at the moment.

unsigned int m_uParticleIdx
protected

particle idx

var m_uParticleIdx
protected

particle idx

local m_uParticleIdx
protected

particle idx

unsigned int m_uTotalParticles
protected

maximum particles of the system

var m_uTotalParticles
protected

maximum particles of the system

local m_uTotalParticles
protected

maximum particles of the system

struct { ... } modeA

Mode A:Gravity + Tangential Accel + Radial Accel.

struct { ... } modeA

Mode A:Gravity + Tangential Accel + Radial Accel.

struct { ... } modeA

Mode A:Gravity + Tangential Accel + Radial Accel.

struct { ... } modeB

Mode B: circular movement (gravity, radial accel and tangential accel don't are not used in this mode)

struct { ... } modeB

Mode B: circular movement (gravity, radial accel and tangential accel don't are not used in this mode)

struct { ... } modeB

Mode B: circular movement (gravity, radial accel and tangential accel don't are not used in this mode)

float radialAccel

radial acceleration of each particle.

Only available in 'Gravity' mode.

var radialAccel

radial acceleration of each particle.

Only available in 'Gravity' mode.

local radialAccel

radial acceleration of each particle.

Only available in 'Gravity' mode.

float radialAccelVar

radial acceleration variance of each particle.

Only available in 'Gravity' mode.

var radialAccelVar

radial acceleration variance of each particle.

Only available in 'Gravity' mode.

local radialAccelVar

radial acceleration variance of each particle.

Only available in 'Gravity' mode.

float rotatePerSecond

Number of degrees to rotate a particle around the source pos per second.

Only available in 'Radius' mode.

var rotatePerSecond

Number of degrees to rotate a particle around the source pos per second.

Only available in 'Radius' mode.

local rotatePerSecond

Number of degrees to rotate a particle around the source pos per second.

Only available in 'Radius' mode.

float rotatePerSecondVar

Variance in degrees for rotatePerSecond.

Only available in 'Radius' mode.

var rotatePerSecondVar

Variance in degrees for rotatePerSecond.

Only available in 'Radius' mode.

local rotatePerSecondVar

Variance in degrees for rotatePerSecond.

Only available in 'Radius' mode.

bool rotationIsDir

set the rotation of each particle to its direction Only available in 'Gravity' mode.

var rotationIsDir

set the rotation of each particle to its direction Only available in 'Gravity' mode.

local rotationIsDir

set the rotation of each particle to its direction Only available in 'Gravity' mode.

float speed

speed of each particle.

Only available in 'Gravity' mode.

var speed

speed of each particle.

Only available in 'Gravity' mode.

local speed

speed of each particle.

Only available in 'Gravity' mode.

float speedVar

speed variance of each particle.

Only available in 'Gravity' mode.

var speedVar

speed variance of each particle.

Only available in 'Gravity' mode.

local speedVar

speed variance of each particle.

Only available in 'Gravity' mode.

float startRadius

The starting radius of the particles.

Only available in 'Radius' mode.

var startRadius

The starting radius of the particles.

Only available in 'Radius' mode.

local startRadius

The starting radius of the particles.

Only available in 'Radius' mode.

float startRadiusVar

The starting radius variance of the particles.

Only available in 'Radius' mode.

var startRadiusVar

The starting radius variance of the particles.

Only available in 'Radius' mode.

local startRadiusVar

The starting radius variance of the particles.

Only available in 'Radius' mode.

float tangentialAccel

tangential acceleration of each particle.

Only available in 'Gravity' mode.

var tangentialAccel

tangential acceleration of each particle.

Only available in 'Gravity' mode.

local tangentialAccel

tangential acceleration of each particle.

Only available in 'Gravity' mode.

float tangentialAccelVar

tangential acceleration variance of each particle.

Only available in 'Gravity' mode.

var tangentialAccelVar

tangential acceleration variance of each particle.

Only available in 'Gravity' mode.

local tangentialAccelVar

tangential acceleration variance of each particle.

Only available in 'Gravity' mode.


The documentation for this class was generated from the following file: