TrinityCore
instance_blackrock_caverns.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 "blackrock_caverns.h"
20#include "InstanceScript.h"
21
23{
25 { 0, 0 }
26};
27
29{
30 { DATA_ROMOGG_BONECRUSHER, {{ 1040 }} },
31 { DATA_CORLA, {{ 1038 }} },
32 { DATA_KARSH_STEELBENDER, {{ 1039 }} },
33 { DATA_BEAUTY, {{ 1037 }} },
34 { DATA_ASCENDANT_LORD_OBSIDIUS, {{ 1036 }} }
35};
36
38{
39 public:
41
43 {
45 {
50 }
51
52 bool SetBossState(uint32 type, EncounterState state) override
53 {
54 if (!InstanceScript::SetBossState(type, state))
55 return false;
56
57 switch (type)
58 {
60 case DATA_CORLA:
62 case DATA_BEAUTY:
64 break;
65 default:
66 break;
67 }
68
69 return true;
70 }
71 };
72
74 {
76 }
77};
78
80{
82}
uint32_t uint32
Definition: Define.h:142
EncounterState
#define DataHeader
uint32 const EncounterCount
@ NPC_RAZ_THE_CRAZED
@ DATA_ASCENDANT_LORD_OBSIDIUS
@ DATA_RAZ_THE_CRAZED
@ DATA_CORLA
@ DATA_KARSH_STEELBENDER
@ DATA_ROMOGG_BONECRUSHER
@ DATA_BEAUTY
#define BCScriptName
void SetBossNumber(uint32 number)
virtual bool SetBossState(uint32 id, EncounterState state)
void LoadDungeonEncounterData(T const &encounters)
void SetHeaders(std::string const &dataHeaders)
void LoadObjectData(ObjectData const *creatureData, ObjectData const *gameObjectData)
InstanceScript * GetInstanceScript(InstanceMap *map) const override
ObjectData const creatureData[]
void AddSC_instance_blackrock_caverns()
DungeonEncounterData const encounters[]