diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-09-02 12:50:40 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-09-02 12:50:40 +0000 |
commit | 3213f41daeed034c8aa9b8be9e86796737a38a78 (patch) | |
tree | 5441dd101209774d6e7c6612281b3ef12bd941a5 /src/beingmanager.h | |
parent | f5fc009543a0a189bcde5acf91ff315dd9cd05e9 (diff) | |
download | mana-client-3213f41daeed034c8aa9b8be9e86796737a38a78.tar.gz mana-client-3213f41daeed034c8aa9b8be9e86796737a38a78.tar.bz2 mana-client-3213f41daeed034c8aa9b8be9e86796737a38a78.tar.xz mana-client-3213f41daeed034c8aa9b8be9e86796737a38a78.zip |
Applied patch by Bernard Lidicky, adding targetting nearest monster with either
keyboard or mouse. Also made clicking beings in general a bit easier (patch
applied by Bjørn Lindeijer).
Diffstat (limited to 'src/beingmanager.h')
-rw-r--r-- | src/beingmanager.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/beingmanager.h b/src/beingmanager.h index cfaf7fbf..152fb640 100644 --- a/src/beingmanager.h +++ b/src/beingmanager.h @@ -49,26 +49,35 @@ class BeingManager void setPlayer(LocalPlayer *player); /** - * Create a being and add it to the list of beings + * Create a being and add it to the list of beings. */ Being* createBeing(Uint32 id, Uint16 job); /** - * Remove a Being + * Remove a Being. */ void destroyBeing(Being *being); /** - * Return a specific id Being + * Return a specific id Being. */ Being* findBeing(Uint32 id); /** - * Return a being at specific coordinates + * Return a being at specific coordinates. */ Being* findBeing(Uint16 x, Uint16 y, Being::Type type = Being::UNKNOWN); /** + * Return a being nearest to specific coordinates. + * + * \param maxdist maximal distance. If minimal distance is larger, + * no being is returned + */ + Being* findNearestLivingBeing(Uint16 x, Uint16 y, int maxdist, + Being::Type type = Being::UNKNOWN); + + /** * Returns the whole list of beings */ Beings& getAll(); |