summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-16 22:49:25 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-16 22:49:25 +0000
commit5026eca4d9818d32fe69571c1c621aa318bc4d48 (patch)
treee6bb7e0d962f4ca64f19b91c58b338eee1597aff /src/being.h
parent9ee453c73292d460eda49129beddf00d21ea81c7 (diff)
downloadmana-client-5026eca4d9818d32fe69571c1c621aa318bc4d48.tar.gz
mana-client-5026eca4d9818d32fe69571c1c621aa318bc4d48.tar.bz2
mana-client-5026eca4d9818d32fe69571c1c621aa318bc4d48.tar.xz
mana-client-5026eca4d9818d32fe69571c1c621aa318bc4d48.zip
Added new barber by Neko-mon and moved being logic into Being class.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/being.h b/src/being.h
index 8224a729..a2390f89 100644
--- a/src/being.h
+++ b/src/being.h
@@ -56,14 +56,11 @@ class Being
unsigned short speed;
unsigned char emotion;
unsigned char emotion_time;
- unsigned int text_x, text_y; // temp solution to fix speech position
+ unsigned int text_x, text_y; // temp solution to fix speech position
unsigned short weapon;
char name[24];
- unsigned int speech_time;
- unsigned int damage_time;
- bool showSpeech, showDamage;
- unsigned short aspd; // attack speed
+ unsigned short aspd; /**< Attack speed */
/**
* Constructor.
@@ -136,6 +133,11 @@ class Being
void nextStep();
/**
+ * Performs being logic.
+ */
+ void logic();
+
+ /**
* Draws the speech text above the being.
*/
void drawSpeech(Graphics *graphics);
@@ -165,6 +167,9 @@ class Being
std::string speech;
std::string damage;
unsigned short hairStyle, hairColor;
+ unsigned int speech_time;
+ unsigned int damage_time;
+ bool showSpeech, showDamage;
};
/** Add a Being to the list */