AzerothCore 3.3.5a
OpenSource WoW Emulator
No Matches
instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript Struct Reference
Inheritance diagram for instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript:
InstanceScript ZoneScript

Public Member Functions

 instance_shadow_labyrinth_InstanceMapScript (Map *map)
void Initialize () override
void OnCreatureCreate (Creature *creature) override
void OnUnitDeath (Unit *unit) override
uint32 GetData (uint32 type) const 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)
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)
- 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)

Public Attributes

uint32 _ritualistsAliveCount
- Public Attributes inherited from InstanceScript
TaskScheduler scheduler

Additional Inherited Members

- Static Public Member Functions inherited from InstanceScript
static std::string GetBossStateName (uint8 state)
- 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_shadow_labyrinth_InstanceMapScript()

instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::instance_shadow_labyrinth_InstanceMapScript ( Map map)
49 : InstanceScript(map)
50 {
55 }
uint32 const EncounterCount
Definition: blackrock_spire.h:23
ObjectData const creatureData[]
Definition: instance_shadow_labyrinth.cpp:31
DoorData const doorData[]
Definition: instance_shadow_labyrinth.cpp:24
uint32 constexpr PersistentDataCount
Definition: shadow_labyrinth.h:50
Definition: InstanceScript.h:141
void SetBossNumber(uint32 number)
Definition: InstanceScript.h:271
void SetPersistentDataCount(uint32 number)
Definition: InstanceScript.h:272
void LoadDoorData(DoorData const *data)
Definition: InstanceScript.cpp:160
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
Definition: InstanceScript.cpp:172

References creatureData, doorData, EncounterCount, InstanceScript::LoadDoorData(), InstanceScript::LoadObjectData(), PersistentDataCount, InstanceScript::SetBossNumber(), and InstanceScript::SetPersistentDataCount().

Member Function Documentation

◆ GetData()

uint32 instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::GetData ( uint32  type) const

Reimplemented from ZoneScript.

95 {
96 if (type == TYPE_RITUALISTS)
99 return 0;
100 }
Definition: shadow_labyrinth.h:30
uint32 GetPersistentData(uint32 index) const
Definition: InstanceScript.h:236

References InstanceScript::GetPersistentData(), and TYPE_RITUALISTS.

◆ Initialize()

void instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::Initialize ( )

Reimplemented from InstanceScript.

60 {
62 }
uint32 _ritualistsAliveCount
Definition: instance_shadow_labyrinth.cpp:57

References _ritualistsAliveCount.

◆ OnCreatureCreate()

void instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::OnCreatureCreate ( Creature creature)

Reimplemented from InstanceScript.

65 {
68 if (creature->GetEntry() == NPC_CABAL_RITUALIST)
69 {
70 if (creature->IsAlive())
71 {
73 }
74 }
75 }
Definition: shadow_labyrinth.h:42
uint32 GetEntry() const
Definition: Object.h:109
bool IsAlive() const
Definition: Unit.h:1822
void OnCreatureCreate(Creature *creature) override
Definition: InstanceScript.cpp:57

References _ritualistsAliveCount, Object::GetEntry(), Unit::IsAlive(), NPC_CABAL_RITUALIST, and InstanceScript::OnCreatureCreate().

◆ OnUnitDeath()

void instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::OnUnitDeath ( Unit unit)

Reimplemented from ZoneScript.

78 {
81 if (unit->GetEntry() == NPC_CABAL_RITUALIST)
82 {
84 {
86 if (Creature* hellmaw = GetCreature(TYPE_HELLMAW))
87 {
88 hellmaw->AI()->DoAction(1);
89 }
90 }
91 }
92 }
Definition: InstanceScript.h:60
Definition: shadow_labyrinth.h:31
Definition: Creature.h:46
Creature * GetCreature(uint32 type)
Definition: InstanceScript.cpp:99
void StorePersistentData(uint32 index, uint32 data)
Definition: InstanceScript.cpp:387
virtual void OnUnitDeath(Unit *)
Definition: ZoneScript.h:41

References _ritualistsAliveCount, DONE, InstanceScript::GetCreature(), Object::GetEntry(), NPC_CABAL_RITUALIST, ZoneScript::OnUnitDeath(), InstanceScript::StorePersistentData(), TYPE_HELLMAW, and TYPE_RITUALISTS.

Member Data Documentation

◆ _ritualistsAliveCount

uint32 instance_shadow_labyrinth::instance_shadow_labyrinth_InstanceMapScript::_ritualistsAliveCount