diff options
-rw-r--r-- | src/server/game/AI/CoreAI/GameObjectAI.cpp | 6 | ||||
-rw-r--r-- | src/server/game/AI/CoreAI/GameObjectAI.h | 5 | ||||
-rw-r--r-- | src/server/game/AI/CoreAI/UnitAI.cpp | 6 | ||||
-rw-r--r-- | src/server/game/AI/CoreAI/UnitAI.h | 4 | ||||
-rw-r--r-- | src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h | 2 | ||||
-rw-r--r-- | src/server/scripts/Kalimdor/ZulFarrak/zulfarrak.cpp | 1 | ||||
-rw-r--r-- | src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp | 1 |
7 files changed, 20 insertions, 5 deletions
diff --git a/src/server/game/AI/CoreAI/GameObjectAI.cpp b/src/server/game/AI/CoreAI/GameObjectAI.cpp index 7d199feeebe..48caa63dbce 100644 --- a/src/server/game/AI/CoreAI/GameObjectAI.cpp +++ b/src/server/game/AI/CoreAI/GameObjectAI.cpp @@ -18,6 +18,7 @@ #include "GameObjectAI.h" #include "CreatureAI.h" #include "GameObject.h" +#include "QuestDef.h" //GameObjectAI::GameObjectAI(GameObject* g) : go(g) { } int GameObjectAI::Permissible(const GameObject* go) @@ -27,6 +28,11 @@ int GameObjectAI::Permissible(const GameObject* go) return PERMIT_BASE_NO; } +uint32 GameObjectAI::GetDialogStatus(Player* /*player*/) +{ + return DIALOG_STATUS_SCRIPTED_NO_STATUS; +} + NullGameObjectAI::NullGameObjectAI(GameObject* g) : GameObjectAI(g) { } int NullGameObjectAI::Permissible(GameObject const* /*go*/) diff --git a/src/server/game/AI/CoreAI/GameObjectAI.h b/src/server/game/AI/CoreAI/GameObjectAI.h index 3c163f1535e..655035d505b 100644 --- a/src/server/game/AI/CoreAI/GameObjectAI.h +++ b/src/server/game/AI/CoreAI/GameObjectAI.h @@ -19,10 +19,11 @@ #define TRINITY_GAMEOBJECTAI_H #include "Define.h" -#include "QuestDef.h" #include <list> class GameObject; +class Player; +class Quest; class SpellInfo; class Unit; @@ -63,7 +64,7 @@ class TC_GAME_API GameObjectAI virtual void QuestReward(Player* /*player*/, Quest const* /*quest*/, uint32 /*opt*/) { } // Called when the dialog status between a player and the gameobject is requested. - virtual uint32 GetDialogStatus(Player* /*player*/) { return DIALOG_STATUS_SCRIPTED_NO_STATUS; } + virtual uint32 GetDialogStatus(Player* player); virtual void Destroyed(Player* /*player*/, uint32 /*eventId*/) { } virtual void Damaged(Player* /*player*/, uint32 /*eventId*/) { } diff --git a/src/server/game/AI/CoreAI/UnitAI.cpp b/src/server/game/AI/CoreAI/UnitAI.cpp index 124361f0c07..14b162ca4a6 100644 --- a/src/server/game/AI/CoreAI/UnitAI.cpp +++ b/src/server/game/AI/CoreAI/UnitAI.cpp @@ -20,6 +20,7 @@ #include "CreatureAIImpl.h" #include "MotionMaster.h" #include "Player.h" +#include "QuestDef.h" #include "Spell.h" #include "SpellAuraEffects.h" #include "SpellAuras.h" @@ -241,6 +242,11 @@ void UnitAI::FillAISpellInfo() } } +uint32 UnitAI::GetDialogStatus(Player* /*player*/) +{ + return DIALOG_STATUS_SCRIPTED_NO_STATUS; +} + ThreatManager& UnitAI::GetThreatManager() { return me->getThreatManager(); diff --git a/src/server/game/AI/CoreAI/UnitAI.h b/src/server/game/AI/CoreAI/UnitAI.h index 2a9787d5a0d..ac5e9165715 100644 --- a/src/server/game/AI/CoreAI/UnitAI.h +++ b/src/server/game/AI/CoreAI/UnitAI.h @@ -22,7 +22,6 @@ #include "EventMap.h" #include "ObjectGuid.h" #include "ThreatManager.h" -#include "QuestDef.h" #define CAST_AI(a, b) (dynamic_cast<a*>(b)) #define ENSURE_AI(a,b) (EnsureAI<a>(b)) @@ -293,8 +292,7 @@ class TC_GAME_API UnitAI virtual void OnGameEvent(bool /*start*/, uint16 /*eventId*/) { } // Called when the dialog status between a player and the creature is requested. - virtual uint32 GetDialogStatus(Player* /*player*/) { return DIALOG_STATUS_SCRIPTED_NO_STATUS; } - + virtual uint32 GetDialogStatus(Player* player); private: UnitAI(UnitAI const& right) = delete; diff --git a/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h b/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h index 4815e6ac7ac..af73d4bc5b0 100644 --- a/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h +++ b/src/server/scripts/EasternKingdoms/SunkenTemple/sunken_temple.h @@ -18,6 +18,8 @@ #ifndef DEF_SUNKEN_TEMPLE_H #define DEF_SUNKEN_TEMPLE_H +#include "CreatureAIImpl.h" + #define STScriptName "instance_sunken_temple" #define DataHeader "ST" diff --git a/src/server/scripts/Kalimdor/ZulFarrak/zulfarrak.cpp b/src/server/scripts/Kalimdor/ZulFarrak/zulfarrak.cpp index 70689d7badf..6b74f7d0221 100644 --- a/src/server/scripts/Kalimdor/ZulFarrak/zulfarrak.cpp +++ b/src/server/scripts/Kalimdor/ZulFarrak/zulfarrak.cpp @@ -30,6 +30,7 @@ EndContentData */ #include "ScriptMgr.h" #include "GameObject.h" #include "InstanceScript.h" +#include "Map.h" #include "MotionMaster.h" #include "ObjectAccessor.h" #include "Player.h" diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp index f6fa82bed61..7be82bc4cf1 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp @@ -22,6 +22,7 @@ #include "InstanceScript.h" #include "MotionMaster.h" #include "ObjectAccessor.h" +#include "Player.h" #include "ScriptedCreature.h" #include "ScriptedGossip.h" #include "SpellInfo.h" |