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

Public Member Functions

 instance_the_eye_InstanceMapScript (Map *map)
 
void OnCreatureCreate (Creature *creature) override
 
void OnGameObjectCreate (GameObject *gobject) override
 
ObjectGuid GetGuidData (uint32 identifier) 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)
 
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)
 

Public Attributes

ObjectGuid ThaladredTheDarkenerGUID
 
ObjectGuid LordSanguinarGUID
 
ObjectGuid GrandAstromancerCapernianGUID
 
ObjectGuid MasterEngineerTelonicusGUID
 
ObjectGuid AlarGUID
 
ObjectGuid KaelthasGUID
 
ObjectGuid BridgeWindowGUID
 
ObjectGuid KaelStateRightGUID
 
ObjectGuid KaelStateLeftGUID
 
- Public Attributes inherited from InstanceScript
Mapinstance
 
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_the_eye_InstanceMapScript()

instance_the_eye::instance_the_eye_InstanceMapScript::instance_the_eye_InstanceMapScript ( Map map)
inline
61 : InstanceScript(map)
62 {
68 }
#define MAX_ENCOUNTER
Definition: violet_hold.h:21
ObjectData const gameObjectData[]
Definition: instance_the_eye.cpp:35
ObjectData const creatureData[]
Definition: instance_the_eye.cpp:24
DoorData const doorData[]
Definition: instance_the_eye.cpp:40
BossBoundaryData const boundaries
Definition: instance_the_eye.cpp:47
#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 LoadBossBoundaries(BossBoundaryData const &data)
Definition: InstanceScript.cpp:131
void SetHeaders(std::string const &dataHeaders)
Definition: InstanceScript.cpp:138
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
Definition: InstanceScript.cpp:173

References boundaries, creatureData, DataHeader, doorData, gameObjectData, InstanceScript::LoadBossBoundaries(), InstanceScript::LoadDoorData(), InstanceScript::LoadObjectData(), MAX_ENCOUNTER, InstanceScript::SetBossNumber(), and InstanceScript::SetHeaders().

Member Function Documentation

◆ GetGuidData()

ObjectGuid instance_the_eye::instance_the_eye_InstanceMapScript::GetGuidData ( uint32  identifier) const
inlineoverridevirtual

Reimplemented from InstanceScript.

124 {
125 switch (identifier)
126 {
127 case GO_BRIDGE_WINDOW:
128 return BridgeWindowGUID;
130 return KaelStateRightGUID;
132 return KaelStateLeftGUID;
133 case NPC_ALAR:
134 return AlarGUID;
135 case NPC_KAELTHAS:
136 return KaelthasGUID;
137 }
138
139 return ObjectGuid::Empty;
140 }
@ NPC_KAELTHAS
Definition: the_eye.h:47
@ NPC_ALAR
Definition: the_eye.h:46
@ GO_KAEL_STATUE_LEFT
Definition: the_eye.h:58
@ GO_BRIDGE_WINDOW
Definition: the_eye.h:56
@ GO_KAEL_STATUE_RIGHT
Definition: the_eye.h:57
static ObjectGuid const Empty
Definition: ObjectGuid.h:120
ObjectGuid BridgeWindowGUID
Definition: instance_the_eye.cpp:76
ObjectGuid KaelStateRightGUID
Definition: instance_the_eye.cpp:77
ObjectGuid AlarGUID
Definition: instance_the_eye.cpp:74
ObjectGuid KaelthasGUID
Definition: instance_the_eye.cpp:75
ObjectGuid KaelStateLeftGUID
Definition: instance_the_eye.cpp:78

References AlarGUID, BridgeWindowGUID, ObjectGuid::Empty, GO_BRIDGE_WINDOW, GO_KAEL_STATUE_LEFT, GO_KAEL_STATUE_RIGHT, KaelStateLeftGUID, KaelStateRightGUID, KaelthasGUID, NPC_ALAR, and NPC_KAELTHAS.

◆ OnCreatureCreate()

void instance_the_eye::instance_the_eye_InstanceMapScript::OnCreatureCreate ( Creature creature)
inlineoverridevirtual

Reimplemented from InstanceScript.

