summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-06-04 00:50:23 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-06-07 18:51:22 +0200
commitafa134640b2e2c7c0f28a54c8691545848795dd9 (patch)
treeb8c9f03debebc9a15de2a21f4d4a377247615c1d /src/being.h
parent9b1c970c70f30733d5d851b834a860365819409c (diff)
downloadmana-client-afa134640b2e2c7c0f28a54c8691545848795dd9.tar.gz
mana-client-afa134640b2e2c7c0f28a54c8691545848795dd9.tar.bz2
mana-client-afa134640b2e2c7c0f28a54c8691545848795dd9.tar.xz
mana-client-afa134640b2e2c7c0f28a54c8691545848795dd9.zip
Added hit effects on victims from monsters attacks.
Resolves: Mana-Mantis #336. Reviewed-by: Jaxad0127.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/being.h b/src/being.h
index 55d49620..895506e8 100644
--- a/src/being.h
+++ b/src/being.h
@@ -162,8 +162,10 @@ class Being : public ActorSprite, public EventListener
* @param attacker the attacking being
* @param damage the amount of damage recieved (0 means miss)
* @param type the attack type
+ * @param attackId the attack id (used for monsters)
*/
- void takeDamage(Being *attacker, int damage, AttackType type);
+ void takeDamage(Being *attacker, int damage,
+ AttackType type, int attackId = 1);
/**
* Handles an attack of another being by this being.