AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
instance_arcatraz::instance_arcatraz_InstanceMapScript Struct Reference
Inheritance diagram for instance_arcatraz::instance_arcatraz_InstanceMapScript:
InstanceScript ZoneScript

Public Member Functions

 instance_arcatraz_InstanceMapScript (Map *map)
 
void OnGameObjectCreate (GameObject *go) override
 
void SetData (uint32 type, uint32 data) override
 
ObjectGuid GetGuidData (uint32 data) const override
 
bool SetBossState (uint32 type, EncounterState state) override
 
- Public Member Functions inherited from InstanceScript
 InstanceScript (Map *map)
 
 ~InstanceScript () override
 
virtual void Initialize ()
 
virtual void Load (char const *data)
 
virtual void CreatureLooted (Creature *, LootType)
 
virtual std::string GetSaveData ()
 
void SaveToDB ()
 
virtual void Update (uint32)
 
virtual bool IsEncounterInProgress () const
 
void OnCreatureCreate (Creature *creature) override
 
void OnCreatureRemove (Creature *creature) override
 
void OnGameObjectCreate (GameObject *go) override
 
void OnGameObjectRemove (GameObject *go) override
 
ObjectGuid GetObjectGuid (uint32 type) const
 
ObjectGuid GetGuidData (uint32 type) const override
 
CreatureGetCreature (uint32 type)
 
GameObjectGetGameObject (uint32 type)
 
virtual void OnPlayerEnter (Player *)
 
virtual void OnPlayerAreaUpdate (Player *, uint32, uint32)
 
virtual void OnPlayerInWaterStateUpdate (Player *, bool)
 
void HandleGameObject (ObjectGuid guid, bool open, GameObject *go=nullptr)
 
void DoUseDoorOrButton (ObjectGuid guid, uint32 withRestoreTime=0, bool useAlternativeState=false)
 
void DoRespawnGameObject (ObjectGuid guid, uint32 timeToDespawn=MINUTE)
 
void DoRespawnCreature (ObjectGuid guid, bool force=false)
 
void DoRespawnCreature (uint32 type, bool force=false)
 
void DoUpdateWorldState (uint32 worldstateId, uint32 worldstateValue)
 
void DoSendNotifyToInstance (char const *format,...)
 
void DoUpdateAchievementCriteria (AchievementCriteriaTypes type, uint32 miscValue1=0, uint32 miscValue2=0, Unit *unit=nullptr)
 
void DoStartTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry)
 
void DoStopTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry)
 
void DoRemoveAurasDueToSpellOnPlayers (uint32 spell)
 
void DoCastSpellOnPlayers (uint32 spell)
 
void DoCastSpellOnPlayer (Player *player, uint32 spell, bool includePets, bool includeControlled)
 
bool ServerAllowsTwoSideGroups ()
 
virtual bool SetBossState (uint32 id, EncounterState state)
 
EncounterState GetBossState (uint32 id) const
 
CreatureBoundary const * GetBossBoundary (uint32 id) const
 
BossInfo const * GetBossInfo (uint32 id) const
 
uint32 GetPersistentData (uint32 index) const
 
void StorePersistentData (uint32 index, uint32 data)
 
virtual bool CheckAchievementCriteriaMeet (uint32, Player const *, Unit const *=nullptr, uint32=0)
 
virtual bool CheckRequiredBosses (uint32, Player const *=nullptr) const
 
void SetCompletedEncountersMask (uint32 newMask, bool save)
 
uint32 GetCompletedEncounterMask () const
 
void SendEncounterUnit (uint32 type, Unit *unit=nullptr, uint8 param1=0, uint8 param2=0)
 
virtual void FillInitialWorldStates (WorldPacket &)
 
uint32 GetEncounterCount () const
 
void MarkAreaTriggerDone (uint32 id)
 
void ResetAreaTriggerDone (uint32 id)
 
bool IsAreaTriggerDone (uint32 id) const
 
virtual void DoAction (int32)
 
void DoForAllMinions (uint32 id, std::function< void(Creature *)> exec)
 
void StoreGameObjectState (ObjectGuid::LowType spawnId, uint8 state)
 
uint8 GetStoredGameObjectState (ObjectGuid::LowType spawnId) const
 
void LoadInstanceSavedGameobjectStateData ()
 
bool IsBossDone (uint32 bossId) const
 
bool AllBossesDone () const
 
bool AllBossesDone (std::initializer_list< uint32 > bossIds) const
 
- Public Member Functions inherited from ZoneScript
 ZoneScript ()
 
virtual ~ZoneScript ()
 
virtual uint32 GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data)
 
virtual uint32 GetGameObjectEntry (ObjectGuid::LowType, uint32 entry)
 
virtual void OnCreatureCreate (Creature *)
 
virtual void OnCreatureRemove (Creature *)
 
