diff options
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/being.h b/src/being.h index 91913385..9dda42a7 100644 --- a/src/being.h +++ b/src/being.h @@ -141,13 +141,22 @@ class Being : public Sprite void setSpeech(const std::string &text, Uint32 time); /** - * Puts a damage bubble above this being for the specified amount - * of time. + * Puts a damage bubble above this being for the specified amount of + * time. * - * @param text The text that should appear. - * @param time The amount of time the text should stay in milliseconds. + * @param amount The amount of damage. */ - void setDamage(Sint16 amount, Uint32 time); + virtual void + takeDamage(int amount); + + /** + * Handles an attack of another being by this being. + * + * @param victim The attacked being. + * @param damage The amount of damage dealt (0 means miss). + */ + virtual void + handleAttack(Being *victim, int damage); /** * Returns the name of the being. |