diff options
author | megamage <none@none> | 2008-12-09 23:06:16 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-09 23:06:16 -0600 |
commit | ebf6469fb4347c2065da9d32992c38c812a05e08 (patch) | |
tree | 0a91e241ef2a4add4a2a44d3544844e013bca371 /src/game/Creature.h | |
parent | 36af87fc72594b3b6e3b91e91cd29a00e1a36480 (diff) | |
parent | cc0838459a86e45ccdbaa4977e20f4233f1ff1c1 (diff) |
*Merge to solve EOL issue.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.h')
-rw-r--r-- | src/game/Creature.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/game/Creature.h b/src/game/Creature.h index 31386d3b180..457e88cc3e3 100644 --- a/src/game/Creature.h +++ b/src/game/Creature.h @@ -279,7 +279,8 @@ struct CreatureDataAddonAura struct CreatureDataAddon { uint32 guidOrEntry; - uint32 mount; + uint32 path_id; + uint32 mount; uint32 bytes0; uint32 bytes1; uint32 bytes2; @@ -616,7 +617,14 @@ class TRINITY_DLL_SPEC Creature : public Unit void GetCombatStartPosition(float &x, float &y, float &z) { x = CombatStartX; y = CombatStartY; z = CombatStartZ; } uint32 GetGlobalCooldown() const { return m_GlobalCooldown; } - protected: + + uint32 GetWaypointPath(){return m_path_id;} + void LoadPath(uint32 pathid) { m_path_id = pathid; } + + uint32 GetCurrentWaypointID(){return m_waypointID;} + void UpdateWaypointID(uint32 wpID){m_waypointID = wpID;} + + protected: bool CreateFromProto(uint32 guidlow,uint32 Entry,uint32 team, const CreatureData *data = NULL); bool InitEntry(uint32 entry, uint32 team=ALLIANCE, const CreatureData* data=NULL); @@ -666,7 +674,11 @@ class TRINITY_DLL_SPEC Creature : public Unit float CombatStartZ; private: - GridReference<Creature> m_gridRef; + //WaypointMovementGenerator vars + uint32 m_waypointID; + uint32 m_path_id; + + GridReference<Creature> m_gridRef; CreatureInfo const* m_creatureInfo; // in heroic mode can different from ObjMgr::GetCreatureTemplate(GetEntry()) }; |