AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_main_chambers_access_panel Class Reference
Inheritance diagram for go_main_chambers_access_panel:
GameObjectScript ScriptObject UpdatableScript< GameObject >

Public Member Functions

 go_main_chambers_access_panel ()
 
bool OnGossipHello (Player *, GameObject *go) override
 
- Public Member Functions inherited from GameObjectScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, GameObject *)
 
virtual bool OnGossipSelect (Player *, GameObject *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, GameObject *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, GameObject *, Quest const *)
 
virtual bool OnQuestReward (Player *, GameObject *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, GameObject *)
 
virtual void OnDestroyed (GameObject *, Player *)
 
virtual void OnDamaged (GameObject *, Player *)
 
virtual void OnLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetAI (GameObject *) const
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
- Public Member Functions inherited from UpdatableScript< GameObject >
virtual void OnUpdate (GameObject *, uint32)
 

Additional Inherited Members

- Protected Member Functions inherited from GameObjectScript
 GameObjectScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ go_main_chambers_access_panel()

go_main_chambers_access_panel::go_main_chambers_access_panel ( )
inline
25: GameObjectScript("go_main_chambers_access_panel") { }
Definition: ScriptMgr.h:759

Member Function Documentation

◆ OnGossipHello()

bool go_main_chambers_access_panel::OnGossipHello ( Player ,
GameObject go 
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

28 {
29 if (InstanceScript* instance = go->GetInstanceScript())
30 {
32 {
33 if (instance->GetBossState(DATA_HYDROMANCER_THESPIA) == DONE)
34 {
36 }
37 }
38 else
39 {
40 if (instance->GetBossState(DATA_MEKGINEER_STEAMRIGGER) == DONE)
41 {
43 }
44 }
45
46 if (instance->GetBossState(DATA_HYDROMANCER_THESPIA) == DONE && instance->GetBossState(DATA_MEKGINEER_STEAMRIGGER) == DONE)
47 {
48 if (GameObject* mainGate = instance->GetGameObject(DATA_MAIN_CHAMBERS_DOOR))
49 {
50 instance->HandleGameObject(ObjectGuid::Empty, true, mainGate);
51 }
52 }
53
54 return true;
55 }
56
57 return false;
58 }
@ DONE
Definition: InstanceScript.h:59
@ DATA_MAIN_CHAMBERS_DOOR
Definition: steam_vault.h:39
@ DATA_HYDROMANCER_THESPIA
Definition: steam_vault.h:32
@ DATA_MEKGINEER_STEAMRIGGER
Definition: steam_vault.h:33
@ GO_ACCESS_PANEL_HYDRO
Definition: steam_vault.h:45
@ GO_FLAG_NOT_SELECTABLE
Definition: SharedDefines.h:1579
Definition: GameObject.h:122
void SetGameObjectFlag(GameObjectFlags flags)
Definition: GameObject.h:220
uint32 GetEntry() const
Definition: Object.h:109
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
static ObjectGuid const Empty
Definition: ObjectGuid.h:122
Definition: InstanceScript.h:140

References DATA_HYDROMANCER_THESPIA, DATA_MAIN_CHAMBERS_DOOR, DATA_MEKGINEER_STEAMRIGGER, DONE, ObjectGuid::Empty, Object::GetEntry(), WorldObject::GetInstanceScript(), GO_ACCESS_PANEL_HYDRO, GO_FLAG_NOT_SELECTABLE, and GameObject::SetGameObjectFlag().