aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Object.h')
-rw-r--r--src/game/Object.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/game/Object.h b/src/game/Object.h
index 0b4b71c13a5..d54c510a646 100644
--- a/src/game/Object.h
+++ b/src/game/Object.h
@@ -98,7 +98,6 @@ enum NotifyFlags
NOTIFY_NONE = 0x00,
NOTIFY_AI_RELOCATION = 0x01,
NOTIFY_VISIBILITY_CHANGED = 0x02,
- NOTIFY_PLAYER_VISIBILITY = 0x04,
NOTIFY_ALL = 0xFF
};
@@ -656,19 +655,16 @@ class WorldObject : public Object, public WorldLocation
void GetCreatureListWithEntryInGrid(std::list<Creature*>& lList, uint32 uiEntry, float fMaxSearchRange);
void DestroyForNearbyPlayers();
- void UpdateObjectVisibility();
+ virtual void UpdateObjectVisibility(bool forced = true);
void BuildUpdate(UpdateDataMapType& );
- //new relocation and visibility system functions
+ //relocation and visibility system functions
void AddToNotify(uint16 f) { m_notifyflags |= f;}
- void RemoveFromNotify(uint16 f) { m_notifyflags &= ~f;}
bool isNeedNotify(uint16 f) const { return m_notifyflags & f;}
-
+ uint16 GetNotifyFlags() const { return m_notifyflags; }
bool NotifyExecuted(uint16 f) const { return m_executed_notifies & f;}
void SetNotified(uint16 f) { m_executed_notifies |= f;}
- void ResetNotifies(uint16 f) { m_executed_notifies |= ~f;}
void ResetAllNotifies() { m_notifyflags = 0; m_executed_notifies = 0; }
- void ResetAllNotifiesbyMask(uint16 f) { m_notifyflags &= ~f; m_executed_notifies &= ~f; }
bool isActiveObject() const { return m_isActive; }
void setActive(bool isActiveObject);