ManaPlus
|
#include <particlelist.h>
Public Member Functions | |
ParticleList (ParticleContainer *const parent, const bool delParent) | |
~ParticleList () | |
void | addLocally (Particle *const particle) |
void | removeLocally (const Particle *const particle) |
void | clearLocally () |
void | moveTo (const float x, const float y) |
size_t | size () const |
Public Member Functions inherited from ParticleContainer | |
ParticleContainer (ParticleContainer *const parent, const bool delParent) | |
virtual | ~ParticleContainer () |
void | clear () |
Protected Attributes | |
std::list< Particle * > | mElements |
size_t | mSize |
Protected Attributes inherited from ParticleContainer | |
ParticleContainer * | mNext |
bool | mDelParent |
Linked list of particle effects.
Definition at line 38 of file particlelist.h.
ParticleList::ParticleList | ( | ParticleContainer *const | parent, |
const bool | delParent | ||
) |
Definition at line 35 of file particlelist.cpp.
ParticleList::~ParticleList | ( | ) |
Definition at line 42 of file particlelist.cpp.
void ParticleList::addLocally | ( | Particle *const | particle | ) |
Takes control of and adds a particle
Definition at line 46 of file particlelist.cpp.
References mElements, and mSize.
Referenced by ActorSprite::controlAutoParticle(), and ActorSprite::controlCustomParticle().
|
virtual |
Kills and removes all particle effects (only in this container)
Reimplemented from ParticleContainer.
Definition at line 75 of file particlelist.cpp.
|
virtual |
Sets the positions of all elements
Reimplemented from ParticleContainer.
Definition at line 87 of file particlelist.cpp.
References Particle::isExtinct(), Particle::kill(), mElements, ParticleContainer::moveTo(), Particle::moveTo(), mSize, x, and y.
Referenced by ActorSprite::logic().
void ParticleList::removeLocally | ( | const Particle *const | particle | ) |
‘kills’ and removes a particle
Definition at line 55 of file particlelist.cpp.
References Particle::kill(), mElements, mSize, and Particle::prepareToDie().
Referenced by ActorSprite::controlParticleDeleted(), Being::recreateItemParticles(), Being::removeSpecialEffect(), and LocalPlayer::setTestParticle().
|
inline |
Definition at line 62 of file particlelist.h.
References mSize.
Referenced by ActorSprite::getParticlesCount().
|
protected |
Contained particle effects
Definition at line 66 of file particlelist.h.
Referenced by addLocally(), clearLocally(), moveTo(), and removeLocally().
|
protected |
Definition at line 67 of file particlelist.h.
Referenced by addLocally(), clearLocally(), moveTo(), removeLocally(), and size().