TrinityCore
Loading...
Searching...
No Matches
instance_sethekk_halls.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 "GameObject.h"
21#include "InstanceScript.h"
22#include "sethekk_halls.h"
23
29
31{
33 { 0, 0 } // END
34};
35
37{
38 public:
40
42 {
50
51 bool SetBossState(uint32 type, EncounterState state) override
52 {
53 if (!InstanceScript::SetBossState(type, state))
54 return false;
55
56 switch (type)
57 {
59 if (state == DONE)
60 {
66 }
67 break;
68 default:
69 break;
70 }
71 return true;
72 }
73 };
74
76 {
78 }
79};
80
uint32_t uint32
Definition Define.h:133
EncounterState
@ DONE
@ DOOR_TYPE_ROOM
@ DOOR_TYPE_PASSAGE
@ GO_FLAG_INTERACT_COND
@ GO_FLAG_NOT_SELECTABLE
#define DataHeader
uint32 const EncounterCount
void SetBossNumber(uint32 number)
virtual bool SetBossState(uint32 id, EncounterState state)
void LoadDoorData(DoorData const *data)
GameObject * GetGameObject(uint32 type)
void SetHeaders(std::string const &dataHeaders)
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
InstanceScript * GetInstanceScript(InstanceMap *map) const override
void AddSC_instance_sethekk_halls()
ObjectData const gameObjectData[]
DoorData const doorData[]
@ DATA_TALON_KING_COFFER
@ DATA_TALON_KING_IKISS
#define SHScriptName
@ GO_IKISS_DOOR
@ GO_TALON_KING_COFFER
bool SetBossState(uint32 type, EncounterState state) override