summaryrefslogtreecommitdiff
path: root/src/beingmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/beingmanager.h')
-rw-r--r--src/beingmanager.h15
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();