diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-30 00:02:14 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-30 00:02:14 +0000 |
commit | 8d4dc1c28ee54f67c155b6759cf5776a917904ff (patch) | |
tree | ecf910e7214008c9a89f9d1bded37a8057abe1f2 /src/beingmanager.h | |
parent | 8e28cc3ac0f679cf35bc6a9ce1740ac7ae4aac47 (diff) | |
download | mana-8d4dc1c28ee54f67c155b6759cf5776a917904ff.tar.gz mana-8d4dc1c28ee54f67c155b6759cf5776a917904ff.tar.bz2 mana-8d4dc1c28ee54f67c155b6759cf5776a917904ff.tar.xz mana-8d4dc1c28ee54f67c155b6759cf5776a917904ff.zip |
Added a key for targeting the nearest player character based on patches by Trinexx. Some mapping fixes at snake dungeon map.
Diffstat (limited to 'src/beingmanager.h')
-rw-r--r-- | src/beingmanager.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/beingmanager.h b/src/beingmanager.h index 152fb640..a9d0db35 100644 --- a/src/beingmanager.h +++ b/src/beingmanager.h @@ -78,6 +78,15 @@ class BeingManager Being::Type type = Being::UNKNOWN); /** + * Return 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(); |