46 const std::string& dyePalettes = std::string());
An animation consists of several frames, each with their own delay and offset.
Defines a class for loading and storing images.
Every Particle can have one or more particle emitters that create new particles when they are updated...
Particle * mParticleTarget
ParticleEmitterProp< float > mParticlePosZ
void setTarget(Particle *target)
Sets the target of the particles that are created.
ParticleEmitterProp< int > mOutput
Number of particles spawned per update.
ParticleEmitterProp< float > mParticleAngleHorizontal
initial vector of particles:
ParticleEmitterProp< float > mParticleDieDistance
ParticleEmitterProp< int > mParticleFadeIn
std::list< ParticleEmitter > mParticleChildEmitters
List of emitters the spawned particles are equipped with.
ResourceRef< Image > mParticleImage
Particle image, if used.
char mDeathEffectConditions
ParticleEmitterProp< int > mParticleRandomness
ParticleEmitterProp< float > mParticlePower
Initial velocity of particles.
ParticleEmitterProp< int > mParticleLifetime
std::list< Particle * > createParticles(int tick)
Spawns new particles.
ParticleEmitterProp< float > mParticleAngleVertical
ParticleEmitterProp< float > mParticleAcceleration
ParticleEmitterProp< float > mParticleGravity
ParticleEmitter & operator=(const ParticleEmitter &o)
Assignment operator that calls the copy constructor.
ParticleEmitterProp< int > mParticleFadeOut
ParticleEmitterProp< float > mParticleAlpha
Opacity of the graphical representation of the particles.
Animation mParticleAnimation
Filename of particle animation file.
ParticleEmitterProp< T > readParticleEmitterProp(XML::Node propertyNode, T def)
ParticleEmitterProp< float > mParticlePosX
initial position of particles:
ParticleEmitterProp< float > mParticleBounce
Animation mParticleRotation
Filename of particle rotation file.
Map * mMap
Map the particles are spawned on.
void adjustSize(int w, int h)
Changes the size of the emitter so that the effect fills a rectangle of this size.
ParticleEmitterProp< float > mParticleMomentum
ParticleEmitterProp< float > mParticlePosY
ParticleEmitterProp< int > mOutputPause
Pause in frames between two spawns.
A particle spawned by a ParticleEmitter.
Automatically counting Resource reference.