summaryrefslogtreecommitdiff
path: root/src/particle.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2008-12-14 03:43:37 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2008-12-14 03:43:37 +0100
commit864e33db117a28256a89d03e750b38df044bee6e (patch)
tree709e71008e734ce18400721e9779da3f71f70cce /src/particle.h
parent59f441730d8dbd7574b2fe4c9a430be256449cab (diff)
downloadmana-864e33db117a28256a89d03e750b38df044bee6e.tar.gz
mana-864e33db117a28256a89d03e750b38df044bee6e.tar.bz2
mana-864e33db117a28256a89d03e750b38df044bee6e.tar.xz
mana-864e33db117a28256a89d03e750b38df044bee6e.zip
Fixed follow-parent of nested and being-following particle emitters
Diffstat (limited to 'src/particle.h')
-rw-r--r--src/particle.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/particle.h b/src/particle.h
index 2077af43..d0585192 100644
--- a/src/particle.h
+++ b/src/particle.h
@@ -127,14 +127,13 @@ class Particle : public Sprite
/**
* Sets the position in 3 dimensional space in pixels relative to map.
*/
- void setPosition(float x, float y, float z)
- { mPos.x = x; mPos.y = y; mPos.z = z; }
+ void moveTo(Vector pos)
+ { moveBy (pos - mPos);}
/**
* Sets the position in 2 dimensional space in pixels relative to map.
*/
- void setPosition(float x, float y)
- { mPos.x = x; mPos.y = y; }
+ void moveTo(float x, float y);
/**
* Returns the particle position.
@@ -144,14 +143,8 @@ class Particle : public Sprite
/**
* Changes the particle position relative
- */
- void moveBy(float x, float y, float z)
- { mPos.x += x; mPos.y += y; mPos.z += z; }
-
- void moveChildren(Vector change);
-
- void moveBy (Vector change)
- { mPos += change; }
+ */
+ void moveBy (Vector change);
/**
* Sets the time in game ticks until the particle is destroyed.