TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
instance_zulgurub::instance_zulgurub_InstanceMapScript Struct Reference

Public Member Functions

 instance_zulgurub_InstanceMapScript (Map *map)
 
void OnCreatureCreate (Creature *creature) override
 
void OnGameObjectCreate (GameObject *go) override
 
void OnGameObjectRemove (GameObject *go) override
 
bool SetBossState (uint32 type, EncounterState state) override
 
ObjectGuid GetGuidData (uint32 type) const override
 
- Public Member Functions inherited from InstanceScript
 InstanceScript (Map *map)
 
virtual ~InstanceScript ()
 
virtual void Initialize ()
 
virtual void Load (char const *data)
 
virtual std::string GetSaveData ()
 
void SaveToDB ()
 
virtual void Update (uint32)
 
virtual bool IsEncounterInProgress () const
 
virtual void OnCreatureRemove (Creature *creature) override
 
ObjectGuid GetObjectGuid (uint32 type) const
 
CreatureGetCreature (uint32 type)
 
GameObjectGetGameObject (uint32 type)
 
virtual void OnPlayerEnter (Player *)
 
void HandleGameObject (ObjectGuid guid, bool open, GameObject *go=nullptr)
 
void DoUseDoorOrButton (ObjectGuid guid, uint32 withRestoreTime=0, bool useAlternativeState=false)
 
void DoCloseDoorOrButton (ObjectGuid guid)
 
void DoRespawnGameObject (ObjectGuid guid, uint32 timeToDespawn=MINUTE)
 
void DoUpdateWorldState (uint32 worldstateId, uint32 worldstateValue)
 
void DoSendNotifyToInstance (char const *format,...)
 
void DoUpdateAchievementCriteria (AchievementCriteriaTypes type, uint32 miscValue1=0, uint32 miscValue2=0, Unit *unit=NULL)
 
void DoStartTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry)
 
void DoStopTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry)
 
void DoRemoveAurasDueToSpellOnPlayers (uint32 spell)
 
void DoCastSpellOnPlayers (uint32 spell)
 
bool ServerAllowsTwoSideGroups ()
 
EncounterState GetBossState (uint32 id) const
 
CreatureBoundary constGetBossBoundary (uint32 id) const
 
virtual bool CheckAchievementCriteriaMeet (uint32, Player const *, Unit const *=NULL, uint32=0)
 
virtual bool CheckRequiredBosses (uint32, Player const *=nullptr) const
 
void UpdateEncounterState (EncounterCreditType type, uint32 creditEntry, Unit *source)
 
void SetCompletedEncountersMask (uint32 newMask)
 
uint32 GetCompletedEncounterMask () const
 
void SendEncounterUnit (uint32 type, Unit *unit=NULL, uint8 param1=0, uint8 param2=0)
 
virtual void FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &)
 
void UpdatePhasing ()
 
uint32 GetEncounterCount () 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 OnUnitDeath (Unit *)
 
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 venoxisGUID
 
ObjectGuid mandokirGUID
 
ObjectGuid kilnaraGUID
 
ObjectGuid zanzilGUID
 
ObjectGuid jindoGUID
 
ObjectGuid hazzarahGUID
 
ObjectGuid renatakiGUID
 
ObjectGuid wushoolayGUID
 
ObjectGuid grilekGUID
 
ObjectGuid jindoTiggerGUID
 

Additional Inherited Members

- Static Public Member Functions inherited from InstanceScript
static std::string GetBossStateName (uint8 state)
 
- Public Attributes inherited from InstanceScript
Mapinstance
 
- Protected Member Functions inherited from InstanceScript
void SetHeaders (std::string const &dataHeaders)
 
void SetBossNumber (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)
 
void AddObject (GameObject *obj, bool add)
 
void AddObject (WorldObject *obj, uint32 type, bool add)
 
virtual void AddDoor (GameObject *door, bool add)
 
void AddMinion (Creature *minion, bool add)
 
virtual void UpdateDoorState (GameObject *door)
 
void UpdateMinionState (Creature *minion, EncounterState state)
 
BossInfoGetBossInfo (uint32 id)
 
bool ReadSaveDataHeaders (std::istringstream &data)
 
void ReadSaveDataBossStates (std::istringstream &data)
 
virtual void ReadSaveDataMore (std::istringstream &)
 
void WriteSaveDataHeaders (std::ostringstream &data)
 
void WriteSaveDataBossStates (std::ostringstream &data)
 
virtual void WriteSaveDataMore (std::ostringstream &)
 
