TrinityCore
instance_underrot.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 "AreaBoundary.h"
19#include "InstanceScript.h"
20#include "ScriptMgr.h"
21#include "underrot.h"
22
24{
25 { DATA_ELDER_LEAXA, new CircleBoundary(Position(869.502014f, 1230.199951f), 58.0f) },
26 { DATA_CRAGMAW_THE_INFESTED, new CircleBoundary(Position(852.797974f, 982.133545f), 90.0f) }
27};
28
30{
35 { 0, 0 } // END
36};
37
39{
42};
43
45{
46 { DATA_ELDER_LEAXA, {{ 2111 }} },
47 { DATA_CRAGMAW_THE_INFESTED, {{ 2112 }} },
48 { DATA_SPORECALLER_ZANCHA, {{ 2118 }} },
49 { DATA_UNBOUND_ABOMINATION, {{ 2123 }} },
50};
51
53{
54public:
56
58 {
60 {
67
68 _cragmawCrawgEating = false;
69 }
70
71 uint32 GetData(uint32 dataId) const override
72 {
73 switch (dataId)
74 {
76 return _cragmawCrawgEating ? 1 : 0;
77 default:
78 break;
79 }
80 return 0;
81 }
82
83 void SetData(uint32 dataId, uint32 /*value*/) override
84 {
85 switch (dataId)
86 {
89 break;
90 default:
91 break;
92 }
93 }
94
95 private:
97 };
98
100 {
102 }
103};
104
106{
107 new instance_underrot();
108}
uint32_t uint32
Definition: Define.h:142
#define DataHeader
uint32 const EncounterCount
void SetBossNumber(uint32 number)
void LoadDungeonEncounterData(T const &encounters)
void LoadDoorData(DoorData const *data)
void LoadBossBoundaries(BossBoundaryData const &data)
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_underrot()
DoorData const doorData[]
BossBoundaryData const boundaries
DungeonEncounterData const encounters[]
#define UnderrotScriptName
Definition: underrot.h:24
@ DATA_CRAGMAW_CRAWG_EATING
Definition: underrot.h:36
@ DATA_CRAGMAW_THE_INFESTED
Definition: underrot.h:33
@ DATA_SPORECALLER_ZANCHA
Definition: underrot.h:32
@ DATA_ELDER_LEAXA
Definition: underrot.h:31
@ DATA_UNBOUND_ABOMINATION
Definition: underrot.h:34
@ GO_WALL_DOOR_SHORTCUT_ENTRANCE
Definition: underrot.h:51
@ BOSS_UNBOUND_ABOMINATION
Definition: underrot.h:45
@ BOSS_CRAGMAW_THE_INFESTED
Definition: underrot.h:44
@ BOSS_SPORECALLER_ZANCHA
Definition: underrot.h:43
@ BOSS_ELDER_LEAXA
Definition: underrot.h:42