From 722538cb38196237c0d503e8c07b3408c17989bc Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Fri, 8 Apr 2005 10:21:13 +0000 Subject: Created damage text seperate from speech & made it scroll. --- src/being.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index 7c816cee..10d1a47c 100644 --- a/src/being.h +++ b/src/being.h @@ -43,6 +43,10 @@ class Being { std::string speech; unsigned char speech_time; + std::string damage; + unsigned char damage_time; + float damage_y; //Y coord of damage text + public: unsigned int id; unsigned short job; @@ -90,6 +94,15 @@ class Being { */ void setSpeech(const std::string &text, int 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. + */ + void setDamage(const std::string &text, int time); + /** * Sets the hair color for this being. */ -- cgit v1.2.3-70-g09d2