mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
Various Cleanups (game C-E)
This commit is contained in:
parent
f80629e307
commit
c5c09cee3c
40 changed files with 1826 additions and 1818 deletions
|
|
@ -40,7 +40,7 @@ class DynamicObject : public WorldObject
|
|||
void AddToWorld();
|
||||
void RemoveFromWorld();
|
||||
|
||||
bool Create(uint32 guidlow, Unit *caster, uint32 spellId, SpellEffectIndex effIndex, float x, float y, float z, int32 duration, float radius, DynamicObjectType type);
|
||||
bool Create(uint32 guidlow, Unit* caster, uint32 spellId, SpellEffectIndex effIndex, float x, float y, float z, int32 duration, float radius, DynamicObjectType type);
|
||||
void Update(uint32 update_diff, uint32 p_time) override;
|
||||
void Delete();
|
||||
uint32 GetSpellId() const { return m_spellId; }
|
||||
|
|
@ -50,9 +50,9 @@ class DynamicObject : public WorldObject
|
|||
Unit* GetCaster() const;
|
||||
float GetRadius() const { return m_radius; }
|
||||
DynamicObjectType GetType() const { return (DynamicObjectType)GetByteValue(DYNAMICOBJECT_BYTES,0); }
|
||||
bool IsAffecting(Unit *unit) const { return m_affected.find(unit->GetObjectGuid()) != m_affected.end(); }
|
||||
void AddAffected(Unit *unit) { m_affected.insert(unit->GetObjectGuid()); }
|
||||
void RemoveAffected(Unit *unit) { m_affected.erase(unit->GetObjectGuid()); }
|
||||
bool IsAffecting(Unit* unit) const { return m_affected.find(unit->GetObjectGuid()) != m_affected.end(); }
|
||||
void AddAffected(Unit* unit) { m_affected.insert(unit->GetObjectGuid()); }
|
||||
void RemoveAffected(Unit* unit) { m_affected.erase(unit->GetObjectGuid()); }
|
||||
void Delay(int32 delaytime);
|
||||
|
||||
bool IsHostileTo(Unit const* unit) const;
|
||||
|
|
@ -65,7 +65,7 @@ class DynamicObject : public WorldObject
|
|||
|
||||
bool isVisibleForInState(Player const* u, WorldObject const* viewPoint, bool inVisibleList) const;
|
||||
|
||||
GridReference<DynamicObject> &GetGridRef() { return m_gridRef; }
|
||||
GridReference<DynamicObject>& GetGridRef() { return m_gridRef; }
|
||||
|
||||
protected:
|
||||
uint32 m_spellId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue