summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-11 08:08:21 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-11 08:08:21 +0000
commit222f8a034707e8f57dc0e4795462af610a911d75 (patch)
treeb3d326477ff6da6718110c0becafb51bd8c0430f /src/being.h
parentac6ed9c03198156e7ebeefc18f2ba04073d5acb8 (diff)
downloadmana-client-222f8a034707e8f57dc0e4795462af610a911d75.tar.gz
mana-client-222f8a034707e8f57dc0e4795462af610a911d75.tar.bz2
mana-client-222f8a034707e8f57dc0e4795462af610a911d75.tar.xz
mana-client-222f8a034707e8f57dc0e4795462af610a911d75.zip
Now damage and speech times are fps independent
and if they're displayed is checked in logic I also centered the speech above the player
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/being.h b/src/being.h
index 16cedb3b..6748732e 100644
--- a/src/being.h
+++ b/src/being.h
@@ -41,10 +41,7 @@ class Being {
private:
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
public:
unsigned int id;
@@ -64,6 +61,9 @@ class Being {
unsigned short hair_style, hair_color;
unsigned short weapon;
char name[24];
+ unsigned int speech_time;
+ unsigned int damage_time;
+ bool showSpeech, showDamage;
/**
* Constructor.
@@ -129,13 +129,6 @@ class Being {
* Draws the speech text above the being.
*/
void drawSpeech(Graphics *graphics);
-
- /**
- * Tick gives the being a sense of time. It should be called either a
- * specific amount of times per second, or be modified to be passed a
- * number that tells it the time since the last call.
- */
- void tick();
};
/** Add a Being to the list */