Public Member Functions
RotationalParticle Class Reference

#include <rotationalparticle.h>

Inheritance diagram for RotationalParticle:
ImageParticle Particle Actor

Public Member Functions

 RotationalParticle (Animation *const animation)
 RotationalParticle (const xmlNodePtr 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
BeingId mActor
- Protected Attributes inherited from Actor
Vector mPos
int mYDiff

Detailed Description

Definition at line 32 of file rotationalparticle.h.

Constructor & Destructor Documentation

◆ RotationalParticle() [1/2]

RotationalParticle::RotationalParticle ( Animation *const  animation)

Definition at line 29 of file rotationalparticle.cpp.

29  :
30  ImageParticle(nullptr)
31 {
33  mAnimation = new SimpleAnimation(animation);
34 }

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

◆ RotationalParticle() [2/2]

RotationalParticle::RotationalParticle ( const xmlNodePtr  animationNode,
const std::string &  dyePalettes 

Definition at line 36 of file rotationalparticle.cpp.

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

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

The documentation for this class was generated from the following files:
@ Rotational
Definition: particletype.h:31
ParticleTypeT mType
Definition: particle.h:270
ImageParticle(Image *const image)
Definition: imageparticle.cpp:33
Definition: simpleanimation.h:41
SimpleAnimation * mAnimation
Definition: particle.h:273