summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-03-02 23:29:28 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-03-02 23:29:28 +0000
commit58771baadb7529b0b20ca85566ab2790ca5dcd90 (patch)
tree526b458712f46fc6b9cfdcffc98e0a625f656eb6 /src/being.h
parent3ce08687bb879054f5fa93f456677246cb51afdd (diff)
downloadmana-client-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.gz
mana-client-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.bz2
mana-client-58771baadb7529b0b20ca85566ab2790ca5dcd90.tar.xz
mana-client-58771baadb7529b0b20ca85566ab2790ca5dcd90.zip
Implemented communication of being action changes.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h
index b87cacbe..3c6b14c6 100644
--- a/src/being.h
+++ b/src/being.h
@@ -67,6 +67,11 @@ class Being : public Sprite
MONSTER
};
+ /**
+ * Action the being is currently performing
+ * WARNING: Has to be in sync with the same enum in the Being class
+ * of the server!
+ */
enum Action {
STAND,
WALK,
@@ -96,7 +101,7 @@ class Being : public Sprite
std::string mName; /**< Name of character */
Uint16 mJob; /**< Job (player job, npc, monster, ) */
Uint16 mX, mY; /**< Pixel coordinates (tile center) */
- Uint8 mAction; /**< Action the being is performing */
+ Action mAction; /**< Action the being is performing */
Uint16 mWalkTime;
Uint8 mEmotion; /**< Currently showing emotion */
Uint8 mEmotionTime; /**< Time until emotion disappears */
@@ -296,7 +301,7 @@ class Being : public Sprite
* Sets the current action.
*/
virtual void
- setAction(Uint8 action);
+ setAction(Action action);
/**
* Returns the direction the being is facing.