From 8d4dc1c28ee54f67c155b6759cf5776a917904ff Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sun, 30 Dec 2007 00:02:14 +0000 Subject: Added a key for targeting the nearest player character based on patches by Trinexx. Some mapping fixes at snake dungeon map. --- src/beingmanager.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/beingmanager.h') diff --git a/src/beingmanager.h b/src/beingmanager.h index 152fb640..a9d0db35 100644 --- a/src/beingmanager.h +++ b/src/beingmanager.h @@ -77,6 +77,15 @@ class BeingManager Being* findNearestLivingBeing(Uint16 x, Uint16 y, int maxdist, 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 */ -- cgit v1.2.3-70-g09d2