virtual void OnGameObjectCreate (GameObject *)
 
virtual void OnGameObjectRemove (GameObject *)
 
virtual void OnUnitDeath (Unit *)
 
virtual void OnCreatureEvade (Creature *)
 
virtual ObjectGuid GetGuidData (uint32) const
 
virtual void SetGuidData (uint32, ObjectGuid)
 
virtual uint64 GetData64 (uint32) const
 
virtual void SetData64 (uint32, uint64)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void ProcessEvent (WorldObject *, uint32)
 

Protected Attributes

ObjectGuid StasisPodGUIDs [5]
 
ObjectGuid WardensShieldGUID
 

Additional Inherited Members

- Static Public Member Functions inherited from InstanceScript
static std::string GetBossStateName (uint8 state)
 
- Public Attributes inherited from InstanceScript
Mapinstance
 
TaskScheduler scheduler
 
- Protected Member Functions inherited from InstanceScript
void SetHeaders (std::string const &dataHeaders)
 
void SetBossNumber (uint32 number)
 
void SetPersistentDataCount (uint32 number)
 
void LoadBossBoundaries (BossBoundaryData const &data)
 
void LoadDoorData (DoorData const *data)
 
void LoadMinionData (MinionData const *data)
 
void LoadObjectData (ObjectData const *creatureData, ObjectData const *gameObjectData)
 
void AddObject (Creature *obj, bool add=true)
 
void RemoveObject (Creature *obj)
 
void AddObject (GameObject *obj, bool add=true)
 
void RemoveObject (GameObject *obj)
 
void AddObject (WorldObject *obj, uint32 type, bool add=true)
 
void RemoveObject (WorldObject *obj, uint32 type)
 
void AddDoor (GameObject *door, bool add=true)
 
void RemoveDoor (GameObject *door)
 
void AddMinion (Creature *minion, bool add=true)
 
void RemoveMinion (Creature *minion)
 
void UpdateDoorState (GameObject *door)
 
void UpdateMinionState (Creature *minion, EncounterState state)
 
bool ReadSaveDataHeaders (std::istringstream &data)
 
void ReadSaveDataBossStates (std::istringstream &data)
 
void ReadSavePersistentData (std::istringstream &data)
 
virtual void ReadSaveDataMore (std::istringstream &)
 
void WriteSaveDataHeaders (std::ostringstream &data)
 
void WriteSaveDataBossStates (std::ostringstream &data)
 
void WritePersistentData (std::ostringstream &data)
 
virtual void WriteSaveDataMore (std::ostringstream &)
 

Detailed Description

Constructor & Destructor Documentation

◆ instance_arcatraz_InstanceMapScript()

instance_arcatraz::instance_arcatraz_InstanceMapScript::instance_arcatraz_InstanceMapScript ( Map map)
inline
44 : InstanceScript(map)
45 {
50 }
@ MAX_ENCOUTER
Definition: arcatraz.h:34
ObjectData const creatureData[]
Definition: instance_arcatraz.cpp:29
DoorData const doorData[]
Definition: instance_arcatraz.cpp:22
#define DataHeader
Definition: blackrock_depths.h:23
Definition: InstanceScript.h:142
void SetBossNumber(uint32 number)
Definition: InstanceScript.h:285
void LoadDoorData(DoorData const *data)
Definition: InstanceScript.cpp:161
void SetHeaders(std::string const &dataHeaders)
Definition: InstanceScript.cpp:138
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
Definition: InstanceScript.cpp:173

References creatureData, DataHeader, doorData, InstanceScript::LoadDoorData(), InstanceScript::LoadObjectData(), MAX_ENCOUTER, InstanceScript::SetBossNumber(), and InstanceScript::SetHeaders().

Member Function Documentation

◆ GetGuidData()

ObjectGuid instance_arcatraz::instance_arcatraz_InstanceMapScript::GetGuidData ( uint32  data) const
inlineoverridevirtual

Reimplemented from InstanceScript.

101 {
102 switch (data)
103 {
105 return WardensShieldGUID;
106 }
107
108 return ObjectGuid::Empty;
109 }
@ DATA_WARDENS_SHIELD
Definition: arcatraz.h:42
static ObjectGuid const Empty
Definition: ObjectGuid.h:120
ObjectGuid WardensShieldGUID
Definition: instance_arcatraz.cpp:131

References DATA_WARDENS_SHIELD, ObjectGuid::Empty, and WardensShieldGUID.

◆ OnGameObjectCreate()

void instance_arcatraz::instance_arcatraz_InstanceMapScript::OnGameObjectCreate ( GameObject go)
inlineoverridevirtual

Reimplemented from InstanceScript.

