summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-06 03:54:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-06 03:54:00 +0300
commit4fb8f9f0905038f3180f108ec56b2a326ceb3483 (patch)
tree94b221f6bc81e07d565d2828dac078f471854b81 /src/being.h
parentdf9a705c331da29cb0582539a817f68c79d4f267 (diff)
downloadmv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.gz
mv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.bz2
mv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.xz
mv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.zip
Add particle effect miss-effect-id to items and monsters.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/being.h b/src/being.h
index 379e7a179..58d3ea21c 100644
--- a/src/being.h
+++ b/src/being.h
@@ -137,7 +137,8 @@ class Being : public ActorSprite, public ConfigListener
MULTI = 0x08,
REFLECT = 0x04,
FLEE = 0x0b,
- SKILL = 0xff
+ SKILL = 0xff,
+ MISS = 0xffff // pseudo value for miss attacks
};
enum Reachable
@@ -834,6 +835,9 @@ class Being : public ActorSprite, public ConfigListener
void recalcSpritesOrder();
+ int getHitEffect(const Being *const attacker,
+ const AttackType type, const int attackId) const;
+
static uint8_t genderToInt(const Gender sex);
static Gender intToGender(uint8_t sex);