|
Mana
|
Every Particle can have one or more particle emitters that create new particles when they are updated. More...
#include <particleemitter.h>
Public Member Functions | |
| ParticleEmitter (XML::Node emitterNode, Particle *target, Map *map, int rotation=0, const std::string &dyePalettes=std::string()) | |
| ParticleEmitter (const ParticleEmitter &o) | |
| Copy Constructor (necessary for reference counting of particle images) | |
| ParticleEmitter & | operator= (const ParticleEmitter &o) |
| Assignment operator that calls the copy constructor. | |
| ~ParticleEmitter () | |
| std::list< Particle * > | createParticles (int tick) |
| Spawns new particles. | |
| void | setTarget (Particle *target) |
| Sets the target of the particles that are created. | |
| void | adjustSize (int w, int h) |
| Changes the size of the emitter so that the effect fills a rectangle of this size. | |
Private Member Functions | |
| template<typename T > | |
| ParticleEmitterProp< T > | readParticleEmitterProp (XML::Node propertyNode, T def) |
Every Particle can have one or more particle emitters that create new particles when they are updated.
Definition at line 41 of file particleemitter.h.
| ParticleEmitter::ParticleEmitter | ( | XML::Node | emitterNode, |
| Particle * | target, | ||
| Map * | map, | ||
| int | rotation = 0, |
||
| const std::string & | dyePalettes = std::string() |
||
| ) |
Definition at line 39 of file particleemitter.cpp.
| ParticleEmitter::ParticleEmitter | ( | const ParticleEmitter & | o | ) |
Copy Constructor (necessary for reference counting of particle images)
Definition at line 228 of file particleemitter.cpp.
|
default |
| void ParticleEmitter::adjustSize | ( | int | w, |
| int | h | ||
| ) |
Changes the size of the emitter so that the effect fills a rectangle of this size.
Definition at line 375 of file particleemitter.cpp.
| std::list< Particle * > ParticleEmitter::createParticles | ( | int | tick | ) |
Spawns new particles.
Definition at line 296 of file particleemitter.cpp.
| ParticleEmitter & ParticleEmitter::operator= | ( | const ParticleEmitter & | o | ) |
Assignment operator that calls the copy constructor.
Definition at line 233 of file particleemitter.cpp.
|
private |
Definition at line 271 of file particleemitter.cpp.
|
inline |
Sets the target of the particles that are created.
Definition at line 69 of file particleemitter.h.
|
private |
Definition at line 136 of file particleemitter.h.
|
private |
Definition at line 137 of file particleemitter.h.
|
private |
Map the particles are spawned on.
Definition at line 119 of file particleemitter.h.
|
private |
Number of particles spawned per update.
Definition at line 121 of file particleemitter.h.
|
private |
Pause in frames between two spawns.
Definition at line 122 of file particleemitter.h.
|
private |
Definition at line 123 of file particleemitter.h.
|
private |
Definition at line 108 of file particleemitter.h.
|
private |
Opacity of the graphical representation of the particles.
Definition at line 131 of file particleemitter.h.
|
private |
initial vector of particles:
Definition at line 89 of file particleemitter.h.
|
private |
Definition at line 89 of file particleemitter.h.
|
private |
Filename of particle animation file.
Definition at line 129 of file particleemitter.h.
|
private |
Definition at line 101 of file particleemitter.h.
|
private |
List of emitters the spawned particles are equipped with.
Definition at line 140 of file particleemitter.h.
|
private |
Definition at line 109 of file particleemitter.h.
|
private |
Definition at line 117 of file particleemitter.h.
|
private |
Definition at line 116 of file particleemitter.h.
|
private |
Definition at line 102 of file particleemitter.h.
|
private |
Definition at line 99 of file particleemitter.h.
|
private |
Particle image, if used.
Definition at line 128 of file particleemitter.h.
|
private |
Definition at line 115 of file particleemitter.h.
|
private |
Definition at line 110 of file particleemitter.h.
|
private |
initial position of particles:
Definition at line 84 of file particleemitter.h.
|
private |
Definition at line 84 of file particleemitter.h.
|
private |
Definition at line 84 of file particleemitter.h.
|
private |
Initial velocity of particles.
Definition at line 94 of file particleemitter.h.
|
private |
Definition at line 100 of file particleemitter.h.
|
private |
Filename of particle rotation file.
Definition at line 130 of file particleemitter.h.
|
private |
Definition at line 107 of file particleemitter.h.