diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-10 18:04:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-10 19:05:04 +0300 |
commit | 307818fecbd1f258c668a1667e76e950e9d22622 (patch) | |
tree | 6a4b82e23895a5f73b648aefafc8d77247661392 /src/being.h | |
parent | 46cc993b30fe9a4da9175beb2795de91162c39fa (diff) | |
download | mv-307818fecbd1f258c668a1667e76e950e9d22622.tar.gz mv-307818fecbd1f258c668a1667e76e950e9d22622.tar.bz2 mv-307818fecbd1f258c668a1667e76e950e9d22622.tar.xz mv-307818fecbd1f258c668a1667e76e950e9d22622.zip |
Add to skills missile particle effect and hit/miss sounds.
Add to skills use effect 100000 + skillid on target.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h index 859ebf26c..7ad2199ff 100644 --- a/src/being.h +++ b/src/being.h @@ -136,7 +136,8 @@ class Being : public ActorSprite, public ConfigListener CRITICAL = 0x0a, MULTI = 0x08, REFLECT = 0x04, - FLEE = 0x0b + FLEE = 0x0b, + SKILL = 0xff }; enum Reachable @@ -253,8 +254,10 @@ class Being : public ActorSprite, public ConfigListener * @param attacker the attacking being * @param damage the amount of damage recieved (0 means miss) * @param type the attack type + * @param id skill id */ - void takeDamage(Being *attacker, int damage, AttackType type); + void takeDamage(Being *attacker, int damage, + AttackType type, int id = 0); /** * Handles an attack of another being by this being. @@ -265,6 +268,8 @@ class Being : public ActorSprite, public ConfigListener */ virtual void handleAttack(Being *victim, int damage, AttackType type); + virtual void handleSkill(Being *victim, int damage, int skillId); + const ItemInfo *getEquippedWeapon() const { return mEquippedWeapon; } |