summaryrefslogtreecommitdiff
path: root/src/particle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle.h')
-rw-r--r--src/particle.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/particle.h b/src/particle.h
index 8aa9e5f2..0e39883b 100644
--- a/src/particle.h
+++ b/src/particle.h
@@ -266,7 +266,12 @@ class Particle : public Actor
{ mDeathEffect = effectFile; mDeathEffectConditions = conditions; }
protected:
- float mAlpha; /**< Opacity of the graphical representation of the particle */
+ /** Opacity of the graphical representation of the particle */
+ float mAlpha;
+
+ /** Calculates the current alpha transparency taking current fade status into account*/
+ float getCurrentAlpha() const;
+
int mLifetimeLeft; /**< Lifetime left in game ticks*/
int mLifetimePast; /**< Age of the particle in game ticks*/
int mFadeOut; /**< Lifetime in game ticks left where fading out begins*/