cocos2d-x  3.0Beta0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ParticleFire Class Reference

A fire particle system. More...

#include <CCParticleExamples.h>

Inheritance diagram for ParticleFire:
ParticleSystemQuad ParticleSystem Node TextureProtocol Object BlendProtocol

Static Public Member Functions

static ParticleFirecreate ()
local create ()
static ParticleFirecreateWithTotalParticles (int numberOfParticles)
- Static Public Member Functions inherited from ParticleSystemQuad
static ParticleSystemQuadcreate ()
 creates a Particle Emitter More...
 
local create ()
 creates a Particle Emitter More...
 
static ParticleSystemQuadcreateWithTotalParticles (int numberOfParticles)
 creates a Particle Emitter with a number of particles More...
 
local createWithTotalParticles ( local numberOfParticles)
 creates a Particle Emitter with a number of particles More...
 
static ParticleSystemQuadcreate (const std::string &filename)
 creates an initializes a ParticleSystemQuad from a plist file. More...
 
local create ( local filename)
 creates an initializes a ParticleSystemQuad from a plist file. More...
 
- Static Public Member Functions inherited from ParticleSystem
static ParticleSystemcreate (const std::string &plistFile)
 creates an initializes a ParticleSystem from a plist file. More...
 
static ParticleSystemcreateWithTotalParticles (int numberOfParticles)
 create a system with a fixed number of particles More...
 
- Static Public Member Functions inherited from Node
static Nodecreate (void)
 Allocates and initializes a node. More...
 
var create ()
 Allocates and initializes a node. More...
 
local create ()
 Allocates and initializes a node. More...
 

Protected Member Functions

 ParticleFire ()
virtual ~ParticleFire ()
bool init ()
virtual bool initWithTotalParticles (int numberOfParticles) override
 Initializes a system with a fixed number of particles. More...
 
local initWithTotalParticles ( local numberOfParticles)
 Initializes a system with a fixed number of particles. More...
 
- Protected Member Functions inherited from ParticleSystemQuad
 ParticleSystemQuad ()
virtual ~ParticleSystemQuad ()
void initIndices ()
 initializes the indices for the vertices More...
 
void initTexCoordsWithRect (const Rect &rect)
 initializes the texture with a rectangle measured Points More...
 
void setupVBOandVAO ()
void setupVBO ()
bool allocMemory ()
- Protected Member Functions inherited from ParticleSystem
 ParticleSystem ()
virtual ~ParticleSystem ()
bool init ()
 initializes a ParticleSystem More...
 
bool initWithFile (const std::string &plistFile)
 initializes a ParticleSystem from a plist file. More...
 
bool initWithDictionary (ValueMap &dictionary)
 initializes a QuadParticleSystem from a Dictionary. More...
 
bool initWithDictionary (ValueMap &dictionary, const std::string &dirname)
 initializes a particle system from a NSDictionary and the path from where to load the png More...
 
virtual void updateBlendFunc ()
- Protected Member Functions inherited from Node
 Node ()
 Node ()
 Node ()
virtual ~Node ()
local ~Node ()
void childrenAlloc (void)
 lazy allocs More...
 
var childrenAlloc ()
 lazy allocs More...
 
local childrenAlloc ()
 lazy allocs More...
 
void insertChild (Node *child, int z)
 helper that reorder a child More...
 
var insertChild ( var child, var z)
 helper that reorder a child More...
 
local insertChild ( local child, local z)
 helper that reorder a child More...
 
void detachChild (Node *child, ssize_t index, bool doCleanup)
 Removes a child, call child->onExit(), do cleanup, remove it from children array. More...
 
var detachChild ( var child, var index, var doCleanup)
 Removes a child, call child->onExit(), do cleanup, remove it from children array. More...
 
local detachChild ( local child, local index, local doCleanup)
 Removes a child, call child->onExit(), do cleanup, remove it from children array. More...
 
Point convertToWindowSpace (const Point &nodePoint) const
 Convert cocos2d coordinates to UI windows coordinate. More...
 
var convertToWindowSpace ( var nodePoint)
 Convert cocos2d coordinates to UI windows coordinate. More...
 
local convertToWindowSpace ( local nodePoint)
 Convert cocos2d coordinates to UI windows coordinate. More...
 
virtual void updateCascadeOpacity ()
virtual void disableCascadeOpacity ()
virtual void updateCascadeColor ()
virtual void disableCascadeColor ()
virtual void updateColor ()
var updateColor ()
local updateColor ()

Additional Inherited Members

- Public Types inherited from ParticleSystem
enum  Mode { GRAVITY, RADIUS }
 
enum  PositionType { FREE, RELATIVE, GROUPED }
 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. More...
 
void setTextureWithRect (Texture2D *texture, const Rect &rect)
 Sets a new texture with a rect. More...
 
void listenBackToForeground (EventCustom *event)
 listen the event that coming to foreground on Android More...
 
virtual void setTexture (Texture2D *texture) override
 Sets a new texuture. More...
 
virtual void updateQuadWithParticle (tParticle *particle, const Point &newPosition) override
 should be overridden by subclasses More...
 
virtual void postStep () override
 should be overridden by subclasses More...
 
virtual void draw () override
 Override this method to draw your own node. More...
 
virtual void setBatchNode (ParticleBatchNode *batchNode) override
virtual void setTotalParticles (int tp) override
virtual std::string getDescription () const override
 Gets the description string. More...
 
- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 
var _luaID
 Lua reference id. More...
 
local _luaID
 Lua reference id. More...
 
- Static Public Attributes inherited from Node
static const int INVALID_TAG = -1
 Default tag used for all the nodes. More...
 
var INVALID_TAG = -1
 Default tag used for all the nodes. More...
 
local INVALID_TAG = -1
 Default tag used for all the nodes. More...
 
- Protected Attributes inherited from ParticleSystemQuad
V3F_C4B_T2F_Quad_quads
GLushort * _indices
var _indices
local _indices
GLuint _VAOname
var _VAOname
local _VAOname
GLuint _buffersVBO [2]
var _buffersVBO ()
local _buffersVBO ()
kmMat4 _transformMatrix
var _transformMatrix
local _transformMatrix
QuadCommand _quadCommand

Detailed Description

A fire particle system.

Constructor & Destructor Documentation

ParticleFire ( )
inlineprotected
var ctor ( )
inlineprotected
local ParticleFire ( )
inlineprotected
virtual ~ParticleFire ( )
inlineprotectedvirtual

Member Function Documentation

static ParticleFire* create ( )
static
var create ( )
static
local create ( )
static
static ParticleFire*
createWithTotalParticles
( int  numberOfParticles)
static
var createWithTotalParticles ( var  numberOfParticles)
static
local createWithTotalParticles ( local  numberOfParticles)
static
bool init ( void  )
inlineprotectedvirtual

Reimplemented from Node.

var init (   )
inlineprotectedvirtual

Reimplemented from Node.

local init (   )
inlineprotectedvirtual

Reimplemented from Node.

virtual bool initWithTotalParticles ( int  numberOfParticles)
overrideprotectedvirtual

Initializes a system with a fixed number of particles.

Reimplemented from ParticleSystemQuad.

var initWithTotalParticles ( var  numberOfParticles)
overrideprotectedvirtual

Initializes a system with a fixed number of particles.

Reimplemented from ParticleSystemQuad.

local initWithTotalParticles ( local  numberOfParticles)
overrideprotectedvirtual

Initializes a system with a fixed number of particles.

Reimplemented from ParticleSystemQuad.


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