bool _SkipCheckRequiredBosses (Player const *player=nullptr) const
 

Constructor & Destructor Documentation

instance_zulgurub::instance_zulgurub_InstanceMapScript::instance_zulgurub_InstanceMapScript ( Map map)
inline
40  : InstanceScript(map)
41  {
45  }
uint32 const EncounterCount
Definition: baradin_hold.h:28
void SetBossNumber(uint32 number)
Definition: InstanceScript.h:258
DoorData const doorData[]
Definition: instance_zulgurub.cpp:23
void SetHeaders(std::string const &dataHeaders)
Definition: InstanceScript.cpp:98
#define DataHeader
Definition: baradin_hold.h:25
InstanceScript(Map *map)
Definition: InstanceScript.h:144
void LoadDoorData(DoorData const *data)
Definition: InstanceScript.cpp:124

+ Here is the call graph for this function:

Member Function Documentation

ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::GetGuidData ( uint32  type) const
inlineoverridevirtual

Reimplemented from InstanceScript.

161  {
162  switch (type)
163  {
164  case DATA_VENOXIS:
165  return venoxisGUID;
166  case DATA_MANDOKIR:
167  return mandokirGUID;
168  case DATA_KILNARA:
169  return kilnaraGUID;
170  case DATA_ZANZIL:
171  return zanzilGUID;
172  case DATA_JINDO:
173  return jindoGUID;
174  case DATA_HAZZARAH:
175  return hazzarahGUID;
176  case DATA_RENATAKI:
177  return renatakiGUID;
178  case DATA_WUSHOOLAY:
179  return wushoolayGUID;
180  case DATA_GRILEK:
181  return grilekGUID;
182  case DATA_JINDOR_TRIGGER:
183  return jindoTiggerGUID;
184  default:
185  break;
186  }
187 
188  return ObjectGuid::Empty;
189  }
ObjectGuid venoxisGUID
Definition: instance_zulgurub.cpp:192
Definition: zulgurub.h:39
Definition: zulgurub.h:37
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
ObjectGuid renatakiGUID
Definition: instance_zulgurub.cpp:198
Definition: zulgurub.h:33
Definition: zulgurub.h:42
Definition: zulgurub.h:32
Definition: zulgurub.h:31
ObjectGuid wushoolayGUID
Definition: instance_zulgurub.cpp:199
Definition: zulgurub.h:36
ObjectGuid jindoTiggerGUID
Definition: instance_zulgurub.cpp:201
ObjectGuid mandokirGUID
Definition: instance_zulgurub.cpp:193
Definition: zulgurub.h:29
ObjectGuid kilnaraGUID
Definition: instance_zulgurub.cpp:194
ObjectGuid grilekGUID
Definition: instance_zulgurub.cpp:200
ObjectGuid zanzilGUID
Definition: instance_zulgurub.cpp:195
ObjectGuid hazzarahGUID
Definition: instance_zulgurub.cpp:197
Definition: zulgurub.h:38
ObjectGuid jindoGUID
Definition: instance_zulgurub.cpp:196
Definition: zulgurub.h:30
void instance_zulgurub::instance_zulgurub_InstanceMapScript::OnCreatureCreate ( Creature creature)
inlineoverridevirtual

Reimplemented from InstanceScript.

48  {
49  switch (creature->GetEntry())
50  {
51  case NPC_VENOXIS:
52  venoxisGUID = creature->GetGUID();
53  break;
54  case NPC_MANDOKIR:
55  mandokirGUID = creature->GetGUID();
56  break;
57  case NPC_KILNARA:
58  kilnaraGUID = creature->GetGUID();
59  break;
60  case NPC_ZANZIL:
61  zanzilGUID = creature->GetGUID();
62  break;
63  case NPC_JINDO:
64  jindoGUID = creature->GetGUID();
65  break;
66  case NPC_HAZZARAH:
67  hazzarahGUID = creature->GetGUID();
68  break;
69  case NPC_RENATAKI:
70  renatakiGUID = creature->GetGUID();
71  break;
72  case NPC_WUSHOOLAY:
73  wushoolayGUID = creature->GetGUID();
74  break;
75  case NPC_GRILEK:
76  grilekGUID = creature->GetGUID();
77  break;
78  case NPC_JINDO_TRIGGER:
79  jindoTiggerGUID = creature->GetGUID();
80  break;
81  default:
82  break;
83  }
84  }
ObjectGuid venoxisGUID
Definition: instance_zulgurub.cpp:192
Definition: zulgurub.h:47
ObjectGuid renatakiGUID
Definition: instance_zulgurub.cpp:198
Definition: zulgurub.h:64
Definition: zulgurub.h:51
Definition: zulgurub.h:56
ObjectGuid wushoolayGUID
Definition: instance_zulgurub.cpp:199
Definition: zulgurub.h:54
ObjectGuid jindoTiggerGUID
Definition: instance_zulgurub.cpp:201
ObjectGuid mandokirGUID
Definition: instance_zulgurub.cpp:193
Definition: zulgurub.h:50
ObjectGuid kilnaraGUID
Definition: instance_zulgurub.cpp:194
ObjectGuid grilekGUID
Definition: instance_zulgurub.cpp:200
ObjectGuid const & GetGUID() const
Definition: Object.h:105
ObjectGuid zanzilGUID
Definition: instance_zulgurub.cpp:195
ObjectGuid hazzarahGUID
Definition: instance_zulgurub.cpp:197
Definition: zulgurub.h:49
Definition: zulgurub.h:48
Definition: zulgurub.h:57
uint32 GetEntry() const
Definition: Object.h:107
ObjectGuid jindoGUID
Definition: instance_zulgurub.cpp:196
Definition: zulgurub.h:55

