diff options
| author | megamage <none@none> | 2009-02-25 20:52:20 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-02-25 20:52:20 -0600 |
| commit | bf66375bc73c2b9dd7c2d26d7af25b111734c622 (patch) | |
| tree | 67c3cf601faf32a03d16dfe7b02b2a938ec76ae7 /src/game/Object.h | |
| parent | ccde296fd3822898e8959c009211fe880a0429f7 (diff) | |
*Update active object code. By VladimirMangos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.h')
| -rw-r--r-- | src/game/Object.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Object.h b/src/game/Object.h index 0dfb63e5997..ab3e49721b3 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -484,8 +484,8 @@ class TRINITY_DLL_SPEC WorldObject : public Object Creature* SummonCreature(uint32 id, float x, float y, float z, float ang,TempSummonType spwtype,uint32 despwtime); 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); - bool isActive() const { return m_isActive; } - void setActive(bool isActive); + bool isActiveObject() const { return m_isActive; } + void setActive(bool isActiveObject); template<class NOTIFIER> void VisitNearbyObject(const float &radius, NOTIFIER ¬ifier) const { GetMap()->VisitAll(GetPositionX(), GetPositionY(), radius, notifier); } template<class NOTIFIER> void VisitNearbyGridObject(const float &radius, NOTIFIER ¬ifier) const { GetMap()->VisitGrid(GetPositionX(), GetPositionY(), radius, notifier); } template<class NOTIFIER> void VisitNearbyWorldObject(const float &radius, NOTIFIER ¬ifier) const { GetMap()->VisitWorld(GetPositionX(), GetPositionY(), radius, notifier); } |
