diff options
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index 7de1cb5da4e..b4be90747cf 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1620,3 +1620,9 @@ void WorldObject::GetNearPoint(WorldObject const* searcher, float &x, float &y, UpdateGroundPositionZ(x,y,z); } + +template<class NOTIFIER> +void WorldObject::VisitNearbyObject(const float &radius, NOTIFIER ¬ifier) const +{ + GetMap()->VisitAll(GetPositionX(), GetPositionY(), radius, notifier); +}
\ No newline at end of file |