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

Public Member Functions

 instance_scholomance_InstanceMapScript (Map *map)
 
void OnGameObjectCreate (GameObject *go) override
 
bool SetBossState (uint32 type, EncounterState state) override
 
ObjectGuid GetGuidData (uint32 type) const override
 
bool CheckPreBosses (uint32 bossId) const
 
void CheckToSpawnGandling ()
 
void ReadSaveDataMore (std::istringstream &) 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 OnCreatureCreate (Creature *creature) override
 
virtual void OnCreatureRemove (Creature *creature) override
 
virtual void OnGameObjectRemove (GameObject *go) 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 GateKirtonosGUID
 
ObjectGuid GateGandlingGUID
 
ObjectGuid GateMiliciaGUID
 
ObjectGuid GateTheolenGUID
 
ObjectGuid GatePolkeltGUID
 
ObjectGuid GateRavenianGUID
 
ObjectGuid GateBarovGUID
 
ObjectGuid GateIlluciaGUID
 
ObjectGuid BrazierOfTheHeraldGUID
 

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)
 
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_scholomance::instance_scholomance_InstanceMapScript::instance_scholomance_InstanceMapScript ( Map map)
inline
37  : InstanceScript(map)
38  {
41  }
uint32 const EncounterCount
Definition: baradin_hold.h:28
void SetBossNumber(uint32 number)
Definition: InstanceScript.h:258
void SetHeaders(std::string const &dataHeaders)
Definition: InstanceScript.cpp:98
#define DataHeader
Definition: baradin_hold.h:25
InstanceScript(Map *map)
Definition: InstanceScript.h:144

+ Here is the call graph for this function:

Member Function Documentation

bool instance_scholomance::instance_scholomance_InstanceMapScript::CheckPreBosses ( uint32  bossId) const
inline
131  {
132  switch (bossId)
133  {
136  return false;
138  return false;
140  return false;
142  return false;
144  return false;
146  return false;
148  return false;
149  break;
150  default:
151  break;
152  }
153 
154  return true;
155  }
Definition: scholomance.h:30
Definition: inflate.h:49
Definition: scholomance.h:33
Definition: scholomance.h:27
Definition: scholomance.h:31
Definition: scholomance.h:28
Definition: scholomance.h:32
Definition: scholomance.h:29
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:227

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void instance_scholomance::instance_scholomance_InstanceMapScript::CheckToSpawnGandling ( )
inline
158  {
161  }
TempSummon * SummonCreature(uint32 entry, Position const &pos, SummonPropertiesEntry const *properties=NULL, uint32 duration=0, Unit *summoner=NULL, uint32 spellId=0, uint32 vehId=0)
Definition: Object.cpp:2219
bool CheckPreBosses(uint32 bossId) const
Definition: instance_scholomance.cpp:130
Definition: scholomance.h:33
Definition: scholomance.h:39
Map * instance
Definition: InstanceScript.h:148
Position const GandlingLoc
Definition: instance_scholomance.cpp:23

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ObjectGuid instance_scholomance::instance_scholomance_InstanceMapScript::GetGuidData ( uint32  type) const
inlineoverridevirtual

Reimplemented from InstanceScript.

102  {
103  switch (type)
104  {
105  case GO_GATE_KIRTONOS:
106  return GateKirtonosGUID;
107  case GO_GATE_GANDLING:
108  return GateGandlingGUID;
109  case GO_GATE_MALICIA:
110  return GateMiliciaGUID;
111  case GO_GATE_THEOLEN:
112  return GateTheolenGUID;
113  case GO_GATE_POLKELT:
114  return GatePolkeltGUID;
115  case GO_GATE_RAVENIAN:
116  return GateRavenianGUID;
117  case GO_GATE_BAROV:
118  return GateBarovGUID;
119  case GO_GATE_ILLUCIA:
120  return GateIlluciaGUID;
122  return BrazierOfTheHeraldGUID;
123  default:
124  break;
125  }
126 
127  return ObjectGuid::Empty;
128  }
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
Definition: scholomance.h:46
Definition: scholomance.h:49
ObjectGuid GateIlluciaGUID
Definition: instance_scholomance.cpp:176
ObjectGuid BrazierOfTheHeraldGUID
Definition: instance_scholomance.cpp:177
ObjectGuid GatePolkeltGUID
Definition: instance_scholomance.cpp:173
Definition: scholomance.h:47
ObjectGuid GateKirtonosGUID
Definition: instance_scholomance.cpp:169
ObjectGuid GateGandlingGUID
Definition: instance_scholomance.cpp:170
ObjectGuid GateRavenianGUID
Definition: instance_scholomance.cpp:174
Definition: scholomance.h:51
Definition: scholomance.h:50
Definition: scholomance.h:53
Definition: scholomance.h:45
ObjectGuid GateTheolenGUID
Definition: instance_scholomance.cpp:172
ObjectGuid GateMiliciaGUID
Definition: instance_scholomance.cpp:171
Definition: scholomance.h:52
Definition: scholomance.h:48
ObjectGuid GateBarovGUID
Definition: instance_scholomance.cpp:175
void instance_scholomance::instance_scholomance_InstanceMapScript::OnGameObjectCreate ( GameObject go)
inlineoverridevirtual

