diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2008-12-14 03:43:37 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-14 09:13:39 -0700 |
commit | 712744c5c985a906891a41679adbe6468e82649b (patch) | |
tree | c6f49cd89cf84e00212ba655629465a6c8cf106b /src/particle.h | |
parent | ae7cd9ca453aee25ccf1f4eb277ab77144910da5 (diff) | |
download | mana-client-712744c5c985a906891a41679adbe6468e82649b.tar.gz mana-client-712744c5c985a906891a41679adbe6468e82649b.tar.bz2 mana-client-712744c5c985a906891a41679adbe6468e82649b.tar.xz mana-client-712744c5c985a906891a41679adbe6468e82649b.zip |
Fixed follow-parent of nested and being-following particle emitters
Diffstat (limited to 'src/particle.h')
-rw-r--r-- | src/particle.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/particle.h b/src/particle.h index ab08968f..8359ab55 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. |