aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.h
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-22 00:46:38 -0800
committermaximius <none@none>2009-11-22 00:46:38 -0800
commitda5c1bca546028d310bbf12340ca721146dc02f0 (patch)
tree141914dc48555e4fce0dac2376e78636a7b44968 /src/game/Object.h
parent461e8d134f9ca432349e65d96fb038269fa4127f (diff)
*Cleanup, fix a few warnings, and make the SD2 grid searchers just pass through to the standard Trinity grid searchers, as they have identical functionality. Thanks thmarth. Closes #387, #388
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.h')
-rw-r--r--src/game/Object.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Object.h b/src/game/Object.h
index 826775500d2..3d07b4625e6 100644
--- a/src/game/Object.h
+++ b/src/game/Object.h
@@ -610,11 +610,11 @@ class TRINITY_DLL_SPEC WorldObject : public Object, public WorldLocation
GameObject* SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime);
Creature* SummonTrigger(float x, float y, float z, float ang, uint32 dur, CreatureAI* (*GetAI)(Creature*) = NULL);
- Creature* FindNearestCreature(uint32 entry, float range, bool alive = true);
- GameObject* FindNearestGameObject(uint32 entry, float range);
+ Creature* FindNearestCreature(uint32 uiEntry, float fMaxSearchRange, bool bAlive = true);
+ GameObject* FindNearestGameObject(uint32 uiEntry, float fMaxSearchRange);
- void GetGameObjectListWithEntryInGrid(std::list<GameObject*>& lList, uint32 uiEntry, float fMaxSearchRange);
void GetCreatureListWithEntryInGrid(std::list<Creature*>& lList, uint32 uiEntry, float fMaxSearchRange);
+ void GetGameObjectListWithEntryInGrid(std::list<GameObject*>& lList, uint32 uiEntry, float fMaxSearchRange);
void DestroyForNearbyPlayers();