Reimplemented from InstanceScript.

44  {
45  switch (go->GetEntry())
46  {
47  case GO_GATE_KIRTONOS:
48  GateKirtonosGUID = go->GetGUID();
49  break;
50  case GO_GATE_GANDLING:
51  GateGandlingGUID = go->GetGUID();
52  break;
53  case GO_GATE_MALICIA:
54  GateMiliciaGUID = go->GetGUID();
55  break;
56  case GO_GATE_THEOLEN:
57  GateTheolenGUID = go->GetGUID();
58  break;
59  case GO_GATE_POLKELT:
60  GatePolkeltGUID = go->GetGUID();
61  break;
62  case GO_GATE_RAVENIAN:
63  GateRavenianGUID = go->GetGUID();
64  break;
65  case GO_GATE_BAROV:
66  GateBarovGUID = go->GetGUID();
67  break;
68  case GO_GATE_ILLUCIA:
69  GateIlluciaGUID = go->GetGUID();
70  break;
73  break;
74  default:
75  break;
76  }
77  }
Definition: scholomance.h:46
Definition: scholomance.h:49
ObjectGuid GateIlluciaGUID
Definition: instance_scholomance.cpp:176
ObjectGuid BrazierOfTheHeraldGUID
Definition: instance_scholomance.cpp:177
ObjectGuid GatePolkeltGUID
Definition: instance_scholomance.cpp:173
Definition: scholomance.h:47
ObjectGuid GateKirtonosGUID
Definition: instance_scholomance.cpp:169
ObjectGuid GateGandlingGUID
Definition: instance_scholomance.cpp:170
ObjectGuid GateRavenianGUID
Definition: instance_scholomance.cpp:174
Definition: scholomance.h:51
Definition: scholomance.h:50
Definition: scholomance.h:53
Definition: scholomance.h:45
ObjectGuid const & GetGUID() const
Definition: Object.h:105
ObjectGuid GateTheolenGUID
Definition: instance_scholomance.cpp:172
ObjectGuid GateMiliciaGUID
Definition: instance_scholomance.cpp:171
Definition: scholomance.h:52
uint32 GetEntry() const
Definition: Object.h:107
Definition: scholomance.h:48
ObjectGuid GateBarovGUID
Definition: instance_scholomance.cpp:175

+ Here is the call graph for this function:

void instance_scholomance::instance_scholomance_InstanceMapScript::ReadSaveDataMore ( std::istringstream &  )
inlineoverridevirtual

Reimplemented from InstanceScript.

164  {
166  }
void CheckToSpawnGandling()
Definition: instance_scholomance.cpp:157

+ Here is the call graph for this function:

bool instance_scholomance::instance_scholomance_InstanceMapScript::SetBossState ( uint32  type,
EncounterState  state 
)
inlineoverridevirtual

Reimplemented from InstanceScript.

80  {
81  if (!InstanceScript::SetBossState(type, state))
82  return false;
83 
84  switch (type)
85  {
88  case DATA_THERAVENIAN:
93  break;
94  default:
95  break;
96  }
97 
98  return true;
99  }
Definition: scholomance.h:30
Definition: scholomance.h:27
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
void CheckToSpawnGandling()
Definition: instance_scholomance.cpp:157
Definition: scholomance.h:31
Definition: scholomance.h:28
Definition: scholomance.h:32
Definition: scholomance.h:29

+ Here is the call graph for this function:

Member Data Documentation

ObjectGuid instance_scholomance::instance_scholomance_InstanceMapScript::BrazierOfTheHeraldGUID
protected
ObjectGuid instance_scholomance::instance_scholomance_InstanceMapScript::GateBarovGUID
protected
ObjectGuid instance_scholomance::instance_scholomance_InstanceMapScript::GateGandlingGUID
protected
ObjectGuid instance_scholomance::instance_scholomance_InstanceMapScript::GateIlluciaGUID
protected
ObjectGuid instance_scholomance::instance_scholomance_InstanceMapScript::GateKirtonosGUID
protected
ObjectGuid instance_scholomance::instance_scholomance_InstanceMapScript::GateMiliciaGUID
protected
ObjectGuid instance_scholomance::instance_scholomance_InstanceMapScript::GatePolkeltGUID
protected
ObjectGuid instance_scholomance::instance_scholomance_InstanceMapScript::GateRavenianGUID
protected
ObjectGuid instance_scholomance::instance_scholomance_InstanceMapScript::GateTheolenGUID
protected

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