summaryrefslogtreecommitdiff
path: root/src/beingmanager.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-12-30 00:02:14 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-12-30 00:02:14 +0000
commit8d4dc1c28ee54f67c155b6759cf5776a917904ff (patch)
treeecf910e7214008c9a89f9d1bded37a8057abe1f2 /src/beingmanager.h
parent8e28cc3ac0f679cf35bc6a9ce1740ac7ae4aac47 (diff)
downloadmana-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.h9
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();