summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-10 18:04:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-10 19:05:04 +0300
commit307818fecbd1f258c668a1667e76e950e9d22622 (patch)
tree6a4b82e23895a5f73b648aefafc8d77247661392 /src/being.h
parent46cc993b30fe9a4da9175beb2795de91162c39fa (diff)
downloadmanaplus-307818fecbd1f258c668a1667e76e950e9d22622.tar.gz
manaplus-307818fecbd1f258c668a1667e76e950e9d22622.tar.bz2
manaplus-307818fecbd1f258c668a1667e76e950e9d22622.tar.xz
manaplus-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.h9
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; }