TrinityCore
Loading...
Searching...
No Matches
instance_steam_vault.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "ScriptMgr.h"
19#include "Creature.h"
20#include "CreatureAI.h"
21#include "GameObject.h"
22#include "InstanceScript.h"
23#include "steam_vault.h"
24
32
41
43{
44 public:
46
48 {
55
69
70 bool SetBossState(uint32 type, EncounterState state) override
71 {
72 if (!InstanceScript::SetBossState(type, state))
73 return false;
74
75 switch (type)
76 {
78 if (state == DONE)
80 panel->ActivateObject(GameObjectActions::MakeActive);
81 break;
83 if (state == DONE)
85 panel->ActivateObject(GameObjectActions::MakeActive);
86 break;
87 default:
88 break;
89 }
90
91 return true;
92 }
93 };
94
96 {
98 }
99};
100
uint32_t uint32
Definition Define.h:133
EncounterState
@ DONE
#define DataHeader
uint32 const EncounterCount
void ActivateObject(GameObjectActions action, WorldObject *spellCaster=nullptr, uint32 spellId=0, int32 effectIndex=-1)
void SetBossNumber(uint32 number)
virtual bool SetBossState(uint32 id, EncounterState state)
void HandleGameObject(ObjectGuid guid, bool open, GameObject *go=nullptr)
EncounterState GetBossState(uint32 id) const
virtual void OnGameObjectCreate(GameObject *go) override
GameObject * GetGameObject(uint32 type)
void SetHeaders(std::string const &dataHeaders)
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
static ObjectGuid const Empty
Definition ObjectGuid.h:140
uint32 GetEntry() const
Definition Object.h:81
InstanceScript * GetInstanceScript(InstanceMap *map) const override
static constexpr ObjectData creatureData[]
void AddSC_instance_steam_vault()
static constexpr ObjectData gameObjectData[]
@ NPC_COILFANG_DOOR_CONTROLLER
Definition steam_vault.h:45
@ NPC_HYDROMANCER_THESPIA
Definition steam_vault.h:42
@ NPC_WARLORD_KALITHRESH
Definition steam_vault.h:44
@ NPC_MEKGINEER_STEAMRIGGER
Definition steam_vault.h:43
#define SteamVaultScriptName
Definition steam_vault.h:23
@ DATA_MAIN_CHAMBERS_DOOR
Definition steam_vault.h:36
@ DATA_HYDROMANCER_THESPIA
Definition steam_vault.h:30
@ DATA_ACCESS_PANEL_STEAMRIGGER
Definition steam_vault.h:35
@ DATA_DOOR_CONTROLLER
Definition steam_vault.h:37
@ DATA_MEKGINEER_STEAMRIGGER
Definition steam_vault.h:31
@ DATA_ACCESS_PANEL_THESPIA
Definition steam_vault.h:34
@ DATA_WARLORD_KALITHRESH
Definition steam_vault.h:32
@ GO_ACCESS_PANEL_THESPIA
Definition steam_vault.h:50
@ GO_ACCESS_PANEL_STEAMRIGGER
Definition steam_vault.h:51
@ GO_MAIN_CHAMBERS_DOOR
Definition steam_vault.h:52
bool SetBossState(uint32 type, EncounterState state) override