diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-22 19:53:22 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-22 19:53:22 +0000 |
commit | 5501c96d2c17f63e03b2e36d01d2b9cf64722f56 (patch) | |
tree | 6bbfc6f41fee58d6c99a23afadcd762579580a24 /src/being.h | |
parent | 87a4e3eea7865c37d3a73c60015988673b6178b5 (diff) | |
download | mana-5501c96d2c17f63e03b2e36d01d2b9cf64722f56.tar.gz mana-5501c96d2c17f63e03b2e36d01d2b9cf64722f56.tar.bz2 mana-5501c96d2c17f63e03b2e36d01d2b9cf64722f56.tar.xz mana-5501c96d2c17f63e03b2e36d01d2b9cf64722f56.zip |
Now you can attack with right mouse button, useful when using bow, need improvements though
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/src/being.h b/src/being.h index 9e65793d..dc90942d 100644 --- a/src/being.h +++ b/src/being.h @@ -141,25 +141,43 @@ 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(); }; /** Add a Being to the list */ void add_node(Being *being); /** Return a specific id Being */ -Being *find_node(unsigned int id); +Being *findNode(unsigned int id); + +/** Return a being at specific coordinates */ +Being *findNode(unsigned short x, unsigned short y); /** Remove a Being */ void remove_node(unsigned int id); /** Find a NPC id based on its coordinates */ -unsigned int find_npc(unsigned short x, unsigned short y); +unsigned int findNpc(unsigned short x, unsigned short y); -/** Find a PC id based on its coordinates */ -unsigned int find_pc(unsigned short x, unsigned short y); +/** Find a PLAYER id based on its coordinates */ +unsigned int findPlayer(unsigned short x, unsigned short y); /** Find a MONSTER id based on its coordinates */ -unsigned int find_monster(unsigned short x, unsigned short y); +unsigned int findMonster(unsigned short x, unsigned short y); /** Sort beings in vertical order */ void sort(); |