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

Public Member Functions

 instance_arcatraz_InstanceMapScript (Map *map)
 
void OnCreatureCreate (Creature *creature) override
 
void OnGameObjectCreate (GameObject *go) override
 
void OnGameObjectRemove (GameObject *go) override
 
void SetData (uint32 type, uint32 data) override
 
uint32 GetData (uint32 type) const override
 
ObjectGuid GetGuidData (uint32 data) const override
 
bool SetBossState (uint32 type, EncounterState state) 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 void ProcessEvent (WorldObject *, uint32)
 

Protected Attributes

ObjectGuid DalliahGUID
 
ObjectGuid SoccothratesGUID
 
ObjectGuid StasisPodGUIDs [5]
 
ObjectGuid MellicharGUID
 
ObjectGuid WardensShieldGUID
 
uint8 ConversationState
 
uint8 StasisPodStates [5]
 

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_arcatraz::instance_arcatraz_InstanceMapScript::instance_arcatraz_InstanceMapScript ( Map map)
inline
36  : InstanceScript(map)
37  {
41 
43 
44  memset(StasisPodStates, NOT_STARTED, 5 * sizeof(uint8));
45  }
uint32 const EncounterCount
Definition: baradin_hold.h:28
uint8 ConversationState
Definition: instance_arcatraz.cpp:196
DoorData const doorData[]
Definition: instance_arcatraz.cpp:22
void SetBossNumber(uint32 number)
Definition: InstanceScript.h:258
uint8 StasisPodStates[5]
Definition: instance_arcatraz.cpp:197
void SetHeaders(std::string const &dataHeaders)
Definition: InstanceScript.cpp:98
#define DataHeader
Definition: baradin_hold.h:25
InstanceScript(Map *map)
Definition: InstanceScript.h:144
Definition: InstanceScript.h:58
void LoadDoorData(DoorData const *data)
Definition: InstanceScript.cpp:124
uint8_t uint8
Definition: Define.h:152

+ Here is the call graph for this function:

Member Function Documentation

uint32 instance_arcatraz::instance_arcatraz_InstanceMapScript::GetData ( uint32  type) const
inlineoverridevirtual

Reimplemented from ZoneScript.

131  {
132  switch (type)
133  {
134  case DATA_WARDEN_1:
135  case DATA_WARDEN_2:
136  case DATA_WARDEN_3:
137  case DATA_WARDEN_4:
138  case DATA_WARDEN_5:
139  return StasisPodStates[type - DATA_WARDEN_1];
140  case DATA_CONVERSATION:
141  return ConversationState;
142  default:
143  break;
144  }
145  return 0;
146  }
uint8 ConversationState
Definition: instance_arcatraz.cpp:196
Definition: arcatraz.h:40
uint8 StasisPodStates[5]
Definition: instance_arcatraz.cpp:197
Definition: arcatraz.h:39
Definition: arcatraz.h:35
Definition: arcatraz.h:37
Definition: arcatraz.h:36
Definition: arcatraz.h:38
ObjectGuid instance_arcatraz::instance_arcatraz_InstanceMapScript::GetGuidData ( uint32  data) const
inlineoverridevirtual

Reimplemented from InstanceScript.

149  {
150  switch (data)
151  {
152  case DATA_DALLIAH:
153  return DalliahGUID;
154  case DATA_SOCCOTHRATES:
155  return SoccothratesGUID;
156  case DATA_MELLICHAR:
157  return MellicharGUID;
158  case DATA_WARDENS_SHIELD:
159  return WardensShieldGUID;
160  default:
161  break;
162  }
163  return ObjectGuid::Empty;
164  }
Definition: arcatraz.h:31
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
Definition: arcatraz.h:41
ObjectGuid WardensShieldGUID
Definition: instance_arcatraz.cpp:194
Definition: arcatraz.h:30
ObjectGuid SoccothratesGUID
Definition: instance_arcatraz.cpp:191
Definition: arcatraz.h:42
ObjectGuid DalliahGUID
Definition: instance_arcatraz.cpp:190
ObjectGuid MellicharGUID
Definition: instance_arcatraz.cpp:193
void instance_arcatraz::instance_arcatraz_InstanceMapScript::OnCreatureCreate ( Creature creature)
inlineoverridevirtual

Reimplemented from InstanceScript.

48  {
49  switch (creature->GetEntry())
50  {
51  case NPC_DALLIAH:
52  DalliahGUID = creature->GetGUID();
53  break;
54  case NPC_SOCCOTHRATES:
55  SoccothratesGUID = creature->GetGUID();
56  break;
57  case NPC_MELLICHAR:
58  MellicharGUID = creature->GetGUID();
59  break;
60  default:
61  break;
62  }
63  }
Definition: arcatraz.h:47
ObjectGuid SoccothratesGUID
Definition: instance_arcatraz.cpp:191
Definition: arcatraz.h:48
ObjectGuid DalliahGUID
Definition: instance_arcatraz.cpp:190
ObjectGuid const & GetGUID() const
Definition: Object.h:105
ObjectGuid MellicharGUID
Definition: instance_arcatraz.cpp:193
uint32 GetEntry() const
Definition: Object.h:107
Definition: arcatraz.h:49

