summaryrefslogtreecommitdiff
path: root/src/particle.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2008-12-14 03:43:37 +0100
committerIra Rice <irarice@gmail.com>2008-12-14 09:13:39 -0700
commit712744c5c985a906891a41679adbe6468e82649b (patch)
treec6f49cd89cf84e00212ba655629465a6c8cf106b /src/particle.h
parentae7cd9ca453aee25ccf1f4eb277ab77144910da5 (diff)
downloadmana-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.h17
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.