summaryrefslogtreecommitdiff
path: root/src/particle.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-06-23 14:44:20 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-06-23 14:44:20 +0000
commit4ec7db55c227d3c38f2358fa74ff2649d6583391 (patch)
tree20f784d7a90b1a22b377ffd0d55fb3251986b5e2 /src/particle.h
parent6e9aa693c6f07c99e5b84ee35570a14efe4df393 (diff)
downloadmana-client-4ec7db55c227d3c38f2358fa74ff2649d6583391.tar.gz
mana-client-4ec7db55c227d3c38f2358fa74ff2649d6583391.tar.bz2
mana-client-4ec7db55c227d3c38f2358fa74ff2649d6583391.tar.xz
mana-client-4ec7db55c227d3c38f2358fa74ff2649d6583391.zip
Implemented "alpha" particle property.
Diffstat (limited to 'src/particle.h')
-rw-r--r--src/particle.h8
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