diff options
author | Aaron Marks <nymacro@gmail.com> | 2005-04-08 10:21:13 +0000 |
---|---|---|
committer | Aaron Marks <nymacro@gmail.com> | 2005-04-08 10:21:13 +0000 |
commit | 722538cb38196237c0d503e8c07b3408c17989bc (patch) | |
tree | 851430d69fc7d7926adc7bfc3e94723999795609 /src/being.h | |
parent | 7c2c4d75a1f459b46c08883c282af0afb61fceb9 (diff) | |
download | mana-722538cb38196237c0d503e8c07b3408c17989bc.tar.gz mana-722538cb38196237c0d503e8c07b3408c17989bc.tar.bz2 mana-722538cb38196237c0d503e8c07b3408c17989bc.tar.xz mana-722538cb38196237c0d503e8c07b3408c17989bc.zip |
Created damage text seperate from speech & made it scroll.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 13 |
1 files changed, 13 insertions, 0 deletions
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; @@ -91,6 +95,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. */ void setHairColor(int color); |