diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-03-23 01:27:13 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-03-23 01:27:13 +0000 |
commit | 9dd811b55587aeb76344b835006cb4a01601bb5d (patch) | |
tree | bd297391e264a09ce8467bcf780927a4cef09991 /src/beingmanager.h | |
parent | bd8a35eca8c2fa6eb33e7d9219e3fa4d287a2059 (diff) | |
download | mana-9dd811b55587aeb76344b835006cb4a01601bb5d.tar.gz mana-9dd811b55587aeb76344b835006cb4a01601bb5d.tar.bz2 mana-9dd811b55587aeb76344b835006cb4a01601bb5d.tar.xz mana-9dd811b55587aeb76344b835006cb4a01601bb5d.zip |
Merged revisions 3823,3825-3826,3829,3831-3839,3841-3842 via svnmerge from
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/branches/0.0
........
r3823 | crush_tmw | 2007-12-28 19:36:58 +0100 (Fri, 28 Dec 2007) | 1 line
Added the possibility to assign particle effects to monsters in the monster database. Added flame particle effect to fire goblin as a proof of concept.
........
r3826 | crush_tmw | 2007-12-30 01:02:14 +0100 (Sun, 30 Dec 2007) | 1 line
Added a key for targeting the nearest player character based on patches by Trinexx. Some mapping fixes at snake dungeon map.
........
r3839 | the_enemy | 2008-01-13 17:28:50 +0100 (Sun, 13 Jan 2008) | 1 line
Fixed non-default location music loading
........
r3842 | crush_tmw | 2008-01-14 11:48:13 +0100 (Mon, 14 Jan 2008) | 1 line
ixed an error in Davids last commit (couldn't compile that way).
........
Diffstat (limited to 'src/beingmanager.h')
-rw-r--r-- | src/beingmanager.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/beingmanager.h b/src/beingmanager.h index 81f85622..6792ed0e 100644 --- a/src/beingmanager.h +++ b/src/beingmanager.h @@ -56,17 +56,17 @@ class BeingManager void destroyBeing(Being *being); /** - * Return a specific id Being. + * Returns a specific id Being. */ Being* findBeing(Uint16 id); /** - * Return a being at specific coordinates. + * Returns a being at specific coordinates. */ Being* findBeing(Uint16 x, Uint16 y, Being::Type type = Being::UNKNOWN); /** - * Return a being nearest to specific coordinates. + * Returns a being nearest to specific coordinates. * * @param x X coordinate. * @param y Y coordinate. @@ -78,6 +78,15 @@ class BeingManager Being::Type type = Being::UNKNOWN); /** + * Returns a being nearest to another being. + * + * \param maxdist maximal distance. If minimal distance is larger, + * no being is returned + */ + Being* findNearestLivingBeing(Being *aroundBeing, int maxdist, + Being::Type type = Being::UNKNOWN); + + /** * Returns the whole list of beings */ Beings& getAll(); |