mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Misc: Use InstanceMap* in InstanceScript instead of Map*
This commit is contained in:
@@ -48,7 +48,7 @@ BossBoundaryData::~BossBoundaryData()
|
||||
delete it->Boundary;
|
||||
}
|
||||
|
||||
InstanceScript::InstanceScript(Map* map) : instance(map), completedEncounters(0),
|
||||
InstanceScript::InstanceScript(InstanceMap* map) : instance(map), completedEncounters(0),
|
||||
_entranceId(0), _temporaryEntranceId(0), _combatResurrectionTimer(0), _combatResurrectionCharges(0), _combatResurrectionTimerStarted(false)
|
||||
{
|
||||
#ifdef TRINITY_API_USE_DYNAMIC_LINKING
|
||||
@@ -63,7 +63,7 @@ _entranceId(0), _temporaryEntranceId(0), _combatResurrectionTimer(0), _combatRes
|
||||
|
||||
void InstanceScript::SaveToDB()
|
||||
{
|
||||
if (InstanceScenario* scenario = instance->ToInstanceMap()->GetInstanceScenario())
|
||||
if (InstanceScenario* scenario = instance->GetInstanceScenario())
|
||||
scenario->SaveToDB();
|
||||
|
||||
std::string data = GetSaveData();
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
class AreaBoundary;
|
||||
class Creature;
|
||||
class GameObject;
|
||||
class Map;
|
||||
class InstanceMap;
|
||||
class ModuleReference;
|
||||
class Player;
|
||||
class Unit;
|
||||
@@ -154,11 +154,11 @@ typedef std::map<uint32 /*entry*/, uint32 /*type*/> ObjectInfoMap;
|
||||
class TC_GAME_API InstanceScript : public ZoneScript
|
||||
{
|
||||
public:
|
||||
explicit InstanceScript(Map* map);
|
||||
explicit InstanceScript(InstanceMap* map);
|
||||
|
||||
virtual ~InstanceScript() { }
|
||||
|
||||
Map* instance;
|
||||
InstanceMap* instance;
|
||||
|
||||
// On creation, NOT load.
|
||||
// PLEASE INITIALIZE FIELDS IN THE CONSTRUCTOR INSTEAD !!!
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "blackrock_caverns.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
|
||||
ObjectData const creatureData[] =
|
||||
{
|
||||
@@ -33,7 +32,7 @@ class instance_blackrock_caverns : public InstanceMapScript
|
||||
|
||||
struct instance_blackrock_caverns_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_blackrock_caverns_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_blackrock_caverns_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
|
||||
struct instance_blackrock_depths_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_blackrock_depths_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_blackrock_depths_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
memset(&encounter, 0, sizeof(encounter));
|
||||
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
|
||||
struct instance_blackwing_lair_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_blackwing_lair_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_blackwing_lair_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -47,7 +47,7 @@ class instance_molten_core : public InstanceMapScript
|
||||
|
||||
struct instance_molten_core_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_molten_core_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_molten_core_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(MAX_ENCOUNTER);
|
||||
|
||||
@@ -57,7 +57,7 @@ class instance_deadmines : public InstanceMapScript
|
||||
|
||||
struct instance_deadmines_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_deadmines_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_deadmines_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
|
||||
struct instance_gnomeregan_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_gnomeregan_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_gnomeregan_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
|
||||
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
|
||||
struct instance_karazhan_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_karazhan_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_karazhan_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -51,7 +51,7 @@ class instance_magisters_terrace : public InstanceMapScript
|
||||
|
||||
struct instance_magisters_terrace_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_magisters_terrace_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_magisters_terrace_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -35,7 +35,7 @@ class instance_scarlet_monastery : public InstanceMapScript
|
||||
|
||||
struct instance_scarlet_monastery_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_scarlet_monastery_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_scarlet_monastery_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -36,7 +36,7 @@ class instance_scholomance : public InstanceMapScript
|
||||
|
||||
struct instance_scholomance_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_scholomance_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_scholomance_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
|
||||
struct instance_shadowfang_keep_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_shadowfang_keep_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_shadowfang_keep_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
|
||||
|
||||
@@ -51,7 +51,7 @@ class instance_stratholme : public InstanceMapScript
|
||||
|
||||
struct instance_stratholme_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_stratholme_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_stratholme_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
for (uint8 i = 0; i < MAX_ENCOUNTER; ++i)
|
||||
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
|
||||
struct instance_sunken_temple_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_sunken_temple_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_sunken_temple_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
State = 0;
|
||||
|
||||
@@ -51,7 +51,7 @@ class instance_sunwell_plateau : public InstanceMapScript
|
||||
|
||||
struct instance_sunwell_plateau_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_sunwell_plateau_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_sunwell_plateau_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "the_stockade.h"
|
||||
|
||||
class instance_the_stockade : public InstanceMapScript
|
||||
@@ -27,7 +26,7 @@ public:
|
||||
|
||||
struct instance_the_stockade_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_the_stockade_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_the_stockade_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -61,7 +61,7 @@ class instance_uldaman : public InstanceMapScript
|
||||
|
||||
struct instance_uldaman_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_uldaman_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_uldaman_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include "Creature.h"
|
||||
#include "GameObject.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "zulgurub.h"
|
||||
|
||||
DoorData const doorData[] =
|
||||
@@ -40,7 +39,7 @@ class instance_zulgurub : public InstanceMapScript
|
||||
|
||||
struct instance_zulgurub_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_zulgurub_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_zulgurub_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
|
||||
struct instance_blackfathom_deeps_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_blackfathom_deeps_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_blackfathom_deeps_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
struct instance_mount_hyjal_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_mount_hyjal_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_mount_hyjal_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
LoadObjectData(creatureData, nullptr);
|
||||
|
||||
@@ -59,7 +59,7 @@ class instance_culling_of_stratholme : public InstanceMapScript
|
||||
|
||||
struct instance_culling_of_stratholme_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_culling_of_stratholme_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_culling_of_stratholme_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
|
||||
struct instance_old_hillsbrad_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_old_hillsbrad_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_old_hillsbrad_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
|
||||
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
|
||||
struct instance_the_black_morass_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_the_black_morass_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_the_black_morass_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
Clear();
|
||||
|
||||
@@ -24,7 +24,6 @@ gets instead the deserter debuff.
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
|
||||
// Bosses (East)
|
||||
// 0 - Pusillin
|
||||
@@ -58,7 +57,7 @@ public:
|
||||
|
||||
struct instance_dire_maul_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_dire_maul_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_dire_maul_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetBossNumber(EncounterCount);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ gets instead the deserter debuff.
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "maraudon.h"
|
||||
|
||||
class instance_maraudon : public InstanceMapScript
|
||||
@@ -39,7 +38,7 @@ public:
|
||||
|
||||
struct instance_maraudon_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_maraudon_InstanceMapScript(Map* map) : InstanceScript(map) { }
|
||||
instance_maraudon_InstanceMapScript(InstanceMap* map) : InstanceScript(map) { }
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
|
||||
struct instance_onyxias_lair_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_onyxias_lair_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_onyxias_lair_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -24,7 +24,6 @@ gets instead the deserter debuff.
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
|
||||
class instance_ragefire_chasm : public InstanceMapScript
|
||||
{
|
||||
@@ -38,7 +37,7 @@ public:
|
||||
|
||||
struct instance_ragefire_chasm_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_ragefire_chasm_InstanceMapScript(Map* map) : InstanceScript(map) { }
|
||||
instance_ragefire_chasm_InstanceMapScript(InstanceMap* map) : InstanceScript(map) { }
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
|
||||
struct instance_razorfen_downs_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_razorfen_downs_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_razorfen_downs_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
|
||||
struct instance_razorfen_kraul_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_razorfen_kraul_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_razorfen_kraul_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
WardKeeperDeath = 0;
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "Creature.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "ruins_of_ahnqiraj.h"
|
||||
|
||||
class instance_ruins_of_ahnqiraj : public InstanceMapScript
|
||||
@@ -28,7 +27,7 @@ class instance_ruins_of_ahnqiraj : public InstanceMapScript
|
||||
|
||||
struct instance_ruins_of_ahnqiraj_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_ruins_of_ahnqiraj_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_ruins_of_ahnqiraj_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(NUM_ENCOUNTER);
|
||||
|
||||
@@ -26,7 +26,6 @@ EndScriptData */
|
||||
#include "ScriptMgr.h"
|
||||
#include "Creature.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "temple_of_ahnqiraj.h"
|
||||
|
||||
class instance_temple_of_ahnqiraj : public InstanceMapScript
|
||||
@@ -41,7 +40,7 @@ class instance_temple_of_ahnqiraj : public InstanceMapScript
|
||||
|
||||
struct instance_temple_of_ahnqiraj_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_temple_of_ahnqiraj_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_temple_of_ahnqiraj_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
IsBossDied[0] = false;
|
||||
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
|
||||
struct instance_wailing_caverns_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_wailing_caverns_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_wailing_caverns_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
|
||||
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
|
||||
struct instance_zulfarrak_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_zulfarrak_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_zulfarrak_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
GahzRillaEncounter = NOT_STARTED;
|
||||
|
||||
@@ -53,7 +53,7 @@ class instance_stonecore : public InstanceMapScript
|
||||
|
||||
struct instance_stonecore_InstanceScript : public InstanceScript
|
||||
{
|
||||
instance_stonecore_InstanceScript(Map* map) : InstanceScript(map)
|
||||
instance_stonecore_InstanceScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(MAX_ENCOUNTER);
|
||||
|
||||
@@ -36,7 +36,7 @@ class instance_ahnkahet : public InstanceMapScript
|
||||
|
||||
struct instance_ahnkahet_InstanceScript : public InstanceScript
|
||||
{
|
||||
instance_ahnkahet_InstanceScript(Map* map) : InstanceScript(map)
|
||||
instance_ahnkahet_InstanceScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include "Creature.h"
|
||||
#include "CreatureAI.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
|
||||
DoorData const doorData[] =
|
||||
{
|
||||
@@ -64,7 +63,7 @@ class instance_azjol_nerub : public InstanceMapScript
|
||||
|
||||
struct instance_azjol_nerub_InstanceScript : public InstanceScript
|
||||
{
|
||||
instance_azjol_nerub_InstanceScript(Map* map) : InstanceScript(map)
|
||||
instance_azjol_nerub_InstanceScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "AreaBoundary.h"
|
||||
#include "Creature.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "obsidian_sanctum.h"
|
||||
|
||||
/* Obsidian Sanctum encounters:
|
||||
@@ -38,7 +37,7 @@ public:
|
||||
|
||||
struct instance_obsidian_sanctum_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_obsidian_sanctum_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_obsidian_sanctum_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
|
||||
struct instance_trial_of_the_champion_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_trial_of_the_champion_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_trial_of_the_champion_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
uiMovementDone = 0;
|
||||
|
||||
@@ -42,7 +42,7 @@ class instance_trial_of_the_crusader : public InstanceMapScript
|
||||
|
||||
struct instance_trial_of_the_crusader_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_trial_of_the_crusader_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_trial_of_the_crusader_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(MAX_ENCOUNTERS);
|
||||
|
||||
@@ -30,7 +30,7 @@ class instance_drak_tharon_keep : public InstanceMapScript
|
||||
|
||||
struct instance_drak_tharon_keep_InstanceScript : public InstanceScript
|
||||
{
|
||||
instance_drak_tharon_keep_InstanceScript(Map* map) : InstanceScript(map)
|
||||
instance_drak_tharon_keep_InstanceScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -37,7 +37,7 @@ class instance_forge_of_souls : public InstanceMapScript
|
||||
|
||||
struct instance_forge_of_souls_InstanceScript : public InstanceScript
|
||||
{
|
||||
instance_forge_of_souls_InstanceScript(Map* map) : InstanceScript(map)
|
||||
instance_forge_of_souls_InstanceScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -88,7 +88,7 @@ class instance_halls_of_reflection : public InstanceMapScript
|
||||
|
||||
struct instance_halls_of_reflection_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_halls_of_reflection_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_halls_of_reflection_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -42,7 +42,7 @@ class instance_pit_of_saron : public InstanceMapScript
|
||||
|
||||
struct instance_pit_of_saron_InstanceScript : public InstanceScript
|
||||
{
|
||||
instance_pit_of_saron_InstanceScript(Map* map) : InstanceScript(map)
|
||||
instance_pit_of_saron_InstanceScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -62,7 +62,7 @@ class instance_gundrak : public InstanceMapScript
|
||||
|
||||
struct instance_gundrak_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_gundrak_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_gundrak_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -115,7 +115,7 @@ class instance_naxxramas : public InstanceMapScript
|
||||
|
||||
struct instance_naxxramas_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_naxxramas_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_naxxramas_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
|
||||
struct instance_eye_of_eternity_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_eye_of_eternity_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_eye_of_eternity_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(MAX_ENCOUNTER);
|
||||
|
||||
@@ -36,7 +36,7 @@ class instance_nexus : public InstanceMapScript
|
||||
|
||||
struct instance_nexus_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_nexus_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_nexus_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -45,7 +45,7 @@ class instance_oculus : public InstanceMapScript
|
||||
|
||||
struct instance_oculus_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_oculus_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_oculus_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -37,7 +37,7 @@ class instance_halls_of_lightning : public InstanceMapScript
|
||||
|
||||
struct instance_halls_of_lightning_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_halls_of_lightning_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_halls_of_lightning_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -35,7 +35,7 @@ class instance_halls_of_stone : public InstanceMapScript
|
||||
|
||||
struct instance_halls_of_stone_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_halls_of_stone_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_halls_of_stone_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "Creature.h"
|
||||
#include "GameObject.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "utgarde_keep.h"
|
||||
|
||||
DoorData const doorData[] =
|
||||
@@ -43,7 +42,7 @@ class instance_utgarde_keep : public InstanceMapScript
|
||||
|
||||
struct instance_utgarde_keep_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_utgarde_keep_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_utgarde_keep_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include "Creature.h"
|
||||
#include "GameObject.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "utgarde_pinnacle.h"
|
||||
|
||||
BossBoundaryData const boundaries =
|
||||
@@ -42,7 +41,7 @@ class instance_utgarde_pinnacle : public InstanceMapScript
|
||||
|
||||
struct instance_utgarde_pinnacle_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_utgarde_pinnacle_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_utgarde_pinnacle_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "Creature.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "vault_of_archavon.h"
|
||||
|
||||
/* Vault of Archavon encounters:
|
||||
@@ -35,7 +34,7 @@ class instance_vault_of_archavon : public InstanceMapScript
|
||||
|
||||
struct instance_vault_of_archavon_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_vault_of_archavon_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_vault_of_archavon_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -197,7 +197,7 @@ class instance_violet_hold : public InstanceMapScript
|
||||
|
||||
struct instance_violet_hold_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_violet_hold_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_violet_hold_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "auchenai_crypts.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
|
||||
class instance_auchenai_crypts : public InstanceMapScript
|
||||
{
|
||||
@@ -27,7 +26,7 @@ class instance_auchenai_crypts : public InstanceMapScript
|
||||
|
||||
struct instance_auchenai_crypts_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_auchenai_crypts_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_auchenai_crypts_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "mana_tombs.h"
|
||||
#include "Map.h"
|
||||
|
||||
class instance_mana_tombs : public InstanceMapScript
|
||||
{
|
||||
@@ -27,7 +26,7 @@ class instance_mana_tombs : public InstanceMapScript
|
||||
|
||||
struct instance_mana_tombs_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_mana_tombs_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_mana_tombs_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "Creature.h"
|
||||
#include "GameObject.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "sethekk_halls.h"
|
||||
|
||||
DoorData const doorData[] =
|
||||
@@ -41,7 +40,7 @@ class instance_sethekk_halls : public InstanceMapScript
|
||||
|
||||
struct instance_sethekk_halls_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_sethekk_halls_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_sethekk_halls_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -37,7 +37,7 @@ class instance_shadow_labyrinth : public InstanceMapScript
|
||||
|
||||
struct instance_shadow_labyrinth_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_shadow_labyrinth_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_shadow_labyrinth_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include "Creature.h"
|
||||
#include "GameObject.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "ScriptedCreature.h"
|
||||
|
||||
DoorData const doorData[] =
|
||||
@@ -92,7 +91,7 @@ class instance_black_temple : public InstanceMapScript
|
||||
|
||||
struct instance_black_temple_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_black_temple_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_black_temple_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -88,7 +88,7 @@ class instance_serpent_shrine : public InstanceMapScript
|
||||
|
||||
struct instance_serpentshrine_cavern_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_serpentshrine_cavern_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_serpentshrine_cavern_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include "GameObject.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Log.h"
|
||||
#include "Map.h"
|
||||
#include "steam_vault.h"
|
||||
|
||||
class go_main_chambers_access_panel : public GameObjectScript
|
||||
@@ -61,7 +60,7 @@ class instance_steam_vault : public InstanceMapScript
|
||||
|
||||
struct instance_steam_vault_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_steam_vault_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_steam_vault_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "Creature.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "the_slave_pens.h"
|
||||
|
||||
class instance_the_slave_pens : public InstanceMapScript
|
||||
@@ -28,7 +27,7 @@ public:
|
||||
|
||||
struct instance_the_slave_pens_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_the_slave_pens_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_the_slave_pens_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
counter = DATA_FLAMECALLER_000;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ gets instead the deserter debuff.
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "the_underbog.h"
|
||||
|
||||
class instance_the_underbog : public InstanceMapScript
|
||||
@@ -39,7 +38,7 @@ public:
|
||||
|
||||
struct instance_the_underbog_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_the_underbog_InstanceMapScript(Map* map) : InstanceScript(map) { }
|
||||
instance_the_underbog_InstanceMapScript(InstanceMap* map) : InstanceScript(map) { }
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include "GameObject.h"
|
||||
#include "gruuls_lair.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
|
||||
DoorData const doorData[] =
|
||||
{
|
||||
@@ -46,7 +45,7 @@ class instance_gruuls_lair : public InstanceMapScript
|
||||
|
||||
struct instance_gruuls_lair_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_gruuls_lair_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_gruuls_lair_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -41,7 +41,7 @@ class instance_blood_furnace : public InstanceMapScript
|
||||
|
||||
struct instance_blood_furnace_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_blood_furnace_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_blood_furnace_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -36,7 +36,7 @@ class instance_ramparts : public InstanceMapScript
|
||||
|
||||
struct instance_ramparts_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_ramparts_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_ramparts_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -72,7 +72,7 @@ class instance_magtheridons_lair : public InstanceMapScript
|
||||
|
||||
struct instance_magtheridons_lair_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_magtheridons_lair_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_magtheridons_lair_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -53,7 +53,7 @@ class instance_shattered_halls : public InstanceMapScript
|
||||
|
||||
struct instance_shattered_halls_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_shattered_halls_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_shattered_halls_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -26,7 +26,6 @@ EndScriptData */
|
||||
#include "ScriptMgr.h"
|
||||
#include "Creature.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "the_eye.h"
|
||||
|
||||
/* The Eye encounters:
|
||||
@@ -58,7 +57,7 @@ class instance_the_eye : public InstanceMapScript
|
||||
|
||||
struct instance_the_eye_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_the_eye_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_the_eye_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "GameObject.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "mechanar.h"
|
||||
|
||||
static DoorData const doorData[] =
|
||||
@@ -37,7 +36,7 @@ class instance_mechanar : public InstanceMapScript
|
||||
|
||||
struct instance_mechanar_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_mechanar_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_mechanar_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include "Creature.h"
|
||||
#include "GameObject.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
|
||||
DoorData const doorData[] =
|
||||
{
|
||||
@@ -36,7 +35,7 @@ class instance_arcatraz : public InstanceMapScript
|
||||
|
||||
struct instance_arcatraz_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_arcatraz_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_arcatraz_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "Creature.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "Map.h"
|
||||
#include "the_botanica.h"
|
||||
|
||||
class instance_the_botanica : public InstanceMapScript
|
||||
@@ -28,7 +27,7 @@ class instance_the_botanica : public InstanceMapScript
|
||||
|
||||
struct instance_the_botanica_InstanceMapScript : public InstanceScript
|
||||
{
|
||||
instance_the_botanica_InstanceMapScript(Map* map) : InstanceScript(map)
|
||||
instance_the_botanica_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
|
||||
{
|
||||
SetHeaders(DataHeader);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user