53 {
54 switch (go->GetEntry())
55 {
58 AddDoor(go);
59 break;
61 StasisPodGUIDs[0] = go->GetGUID();
62 break;
64 StasisPodGUIDs[1] = go->GetGUID();
65 break;
67 StasisPodGUIDs[2] = go->GetGUID();
68 break;
70 StasisPodGUIDs[3] = go->GetGUID();
71 break;
73 StasisPodGUIDs[4] = go->GetGUID();
74 break;
77 break;
78 default:
79 break;
80 }
81 }
@ GO_CONTAINMENT_CORE_SECURITY_FIELD_ALPHA
Definition: arcatraz.h:56
@ GO_WARDENS_SHIELD
Definition: arcatraz.h:63
@ GO_STASIS_POD_OMEGA
Definition: arcatraz.h:62
@ GO_STASIS_POD_ALPHA
Definition: arcatraz.h:58
@ GO_STASIS_POD_GAMMA
Definition: arcatraz.h:61
@ GO_STASIS_POD_BETA
Definition: arcatraz.h:59
@ GO_CONTAINMENT_CORE_SECURITY_FIELD_BETA
Definition: arcatraz.h:57
@ GO_STASIS_POD_DELTA
Definition: arcatraz.h:60
uint32 GetEntry() const
Definition: Object.h:112
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
void AddDoor(GameObject *door, bool add=true)
Definition: InstanceScript.cpp:307
ObjectGuid StasisPodGUIDs[5]
Definition: instance_arcatraz.cpp:130

References InstanceScript::AddDoor(), Object::GetEntry(), Object::GetGUID(), GO_CONTAINMENT_CORE_SECURITY_FIELD_ALPHA, GO_CONTAINMENT_CORE_SECURITY_FIELD_BETA, GO_STASIS_POD_ALPHA, GO_STASIS_POD_BETA, GO_STASIS_POD_DELTA, GO_STASIS_POD_GAMMA, GO_STASIS_POD_OMEGA, GO_WARDENS_SHIELD, StasisPodGUIDs, and WardensShieldGUID.

◆ SetBossState()

bool instance_arcatraz::instance_arcatraz_InstanceMapScript::SetBossState ( uint32  type,
EncounterState  state 
)
inlineoverridevirtual

Reimplemented from InstanceScript.

112 {
113 if (!InstanceScript::SetBossState(type, state))
114 return false;
115
116 if (type == DATA_WARDEN_MELLICHAR && state == NOT_STARTED)
117 {
124 }
125
126 return true;
127 }
@ NOT_STARTED
Definition: InstanceScript.h:57
@ DATA_WARDEN_4
Definition: arcatraz.h:40
@ DATA_WARDEN_2
Definition: arcatraz.h:38
@ DATA_WARDEN_MELLICHAR
Definition: arcatraz.h:33
@ DATA_WARDEN_3
Definition: arcatraz.h:39
@ DATA_WARDEN_1
Definition: arcatraz.h:37
@ DATA_WARDEN_5
Definition: arcatraz.h:41
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:351
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
Definition: InstanceScript.cpp:110
void SetData(uint32 type, uint32 data) override
Definition: instance_arcatraz.cpp:83

References DATA_WARDEN_1, DATA_WARDEN_2, DATA_WARDEN_3, DATA_WARDEN_4, DATA_WARDEN_5, DATA_WARDEN_MELLICHAR, InstanceScript::HandleGameObject(), NOT_STARTED, InstanceScript::SetBossState(), SetData(), and WardensShieldGUID.

◆ SetData()

void instance_arcatraz::instance_arcatraz_InstanceMapScript::SetData ( uint32  type,
uint32  data 
)
inlineoverridevirtual

Reimplemented from ZoneScript.

84 {
85 switch (type)
86 {
87 case DATA_WARDEN_1:
88 case DATA_WARDEN_2:
89 case DATA_WARDEN_3:
90 case DATA_WARDEN_4:
91 case DATA_WARDEN_5:
92 if (data < FAIL)
95 warden->AI()->SetData(type, data);
96 break;
97 }
98 }
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ FAIL
Definition: InstanceScript.h:59
Definition: Creature.h:46
Creature * GetCreature(uint32 type)
Definition: InstanceScript.cpp:100

References DATA_WARDEN_1, DATA_WARDEN_2, DATA_WARDEN_3, DATA_WARDEN_4, DATA_WARDEN_5, DATA_WARDEN_MELLICHAR, FAIL, InstanceScript::GetCreature(), InstanceScript::HandleGameObject(), IN_PROGRESS, and StasisPodGUIDs.

Referenced by SetBossState().

Member Data Documentation

◆ StasisPodGUIDs

ObjectGuid instance_arcatraz::instance_arcatraz_InstanceMapScript::StasisPodGUIDs[5]
protected

Referenced by OnGameObjectCreate(), and SetData().

◆ WardensShieldGUID

ObjectGuid instance_arcatraz::instance_arcatraz_InstanceMapScript::WardensShieldGUID
protected