summaryrefslogtreecommitdiff
path: root/src/particle.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <mana@crushnet.org>2010-03-07 20:30:38 +0100
committerPhilipp Sehmisch <mana@crushnet.org>2010-03-07 20:30:38 +0100
commit5ba23a83501dc267a0adbd17d0ae23def3acf089 (patch)
treee9c5f7ddb07d67ce55d763d0d8bdad5356debd8d /src/particle.h
parent8eafd18df42963c0aab1aef8911ce61d51448c16 (diff)
downloadmana-5ba23a83501dc267a0adbd17d0ae23def3acf089.tar.gz
mana-5ba23a83501dc267a0adbd17d0ae23def3acf089.tar.bz2
mana-5ba23a83501dc267a0adbd17d0ae23def3acf089.tar.xz
mana-5ba23a83501dc267a0adbd17d0ae23def3acf089.zip
Added a property to particle files which says if they may be resized based on the dimensions in the map file or not.
Reviewed-by: Jared Adams
Diffstat (limited to 'src/particle.h')
-rw-r--r--src/particle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/particle.h b/src/particle.h
index 87360bec..0690e8c4 100644
--- a/src/particle.h
+++ b/src/particle.h
@@ -256,6 +256,9 @@ class Particle : public Sprite
*/
void adjustEmitterSize(int w, int h);
+ void setAllowSizeAdjust(bool adjust)
+ { mAllowSizeAdjust = adjust; }
+
bool isAlive()
{ return mAlive; }
@@ -297,6 +300,7 @@ class Particle : public Sprite
std::list<Sprite*>::iterator mSpriteIterator; /**< iterator of the particle on the current map */
Emitters mChildEmitters; /**< List of child emitters. */
Particles mChildParticles; /**< List of particles controlled by this particle */
+ bool mAllowSizeAdjust; /**< Can the effect size be adjusted by the object props in the map file? */
// dynamic particle
Vector mVelocity; /**< Speed in pixels per game-tick. */