Scripts/Misc: Use InstanceMap* in InstanceScript instead of Map* (#25655)

# Conflicts:
#	src/server/game/Instances/InstanceScript.cpp
#	src/server/game/Instances/InstanceScript.h
#	src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockCaverns/instance_blackrock_caverns.cpp
#	src/server/scripts/EasternKingdoms/MagistersTerrace/instance_magisters_terrace.cpp
#	src/server/scripts/EasternKingdoms/TheStockade/instance_the_stockade.cpp
#	src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp
#	src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/instance_culling_of_stratholme.cpp
#	src/server/scripts/Maelstrom/Stonecore/instance_stonecore.cpp
#	src/server/scripts/Outland/BlackTemple/instance_black_temple.cpp

Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
Ovah
2020-11-17 19:45:13 +01:00
committed by GitHub
parent e6b945eabc
commit 850b88546f
71 changed files with 73 additions and 95 deletions

View File

@@ -45,7 +45,7 @@ BossBoundaryData::~BossBoundaryData()
delete it->Boundary;
}
InstanceScript::InstanceScript(Map* map) : instance(map), completedEncounters(0), _instanceSpawnGroups(sObjectMgr->GetSpawnGroupsForInstance(map->GetId()))
InstanceScript::InstanceScript(InstanceMap* map) : instance(map), completedEncounters(0), _instanceSpawnGroups(sObjectMgr->GetSpawnGroupsForInstance(map->GetId()))
{
#ifdef TRINITY_API_USE_DYNAMIC_LINKING
uint32 scriptId = sObjectMgr->GetInstanceTemplate(map->GetId())->ScriptId;

View File

@@ -42,8 +42,8 @@ namespace WorldPackets
class AreaBoundary;
class Creature;
class GameObject;
class InstanceMap;
struct InstanceSpawnGroupInfo;
class Map;
class ModuleReference;
class Player;
class Unit;
@@ -155,11 +155,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 instance load, exactly ONE of these methods will ALWAYS be called:
// if we're starting without any saved instance data

View File

@@ -90,7 +90,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));

View File

@@ -79,7 +79,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);

View File

@@ -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);

View File

@@ -59,7 +59,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);
SetBossNumber(EncounterCount);

View File

@@ -36,7 +36,7 @@ public:
struct instance_gnomeregan_InstanceMapScript : public InstanceScript
{
instance_gnomeregan_InstanceMapScript(Map* map) : InstanceScript(map)
instance_gnomeregan_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
SetBossNumber(MAX_ENCOUNTER);

View File

@@ -63,7 +63,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);

View File

@@ -53,7 +53,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);

View File

@@ -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);

View File

@@ -67,7 +67,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));

View File

@@ -56,7 +56,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);

View File

@@ -69,7 +69,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;

View File

@@ -73,7 +73,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);

View File

@@ -24,7 +24,6 @@ gets instead the deserter debuff.
#include "ScriptMgr.h"
#include "InstanceScript.h"
#include "Map.h"
class instance_the_stockade : public InstanceMapScript
{
@@ -38,7 +37,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) { }
};
};

View File

@@ -60,7 +60,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));

View File

@@ -103,7 +103,7 @@ class instance_zulaman : public InstanceMapScript
struct instance_zulaman_InstanceMapScript : public InstanceScript
{
instance_zulaman_InstanceMapScript(Map* map) : InstanceScript(map)
instance_zulaman_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
SetBossNumber(MAX_ENCOUNTER);

View File

@@ -18,7 +18,6 @@
#include "zulgurub.h"
#include "GameObject.h"
#include "InstanceScript.h"
#include "Map.h"
#include "ScriptMgr.h"
DoorData const doorData[] =
@@ -52,7 +51,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);

View File

@@ -65,7 +65,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);

View File

@@ -62,7 +62,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);

View File

