diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-07-28 18:41:43 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-07-28 18:41:43 +0200 |
commit | b176a462662c719cca6d9d444ff1c5892c7c77d3 (patch) | |
tree | 4649318094cf5e86b6f4a56b995865195e5fdde2 /src | |
parent | 1b3d4c229eadb8d982365bde21106d204b7a3159 (diff) | |
download | manaserv-b176a462662c719cca6d9d444ff1c5892c7c77d3.tar.gz manaserv-b176a462662c719cca6d9d444ff1c5892c7c77d3.tar.xz manaserv-b176a462662c719cca6d9d444ff1c5892c7c77d3.zip |
Added back the forgotten Being::attackType enum in the server.
It has to be in sync with the client, even now, and explains
the return value of the Being::getAttackType() function.
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/being.hpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/game-server/being.hpp b/src/game-server/being.hpp index f8a65c9..423e372 100644 --- a/src/game-server/being.hpp +++ b/src/game-server/being.hpp @@ -140,6 +140,20 @@ class Being : public Actor }; /** + * Moves enum for beings and actors for others players attack types. + * WARNING: Has to be in sync with the same enum in the Being class + * of the client! + */ + enum AttackType + { + HIT = 0x00, + CRITICAL = 0x0a, + MULTI = 0x08, + REFLECT = 0x04, + FLEE = 0x0b + }; + + /** * Proxy constructor. */ Being(ThingType type); @@ -253,7 +267,7 @@ class Being : public Actor * Gets the type of the attack the being is currently performing. */ virtual int getAttackType() const - { return 0; } + { return HIT; } /** * Moves the being toward its destination. |