aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp6
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 &notifier) const
+{
+ GetMap()->VisitAll(GetPositionX(), GetPositionY(), radius, notifier);
+} \ No newline at end of file