@@ -268,7 +268,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), _currentState(JUST_STARTED), _infiniteGuardianTimeout(0), _waveCount(0), _currentSpawnLoc(0)
instance_culling_of_stratholme_InstanceMapScript(InstanceMap* map) : InstanceScript(map), _currentState(JUST_STARTED), _infiniteGuardianTimeout(0), _waveCount(0), _currentSpawnLoc(0)
{
SetHeaders(DataHeader);
SetBossNumber(EncounterCount);

View File

@@ -53,7 +53,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));

View File

@@ -81,7 +81,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();

View File

@@ -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);
}

View File

@@ -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) { }
};
};

View File

@@ -47,7 +47,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);

View File

@@ -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) { }
};
};

View File

@@ -53,7 +53,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);

View File

@@ -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;

View File

@@ -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);

View File

@@ -25,7 +25,6 @@ EndScriptData */
#include "ScriptMgr.h"
#include "Creature.h"
#include "InstanceScript.h"
#include "Map.h"
#include "temple_of_ahnqiraj.h"
ObjectData const creatureData[] =
@@ -61,7 +60,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);
LoadObjectData(creatureData, nullptr);

View File

@@ -43,7 +43,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));

View File

@@ -111,7 +111,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;

View File

@@ -59,7 +59,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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);
SetBossNumber(ToCEncounterCount);

View File

@@ -100,7 +100,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(EncounterCount);

View File

@@ -29,7 +29,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);

View File

@@ -36,7 +36,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);

View File

@@ -84,7 +84,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);

View File

@@ -43,7 +43,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);

View File

@@ -64,7 +64,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);

View File

@@ -112,7 +112,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);

View File

@@ -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);

View File

@@ -30,7 +30,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);

View File

@@ -43,7 +43,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);

View File

@@ -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);

View File

@@ -36,7 +36,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);

View File

@@ -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);

View File

@@ -19,7 +19,6 @@
#include "AreaBoundary.h"
#include "GameObject.h"
#include "InstanceScript.h"
#include "Map.h"
#include "utgarde_pinnacle.h"
BossBoundaryData const boundaries =
@@ -64,7 +63,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);

View File

@@ -18,7 +18,6 @@
#include "ScriptMgr.h"
#include "GameTime.h"
#include "InstanceScript.h"
#include "Map.h"
#include "vault_of_archavon.h"
/* Vault of Archavon encounters:
@@ -44,7 +43,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);

View File

@@ -195,7 +195,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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -95,7 +95,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);

View File

@@ -94,7 +94,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));

View File

@@ -22,7 +22,6 @@
#include "GameObjectAI.h"
#include "InstanceScript.h"
#include "Log.h"
#include "Map.h"
#include "steam_vault.h"
struct go_main_chambers_access_panel : public GameObjectAI
@@ -67,7 +66,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);

View File

@@ -25,7 +25,6 @@ gets instead the deserter debuff.
#include "ScriptMgr.h"
#include "Creature.h"
#include "InstanceScript.h"
#include "Map.h"
#include "the_slave_pens.h"
ObjectData const creatureData[] =
@@ -50,7 +49,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;
LoadObjectData(creatureData, nullptr);

View File

@@ -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) { }
};
};

View File

@@ -19,7 +19,6 @@
#include "Creature.h"
#include "gruuls_lair.h"
#include "InstanceScript.h"
#include "Map.h"
DoorData const doorData[] =
{
@@ -45,7 +44,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);

View File

@@ -52,7 +52,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);

View File

@@ -35,7 +35,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);

View File

@@ -71,7 +71,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);

View File

@@ -52,7 +52,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);

View File

@@ -25,7 +25,6 @@ EndScriptData */
#include "ScriptMgr.h"
#include "Creature.h"
#include "InstanceScript.h"
#include "Map.h"
#include "the_eye.h"
/* The Eye encounters:
@@ -57,7 +56,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);

View File

@@ -17,7 +17,6 @@
#include "ScriptMgr.h"
#include "InstanceScript.h"
#include "Map.h"
#include "mechanar.h"
static DoorData const doorData[] =
@@ -35,7 +34,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);

View File

@@ -36,7 +36,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);

View File

@@ -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);
}