81 {
82 switch (creature->GetEntry())
83 {
84 case NPC_ALAR:
85 AlarGUID = creature->GetGUID();
86 break;
87 case NPC_KAELTHAS:
88 KaelthasGUID = creature->GetGUID();
89 break;
90 case NPC_THALADRED:
92 break;
93 case NPC_TELONICUS:
95 break;
96 case NPC_CAPERNIAN:
98 break;
100 LordSanguinarGUID = creature->GetGUID();
101 break;
102 }
104 }
@ NPC_TELONICUS
Definition: the_eye.h:51
@ NPC_CAPERNIAN
Definition: the_eye.h:50
@ NPC_THALADRED
Definition: the_eye.h:48
@ NPC_LORD_SANGUINAR
Definition: the_eye.h:49
uint32 GetEntry() const
Definition: Object.h:112
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
void OnCreatureCreate(Creature *creature) override
Definition: InstanceScript.cpp:58
ObjectGuid LordSanguinarGUID
Definition: instance_the_eye.cpp:71
ObjectGuid GrandAstromancerCapernianGUID
Definition: instance_the_eye.cpp:72
ObjectGuid MasterEngineerTelonicusGUID
Definition: instance_the_eye.cpp:73
ObjectGuid ThaladredTheDarkenerGUID
Definition: instance_the_eye.cpp:70

References AlarGUID, Object::GetEntry(), Object::GetGUID(), GrandAstromancerCapernianGUID, KaelthasGUID, LordSanguinarGUID, MasterEngineerTelonicusGUID, NPC_ALAR, NPC_CAPERNIAN, NPC_KAELTHAS, NPC_LORD_SANGUINAR, NPC_TELONICUS, NPC_THALADRED, InstanceScript::OnCreatureCreate(), and ThaladredTheDarkenerGUID.

◆ OnGameObjectCreate()

void instance_the_eye::instance_the_eye_InstanceMapScript::OnGameObjectCreate ( GameObject gobject)
inlineoverridevirtual

Reimplemented from InstanceScript.

107 {
108 switch (gobject->GetEntry())
109 {
110 case GO_BRIDGE_WINDOW:
111 BridgeWindowGUID = gobject->GetGUID();
112 break;
114 KaelStateRightGUID = gobject->GetGUID();
115 break;
117 KaelStateLeftGUID = gobject->GetGUID();
118 break;
119 }
121 }
void OnGameObjectCreate(GameObject *go) override
Definition: InstanceScript.cpp:70

References BridgeWindowGUID, Object::GetEntry(), Object::GetGUID(), GO_BRIDGE_WINDOW, GO_KAEL_STATUE_LEFT, GO_KAEL_STATUE_RIGHT, KaelStateLeftGUID, KaelStateRightGUID, and InstanceScript::OnGameObjectCreate().

Member Data Documentation

◆ AlarGUID

ObjectGuid instance_the_eye::instance_the_eye_InstanceMapScript::AlarGUID

Referenced by GetGuidData(), and OnCreatureCreate().

◆ BridgeWindowGUID

ObjectGuid instance_the_eye::instance_the_eye_InstanceMapScript::BridgeWindowGUID

Referenced by GetGuidData(), and OnGameObjectCreate().

◆ GrandAstromancerCapernianGUID

ObjectGuid instance_the_eye::instance_the_eye_InstanceMapScript::GrandAstromancerCapernianGUID

Referenced by OnCreatureCreate().

◆ KaelStateLeftGUID

ObjectGuid instance_the_eye::instance_the_eye_InstanceMapScript::KaelStateLeftGUID

Referenced by GetGuidData(), and OnGameObjectCreate().

◆ KaelStateRightGUID

ObjectGuid instance_the_eye::instance_the_eye_InstanceMapScript::KaelStateRightGUID

Referenced by GetGuidData(), and OnGameObjectCreate().

◆ KaelthasGUID

ObjectGuid instance_the_eye::instance_the_eye_InstanceMapScript::KaelthasGUID

Referenced by GetGuidData(), and OnCreatureCreate().

◆ LordSanguinarGUID

ObjectGuid instance_the_eye::instance_the_eye_InstanceMapScript::LordSanguinarGUID

Referenced by OnCreatureCreate().

◆ MasterEngineerTelonicusGUID

ObjectGuid instance_the_eye::instance_the_eye_InstanceMapScript::MasterEngineerTelonicusGUID

Referenced by OnCreatureCreate().

◆ ThaladredTheDarkenerGUID

ObjectGuid instance_the_eye::instance_the_eye_InstanceMapScript::ThaladredTheDarkenerGUID

Referenced by OnCreatureCreate().