[7657] Implement function for access to gameobject owned by unit and created by some spell. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
+8
-3
@@ -1430,16 +1430,20 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
|
||||
void SetNativeDisplayId(uint32 modelId) { SetUInt32Value(UNIT_FIELD_NATIVEDISPLAYID, modelId); }
|
||||
void setTransForm(uint32 spellid) { m_transform = spellid;}
|
||||
uint32 getTransForm() const { return m_transform;}
|
||||
|
||||
DynamicObject* GetDynObject(uint32 spellId, uint32 effIndex);
|
||||
DynamicObject* GetDynObject(uint32 spellId);
|
||||
void AddDynObject(DynamicObject* dynObj);
|
||||
void RemoveDynObject(uint32 spellid);
|
||||
void RemoveDynObjectWithGUID(uint64 guid) { m_dynObjGUIDs.remove(guid); }
|
||||
void RemoveAllDynObjects();
|
||||
|
||||
GameObject* GetGameObject(uint32 spellId) const;
|
||||
void AddGameObject(GameObject* gameObj);
|
||||
void RemoveGameObject(GameObject* gameObj, bool del);
|
||||
void RemoveGameObject(uint32 spellid, bool del);
|
||||
void RemoveAllGameObjects();
|
||||
DynamicObject *GetDynObject(uint32 spellId, uint32 effIndex);
|
||||
DynamicObject *GetDynObject(uint32 spellId);
|
||||
|
||||
uint32 CalculateDamage(WeaponAttackType attType, bool normalized);
|
||||
float GetAPMultiplier(WeaponAttackType attType, bool normalized);
|
||||
void ModifyAuraState(AuraState flag, bool apply);
|
||||
@@ -1582,7 +1586,8 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
|
||||
typedef std::list<uint64> DynObjectGUIDs;
|
||||
DynObjectGUIDs m_dynObjGUIDs;
|
||||
|
||||
std::list<GameObject*> m_gameObj;
|
||||
typedef std::list<GameObject*> GameObjectList;
|
||||
GameObjectList m_gameObj;
|
||||
bool m_isSorted;
|
||||
uint32 m_transform;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user