ManaPlus
Public Member Functions
AnimationParticle Class Reference

#include <animationparticle.h>

Inheritance diagram for AnimationParticle:
ImageParticle Particle Actor

Public Member Functions

 AnimationParticle (Animation *const animation)
 
 AnimationParticle (xmlNode *const animationNode, const std::string &dyePalettes)
 
- Public Member Functions inherited from ImageParticle
 ImageParticle (Image *const image)
 
void draw (Graphics *const graphics, const int offsetX, const int offsetY) const
 
void setAlpha (const float alpha)
 
- Public Member Functions inherited from Particle
 Particle ()
 
 ~Particle ()
 
void clear ()
 
bool update ()
 
void draw (Graphics *const graphics, const int offsetX, const int offsetY) const
 
int getPixelY () const
 
int getSortPixelY () const
 
ParticleaddEffect (const std::string &particleEffectFile, const int pixelX, const int pixelY, const int rotation)
 
void addEmitter (ParticleEmitter *const emitter)
 
void moveTo (const Vector &pos)
 
void moveTo (const float x, const float y)
 
void moveBy (const Vector &change)
 
void setLifetime (const int lifetime)
 
void setFadeOut (const int fadeOut)
 
void setFadeIn (const int fadeIn)
 
void setVelocity (const float x, const float y, const float z)
 
void setGravity (const float gravity)
 
void setRandomness (const int r)
 
void setBounce (const float bouncieness)
 
void setFollow (const bool follow)
 
bool doesFollow () const
 
void setDestination (Particle *const target, const float accel, const float moment)
 
void setDieDistance (const float dist)
 
void adjustEmitterSize (const int w, const int h)
 
void setAllowSizeAdjust (const bool adjust)
 
bool isAlive () const
 
void prepareToDie ()
 
bool isExtinct () const
 
void kill ()
 
void disableAutoDelete ()
 
int getNumberOfLayers () const
 
float getAlpha () const
 
void setAlpha (const float alpha)
 
virtual void setDeathEffect (const std::string &effectFile, const signed char conditions)
 
void setActor (const BeingId actor)
 
- Public Member Functions inherited from Actor
virtual ~Actor ()
 
virtual int getWidth () const
 
virtual int getHeight () const
 
const VectorgetPixelPositionF () const
 
virtual void setPixelPositionF (const Vector &pos)
 
int getPixelX () const
 
virtual int getTileX () const
 
virtual int getTileY () const
 
virtual void setMap (Map *const map)
 
const MapgetMap () const
 

Additional Inherited Members

- Data Fields inherited from Actor
int mPixelX
 
int mPixelY
 
- Static Public Attributes inherited from ImageParticle
static StringIntMap imageParticleCountByName
 
- Protected Member Functions inherited from Particle
void updateSelf ()
 
- Protected Member Functions inherited from Actor
 Actor ()
 
- Protected Attributes inherited from Particle
float mAlpha
 
int mLifetimeLeft
 
int mLifetimePast
 
int mFadeOut
 
int mFadeIn
 
Vector mVelocity
 
AliveStatusT mAlive
 
ParticleTypeT mType
 
SimpleAnimationmAnimation
 
ImagemImage
 
BeingId mActor
 
- Protected Attributes inherited from Actor
MapmMap
 
Vector mPos
 
int mYDiff
 

Detailed Description

Definition at line 33 of file animationparticle.h.

Constructor & Destructor Documentation

◆ AnimationParticle() [1/2]

AnimationParticle::AnimationParticle ( Animation *const  animation)
explicit

Definition at line 30 of file animationparticle.cpp.

30  :
31  ImageParticle(nullptr)
32 {
34  mAnimation = new SimpleAnimation(animation);
35 }
ImageParticle(Image *const image)
SimpleAnimation * mAnimation
Definition: particle.h:274
ParticleTypeT mType
Definition: particle.h:271

References ParticleType::Animation, Particle::mAnimation, and Particle::mType.

◆ AnimationParticle() [2/2]

AnimationParticle::AnimationParticle ( xmlNode *const  animationNode,
const std::string &  dyePalettes 
)

Definition at line 37 of file animationparticle.cpp.

38  :
39  ImageParticle(nullptr)
40 {
42  mAnimation = new SimpleAnimation(animationNode, dyePalettes);
43 }

References ParticleType::Animation, Particle::mAnimation, and Particle::mType.


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