Cocos2d-x  4.0.0
Static Public Member Functions | Protected Member Functions | List of all members
ParticleRain Class Reference

A rain particle system. More...

Inherits ParticleSystemQuad.

Static Public Member Functions

static ParticleRaincreate ()
 Create a rain particle system.
 
static ParticleRaincreateWithTotalParticles (int numberOfParticles)
 Create a rain particle system withe a fixed number of particles.
 
- Static Public Member Functions inherited from ParticleSystemQuad
static ParticleSystemQuadcreate ()
 Creates a Particle Emitter.
 
static ParticleSystemQuadcreateWithTotalParticles (int numberOfParticles)
 Creates a Particle Emitter with a number of particles.
 
static ParticleSystemQuadcreate (const std::string &filename)
 Creates an initializes a ParticleSystemQuad from a plist file.
 
static ParticleSystemQuadcreate (ValueMap &dictionary)
 Creates a Particle Emitter with a dictionary.
 
- Static Public Member Functions inherited from ParticleSystem
static ParticleSystemcreate (const std::string &plistFile)
 Creates an initializes a ParticleSystem from a plist file.
 
static ParticleSystemcreateWithTotalParticles (int numberOfParticles)
 Create a system with a fixed number of particles.
 
static Vector< ParticleSystem * > & getAllParticleSystems ()
 Gets all ParticleSystem references.
 
- Static Public Member Functions inherited from Node
static Nodecreate ()
 Allocates and initializes a node.
 
static int getAttachedNodeCount ()
 Gets count of nodes those are attached to scene graph.
 
template<typename _T >
static void sortNodes (cocos2d::Vector< _T * > &nodes)
 Sorts helper function.
 

Protected Member Functions

 ParticleRain ()
 ctor
 
virtual ~ParticleRain ()
 NA NA
 
virtual bool initWithTotalParticles (int numberOfParticles)
 NA NA
 
- Protected Member Functions inherited from ParticleSystemQuad
 ParticleSystemQuad ()
 ctor
 
virtual ~ParticleSystemQuad ()
 NA NA
 
- Protected Member Functions inherited from ParticleSystem
 ParticleSystem ()
 ctor
 
virtual ~ParticleSystem ()
 NA NA
 
bool init () override
 initializes a ParticleSystem
 
bool initWithFile (const std::string &plistFile)
 initializes a ParticleSystem from a plist file.
 
bool initWithDictionary (ValueMap &dictionary)
 initializes a QuadParticleSystem from a Dictionary.
 
bool initWithDictionary (ValueMap &dictionary, const std::string &dirname)
 initializes a particle system from a NSDictionary and the path from where to load the png
 
virtual bool isPaused () const
 Are the emissions paused.
 

Additional Inherited Members

- Public Types inherited from ParticleSystem
enum  Mode
 Mode cc.ParticleSystem.MODE_GRAVITY;.
 
enum  PositionType { , RELATIVE, GROUPED }
 PositionType Possible types of particle positions. More...
 
enum  { DURATION_INFINITY = -1, START_SIZE_EQUAL_TO_END_SIZE = -1, START_RADIUS_EQUAL_TO_END_RADIUS = -1 }
 
- Public Member Functions inherited from ParticleSystemQuad
void setDisplayFrame (SpriteFrame *spriteFrame)
 Sets a new SpriteFrame as particle.
 
void setTextureWithRect (Texture2D *texture, const Rect &rect)
 Sets a new texture with a rect.
 
void listenRendererRecreated (EventCustom *event)
 Listen the event that renderer was recreated on Android/WP8.
 
virtual void setTexture (Texture2D *texture) override
 NA NA
 
virtual void updateParticleQuads () override
 NA NA
 
virtual void draw (Renderer *renderer, const Mat4 &transform, uint32_t flags) override
 NA NA
 
virtual void setBatchNode (ParticleBatchNode *batchNode) override
 NA NA
 
virtual void setTotalParticles (int tp) override
 NA NA
 
virtual std::string getDescription () const override
 Gets the description string.
 
- Public Attributes inherited from Ref
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 
- Static Public Attributes inherited from Node
static const int INVALID_TAG = -1
 Default tag used for all the nodes.
 

Detailed Description

A rain particle system.

Member Function Documentation

static ParticleRain* create ( )
static

Create a rain particle system.

Returns
An autoreleased ParticleRain object.
static ParticleRain* createWithTotalParticles ( int  numberOfParticles)
static

Create a rain particle system withe a fixed number of particles.

Parameters
numberOfParticlesA given number of particles.
Returns
An autoreleased ParticleRain object. NA

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