diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-06-23 14:44:20 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-06-23 14:44:20 +0000 |
commit | 4ec7db55c227d3c38f2358fa74ff2649d6583391 (patch) | |
tree | 20f784d7a90b1a22b377ffd0d55fb3251986b5e2 /src/particle.h | |
parent | 6e9aa693c6f07c99e5b84ee35570a14efe4df393 (diff) | |
download | mana-4ec7db55c227d3c38f2358fa74ff2649d6583391.tar.gz mana-4ec7db55c227d3c38f2358fa74ff2649d6583391.tar.bz2 mana-4ec7db55c227d3c38f2358fa74ff2649d6583391.tar.xz mana-4ec7db55c227d3c38f2358fa74ff2649d6583391.zip |
Implemented "alpha" particle property.
Diffstat (limited to 'src/particle.h')
-rw-r--r-- | src/particle.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/particle.h b/src/particle.h index 045ab9b9..5ba2668b 100644 --- a/src/particle.h +++ b/src/particle.h @@ -184,6 +184,13 @@ class Particle : public Sprite { mFadeIn = fadeIn; } /** + * Sets the alpha value of the particle + */ + void + setAlpha(float alpha) + { mAlpha = alpha; } + + /** * Sets the sprite iterator of the particle on the current map to make * it easier to remove the particle from the map when it is destroyed. */ @@ -265,6 +272,7 @@ class Particle : public Sprite int mLifetimePast; /**< Age of the particle in game ticks*/ int mFadeOut; /**< Lifetime in game ticks left where fading out begins*/ int mFadeIn; /**< Age in game ticks where fading in is finished*/ + float mAlpha; /**< Opacity of the graphical representation of the particle */ private: // generic properties |