+ Here is the call graph for this function:

void instance_zulgurub::instance_zulgurub_InstanceMapScript::OnGameObjectCreate ( GameObject go)
inlineoverridevirtual

Reimplemented from InstanceScript.

87  {
88  switch (go->GetEntry())
89  {
90  case GO_VENOXIS_COIL:
91  case GO_ARENA_DOOR_1:
92  case GO_FORCEFIELD:
93  case GO_ZANZIL_DOOR:
95  AddDoor(go, true);
96  break;
97  default:
98  break;
99  }
100  }
Definition: zulgurub.h:88
Definition: zulgurub.h:72
Definition: zulgurub.h:75
Definition: zulgurub.h:82
Definition: zulgurub.h:85
uint32 GetEntry() const
Definition: Object.h:107
virtual void AddDoor(GameObject *door, bool add)
Definition: InstanceScript.cpp:239

+ Here is the call graph for this function:

void instance_zulgurub::instance_zulgurub_InstanceMapScript::OnGameObjectRemove ( GameObject go)
inlineoverridevirtual

Reimplemented from InstanceScript.

103  {
104  switch (go->GetEntry())
105  {
106  case GO_VENOXIS_COIL:
107  case GO_ARENA_DOOR_1:
108  case GO_FORCEFIELD:
109  case GO_ZANZIL_DOOR:
111  AddDoor(go, false);
112  break;
113  default:
114  break;
115  }
116  }
Definition: zulgurub.h:88
Definition: zulgurub.h:72
Definition: zulgurub.h:75
Definition: zulgurub.h:82
Definition: zulgurub.h:85
uint32 GetEntry() const
Definition: Object.h:107
virtual void AddDoor(GameObject *door, bool add)
Definition: InstanceScript.cpp:239

+ Here is the call graph for this function:

bool instance_zulgurub::instance_zulgurub_InstanceMapScript::SetBossState ( uint32  type,
EncounterState  state 
)
inlineoverridevirtual

Reimplemented from InstanceScript.

119  {
120  if (!InstanceScript::SetBossState(type, state))
121  return false;
122 
123  switch (type)
124  {
125  case DATA_VENOXIS:
126  case DATA_MANDOKIR:
127  case DATA_KILNARA:
128  case DATA_ZANZIL:
129  case DATA_JINDO:
130  case DATA_HAZZARAH:
131  case DATA_RENATAKI:
132  case DATA_WUSHOOLAY:
133  case DATA_GRILEK:
134  break;
135  default:
136  break;
137  }
138 
139  return true;
140  }
Definition: zulgurub.h:39
Definition: zulgurub.h:37
Definition: zulgurub.h:33
Definition: zulgurub.h:32
Definition: zulgurub.h:31
Definition: zulgurub.h:36
Definition: zulgurub.h:29
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
Definition: zulgurub.h:38
Definition: zulgurub.h:30

+ Here is the call graph for this function:

Member Data Documentation

ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::grilekGUID
protected
ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::hazzarahGUID
protected
ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::jindoGUID
protected
ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::jindoTiggerGUID
protected
ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::kilnaraGUID
protected
ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::mandokirGUID
protected
ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::renatakiGUID
protected
ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::venoxisGUID
protected
ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::wushoolayGUID
protected
ObjectGuid instance_zulgurub::instance_zulgurub_InstanceMapScript::zanzilGUID
protected

The documentation for this struct was generated from the following file: