summaryrefslogtreecommitdiff
path: root/src/particle/particle.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-31 21:28:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-31 21:28:31 +0300
commit627e8fbd919f346e4e45ef192b516faf8b11d4ac (patch)
treea6214ee06461547116ee66d26a49cd0c07595d5f /src/particle/particle.h
parentdd22711fd400dc1d55c54b18bd37dd5d7630b966 (diff)
downloadplus-627e8fbd919f346e4e45ef192b516faf8b11d4ac.tar.gz
plus-627e8fbd919f346e4e45ef192b516faf8b11d4ac.tar.bz2
plus-627e8fbd919f346e4e45ef192b516faf8b11d4ac.tar.xz
plus-627e8fbd919f346e4e45ef192b516faf8b11d4ac.zip
Move particle alivestatus into enums directory.
Diffstat (limited to 'src/particle/particle.h')
-rw-r--r--src/particle/particle.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/particle/particle.h b/src/particle/particle.h
index 00f5f6313..f23b5e263 100644
--- a/src/particle/particle.h
+++ b/src/particle/particle.h
@@ -25,6 +25,8 @@
#include "being/actor.h"
+#include "enums/particle/alivestatus.h"
+
#include "localconsts.h"
class Color;
@@ -45,16 +47,6 @@ typedef Emitters::const_iterator EmitterConstIterator;
class Particle notfinal : public Actor
{
public:
- enum AliveStatus
- {
- ALIVE = 0,
- DEAD_TIMEOUT = 1,
- DEAD_FLOOR = 2,
- DEAD_SKY = 4,
- DEAD_IMPACT = 8,
- DEAD_OTHER = 16,
- DEAD_LONG_AGO = 128
- };
static const float PARTICLE_SKY; // Maximum Z position of particles
static int fastPhysics; // Mode of squareroot calculation
static int particleCount; // Current number of particles
@@ -249,7 +241,7 @@ class Particle notfinal : public Actor
{ mAllowSizeAdjust = adjust; }
bool isAlive() const restrict2 A_WARN_UNUSED
- { return mAlive == ALIVE; }
+ { return mAlive == AliveStatus::ALIVE; }
void prepareToDie() restrict2;
@@ -263,7 +255,7 @@ class Particle notfinal : public Actor
* Manually marks the particle for deletion.
*/
void kill() restrict2
- { mAlive = DEAD_OTHER; mAutoDelete = true; }
+ { mAlive = AliveStatus::DEAD_OTHER; mAutoDelete = true; }
/**
* After calling this function the particle will only request
@@ -306,7 +298,7 @@ class Particle notfinal : public Actor
Vector mVelocity;
// Is the particle supposed to be drawn and updated?
- AliveStatus mAlive;
+ AliveStatusT mAlive;
private:
// List of child emitters.
Emitters mChildEmitters;