summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-02-09 01:42:50 +0100
committerBertram <bertram@cegetel.net>2010-02-09 01:42:50 +0100
commit56f501c8148b1061a02547d37b20eeeeb64029db (patch)
tree718e48289066706bc3851830f3c6b03150e66b97 /src/being.h
parent8b4d9f9b5eaf175baf0c4209c312133bb457742c (diff)
downloadmana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.gz
mana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.bz2
mana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.xz
mana-56f501c8148b1061a02547d37b20eeeeb64029db.zip
Made the Beings' logic be able to handle any tile height/width.
This is the First step to get rid of most hardcoded 32 values.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being.h b/src/being.h
index 79bcc020..79ab1df2 100644
--- a/src/being.h
+++ b/src/being.h
@@ -285,14 +285,14 @@ class Being : public Sprite, public ConfigListener
* in pixels per second for eAthena,
* in tiles per second for Manaserv.
*/
- void setWalkSpeed(float speed) { mWalkSpeed = speed; }
+ void setWalkSpeed(Vector speed) { mWalkSpeed = speed; }
/**
* Gets the walk speed.
* in pixels per second for eAthena,
* in tiles per second for Manaserv (0.1 precision).
*/
- float getWalkSpeed() const { return mWalkSpeed; }
+ Vector getWalkSpeed() const { return mWalkSpeed; }
/**
* Sets the attack speed.
@@ -644,12 +644,12 @@ class Being : public Sprite, public ConfigListener
SpeechBubble *mSpeechBubble;
/**
- * Walk speed.
+ * Walk speed for x and y movement values.
* In pixels per second for eAthena,
* In pixels per ticks for Manaserv.
* @see MILLISECONDS_IN_A_TICK
*/
- float mWalkSpeed;
+ Vector mWalkSpeed;
Vector mPos;
Vector mDest;