diff options
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/being.h b/src/being.h index 10d1a47c..16cedb3b 100644 --- a/src/being.h +++ b/src/being.h @@ -42,10 +42,9 @@ class Being { std::list<PATH_NODE> path; std::string speech; unsigned char speech_time; - - std::string damage; - unsigned char damage_time; - float damage_y; //Y coord of damage text + std::string damage; + unsigned char damage_time; + float damage_y; // y coord of damage text public: unsigned int id; @@ -64,6 +63,7 @@ class Being { unsigned int text_x, text_y; // temp solution to fix speech position unsigned short hair_style, hair_color; unsigned short weapon; + char name[24]; /** * Constructor. @@ -102,6 +102,13 @@ class Being { * @param time The amount of time the text should stay in milliseconds. */ void setDamage(const std::string &text, int time); + + /** + * Sets the name for the being + * + * @param text The name that should appear. + */ + void setName(char *name); /** * Sets the hair color for this being. |