Cocos2d-x
4.0.0
|
A flower particle system. More...
Inherits ParticleSystemQuad.
Static Public Member Functions | |
static ParticleFlower * | create () |
Create a flower particle system. | |
static ParticleFlower * | createWithTotalParticles (int numberOfParticles) |
Create a flower particle system withe a fixed number of particles. | |
![]() | |
static ParticleSystemQuad * | create () |
Creates a Particle Emitter. | |
static ParticleSystemQuad * | createWithTotalParticles (int numberOfParticles) |
Creates a Particle Emitter with a number of particles. | |
static ParticleSystemQuad * | create (const std::string &filename) |
Creates an initializes a ParticleSystemQuad from a plist file. | |
static ParticleSystemQuad * | create (ValueMap &dictionary) |
Creates a Particle Emitter with a dictionary. | |
![]() | |
static ParticleSystem * | create (const std::string &plistFile) |
Creates an initializes a ParticleSystem from a plist file. | |
static ParticleSystem * | createWithTotalParticles (int numberOfParticles) |
Create a system with a fixed number of particles. | |
static Vector< ParticleSystem * > & | getAllParticleSystems () |
Gets all ParticleSystem references. | |
![]() | |
static Node * | create () |
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 | |
ParticleFlower () | |
ctor | |
virtual | ~ParticleFlower () |
NA NA | |
virtual bool | initWithTotalParticles (int numberOfParticles) |
NA NA | |
![]() | |
ParticleSystemQuad () | |
ctor | |
virtual | ~ParticleSystemQuad () |
NA NA | |
![]() | |
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 | |
![]() | |
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 } |
![]() | |
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. | |
![]() | |
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 const int | INVALID_TAG = -1 |
Default tag used for all the nodes. | |
A flower particle system.
|
static |
Create a flower particle system.
|
static |
Create a flower particle system withe a fixed number of particles.
numberOfParticles | A given number of particles. |