+ Here is the call graph for this function:

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

Reimplemented from InstanceScript.

66  {
67  switch (go->GetEntry())
68  {
71  AddDoor(go, true);
72  break;
74  StasisPodGUIDs[0] = go->GetGUID();
75  break;
76  case GO_STASIS_POD_BETA:
77  StasisPodGUIDs[1] = go->GetGUID();
78  break;
80  StasisPodGUIDs[2] = go->GetGUID();
81  break;
83  StasisPodGUIDs[3] = go->GetGUID();
84  break;
86  StasisPodGUIDs[4] = go->GetGUID();
87  break;
88  case GO_WARDENS_SHIELD:
89  WardensShieldGUID = go->GetGUID();
90  break;
91  default:
92  break;
93  }
94  }
Definition: arcatraz.h:60
ObjectGuid WardensShieldGUID
Definition: instance_arcatraz.cpp:194
Definition: arcatraz.h:57
Definition: arcatraz.h:58
ObjectGuid StasisPodGUIDs[5]
Definition: instance_arcatraz.cpp:192
Definition: arcatraz.h:61
Definition: arcatraz.h:59
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: arcatraz.h:62
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_arcatraz::instance_arcatraz_InstanceMapScript::OnGameObjectRemove ( GameObject go)
inlineoverridevirtual

Reimplemented from InstanceScript.

97  {
98  switch (go->GetEntry())
99  {
102  AddDoor(go, false);
103  break;
104  default:
105  break;
106  }
107  }
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_arcatraz::instance_arcatraz_InstanceMapScript::SetBossState ( uint32  type,
EncounterState  state 
)
inlineoverridevirtual

Reimplemented from InstanceScript.

167  {
168  if (!InstanceScript::SetBossState(type, state))
169  return false;
170 
171  switch (type)
172  {
174  if (state == NOT_STARTED || state == FAIL)
175  {
181  }
182  break;
183  default:
184  break;
185  }
186  return true;
187  }
Definition: arcatraz.h:32
Definition: arcatraz.h:40
Definition: InstanceScript.h:60
Definition: arcatraz.h:39
void SetData(uint32 type, uint32 data) override
Definition: instance_arcatraz.cpp:109
Definition: InstanceScript.h:58
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:273
Definition: arcatraz.h:37
Definition: arcatraz.h:36
Definition: arcatraz.h:38

+ Here is the call graph for this function:

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

Reimplemented from ZoneScript.

110  {
111  switch (type)
112  {
113  case DATA_WARDEN_1:
114  case DATA_WARDEN_2:
115  case DATA_WARDEN_3:
116  case DATA_WARDEN_4:
117  case DATA_WARDEN_5:
118  if (data == IN_PROGRESS)
120  StasisPodStates[type - DATA_WARDEN_1] = uint8(data);
121  break;
122  case DATA_CONVERSATION:
123  ConversationState = uint8(data);
124  break;
125  default:
126  break;
127  }
128  }
uint8 ConversationState
Definition: instance_arcatraz.cpp:196
Definition: arcatraz.h:40
uint8 StasisPodStates[5]
Definition: instance_arcatraz.cpp:197
ObjectGuid StasisPodGUIDs[5]
Definition: instance_arcatraz.cpp:192
Definition: arcatraz.h:39
Definition: InstanceScript.h:59
Definition: arcatraz.h:35
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
Definition: InstanceScript.cpp:397
uint8_t uint8
Definition: g3dmath.h:164
Definition: arcatraz.h:37
Definition: arcatraz.h:36
Definition: arcatraz.h:38

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint8 instance_arcatraz::instance_arcatraz_InstanceMapScript::ConversationState
protected
ObjectGuid instance_arcatraz::instance_arcatraz_InstanceMapScript::DalliahGUID
protected
ObjectGuid instance_arcatraz::instance_arcatraz_InstanceMapScript::MellicharGUID
protected
ObjectGuid instance_arcatraz::instance_arcatraz_InstanceMapScript::SoccothratesGUID
protected
ObjectGuid instance_arcatraz::instance_arcatraz_InstanceMapScript::StasisPodGUIDs[5]
protected
uint8 instance_arcatraz::instance_arcatraz_InstanceMapScript::StasisPodStates[5]
protected
ObjectGuid instance_arcatraz::instance_arcatraz_InstanceMapScript::WardensShieldGUID
protected

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