diff options
author | Cedric Borgese <cedric.borgese@gmail.com> | 2005-07-22 17:27:59 +0000 |
---|---|---|
committer | Cedric Borgese <cedric.borgese@gmail.com> | 2005-07-22 17:27:59 +0000 |
commit | 5731ddbf5ef5fa1556a7c5f84c0c71865a15499b (patch) | |
tree | 967cfacdf62a8930be9691152746b6f0e6b35a6e /src/being.h | |
parent | 4333effa0e80c996c91e4014cf449c30a32120b7 (diff) | |
download | mana-5731ddbf5ef5fa1556a7c5f84c0c71865a15499b.tar.gz mana-5731ddbf5ef5fa1556a7c5f84c0c71865a15499b.tar.bz2 mana-5731ddbf5ef5fa1556a7c5f84c0c71865a15499b.tar.xz mana-5731ddbf5ef5fa1556a7c5f84c0c71865a15499b.zip |
Merge between moi1392's branch and head
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h index 990a1e4a..16273bdd 100644 --- a/src/being.h +++ b/src/being.h @@ -43,7 +43,6 @@ struct PATH_NODE { class Being { public: - unsigned int id; /**< Unique id */ unsigned short job; /**< Job (player job, npc, monster, ) */ unsigned short x, y; /**< Tile coordinates */ unsigned short destX, destY; /**< Destination tile coordinates */ @@ -57,7 +56,6 @@ class Being unsigned char emotion_time; /**< Time until emotion disappears */ unsigned int text_x, text_y; // temp solution to fix speech position - unsigned short weapon; char name[24]; /**< Name of character */ unsigned short aspd; /**< Attack speed */ @@ -156,12 +154,48 @@ class Being */ bool isMonster(); + // ACCES METHODS + + /** + * get the weapon picture id. + */ + unsigned short getWeapon() {return m_weapon;} + + /** + * get the sprite id. + */ + unsigned int getId() {return m_id;} + + // MODIFICATION METHODS + + /** + * set the weapon picture id. + * + * @param weapon : the picture id + */ + void setWeapon(unsigned short weapon); + + /** + * set the weapon picture id with the weapon id. + * + * @param weapon : the weapon id + */ + void setWeaponById(unsigned short weapon); + + /** + * set the sprite id. + */ + void setId(unsigned int id); + private: /** * Sets the new path for this being. */ void setPath(std::list<PATH_NODE> path); + unsigned short m_weapon; + unsigned int m_id; /**< Unique id */ + std::list<PATH_NODE> path; std::string speech; std::string damage; |