summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-10 20:59:34 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-10 20:59:34 +0000
commitbb9810d704a2f81da41e99cd9a1b03593dbe3a1c (patch)
tree237a6a184397994f4f4d93db63100d4b4f1bbe18 /src/being.h
parent4b376c30487ba98ede708c5e219f4bc9d6a72951 (diff)
downloadmana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.tar.gz
mana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.tar.bz2
mana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.tar.xz
mana-bb9810d704a2f81da41e99cd9a1b03593dbe3a1c.zip
Adding player names and fixing emoticon position
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h15
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.