diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-26 00:04:45 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-26 00:04:45 +0000 |
commit | 8b0e30d3798cd5bdce2c3a34a3c384e90dceac99 (patch) | |
tree | 3fdca13a0cc138ed65b72de8cd3747cc79916818 /src/being.h | |
parent | a31ba215a3043ebd62d415a7d855a531239fb630 (diff) | |
download | mana-8b0e30d3798cd5bdce2c3a34a3c384e90dceac99.tar.gz mana-8b0e30d3798cd5bdce2c3a34a3c384e90dceac99.tar.bz2 mana-8b0e30d3798cd5bdce2c3a34a3c384e90dceac99.tar.xz mana-8b0e30d3798cd5bdce2c3a34a3c384e90dceac99.zip |
Changed keyboard control to integrate better with mouse walk, changed location
of packet.list and chatlog.txt and removed name from player chat "balloon".
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/src/being.h b/src/being.h index dc90942d..c246aeaa 100644 --- a/src/being.h +++ b/src/being.h @@ -37,13 +37,8 @@ struct PATH_NODE { unsigned short x, y; }; -class Being { - private: - std::list<PATH_NODE> path; - std::string speech; - std::string damage; - unsigned short hairStyle, hairColor; - +class Being +{ public: unsigned int id; unsigned short job; @@ -83,9 +78,9 @@ class Being { void clearPath(); /** - * Sets the new path for this being. + * Sets a new destination for this being to walk to. */ - void setPath(std::list<PATH_NODE> path); + void setDestination(int x, int y); /** * Puts a "speech balloon" above this being for the specified amount @@ -104,7 +99,7 @@ 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 * @@ -121,12 +116,12 @@ class Being { * Sets the hair style for this being. */ void setHairStyle(int style); - + /** * Gets the hair color for this being. */ unsigned short getHairColor(); - + /** * Gets the hair style for this being. */ @@ -141,21 +136,32 @@ class Being { * Draws the speech text above the being. */ void drawSpeech(Graphics *graphics); - + /** * Checks if the being is a player. */ bool isPlayer(); - + /** * Checks if the being is a npc. */ bool isNpc(); - + /** * Checks if the being is a monster. */ bool isMonster(); + + private: + /** + * Sets the new path for this being. + */ + void setPath(std::list<PATH_NODE> path); + + std::list<PATH_NODE> path; + std::string speech; + std::string damage; + unsigned short hairStyle, hairColor; }; /** Add a Being to the list */ |