summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h13
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);