TrinityCore
BattlegroundDS.h
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#ifndef __BATTLEGROUNDDS_H
19#define __BATTLEGROUNDDS_H
20
21#include "Arena.h"
22#include "EventMap.h"
23
25{
28 BG_DS_OBJECT_WATER_1 = 2, // Collision
33};
34
36{
39 BG_DS_OBJECT_TYPE_WATER_1 = 194395, // Collision
43};
44
46{
51};
52
54{
56};
57
59{
60 BG_DS_SPELL_FLUSH = 57405, // Visual and target selector for the starting knockback from the pipe
61 BG_DS_SPELL_FLUSH_KNOCKBACK = 61698, // Knockback effect for previous spell (triggered, not needed to be cast)
62 BG_DS_SPELL_WATER_SPOUT = 58873, // Knockback effect of the central waterfall
63
64 SPELL_WARL_DEMONIC_CIRCLE = 48018 // Demonic Circle Summon
65};
66
68{
69 // These values are NOT blizzlike... need the correct data!
73};
74
75// These values are NOT blizzlike... need the correct data!
76inline constexpr Seconds BG_DS_WATERFALL_TIMER_MIN = 30s;
77inline constexpr Seconds BG_DS_WATERFALL_TIMER_MAX = 60s;
79inline constexpr Seconds BG_DS_WATERFALL_DURATION = 30s;
82
84{
85 BG_DS_EVENT_WATERFALL_WARNING = 1, // Water starting to fall, but no LoS Blocking nor movement blocking
86 BG_DS_EVENT_WATERFALL_ON = 2, // LoS and Movement blocking active
89
91};
92
93class BattlegroundDS : public Arena
94{
95 public:
96 BattlegroundDS(BattlegroundTemplate const* battlegroundTemplate);
97
98 /* inherited from BattlegroundClass */
99 void StartingEventCloseDoors() override;
100 void StartingEventOpenDoors() override;
101
102 bool SetupBattleground() override;
103
104 void SetData(uint32 dataId, uint32 value) override;
105 uint32 GetData(uint32 dataId) const override;
106 private:
107 void PostUpdateImpl(uint32 diff) override;
108
110
113};
114
115#endif
constexpr Milliseconds BG_DS_WATERFALL_KNOCKBACK_TIMER
BattlegroundDSCreatures
@ BG_DS_NPC_TYPE_WATER_SPOUT
BattlegroundDSEvents
@ BG_DS_EVENT_WATERFALL_ON
@ BG_DS_EVENT_WATERFALL_WARNING
@ BG_DS_EVENT_PIPE_KNOCKBACK
@ BG_DS_EVENT_WATERFALL_KNOCKBACK
@ BG_DS_EVENT_WATERFALL_OFF
BattlegroundDSSpells
@ BG_DS_SPELL_FLUSH_KNOCKBACK
@ BG_DS_SPELL_FLUSH
@ BG_DS_SPELL_WATER_SPOUT
@ SPELL_WARL_DEMONIC_CIRCLE
constexpr Seconds BG_DS_WATERFALL_TIMER_MIN
constexpr Seconds BG_DS_WATERFALL_DURATION
BattlegroundDSGameObjects
@ BG_DS_OBJECT_TYPE_BUFF_1
@ BG_DS_OBJECT_TYPE_DOOR_2
@ BG_DS_OBJECT_TYPE_DOOR_1
@ BG_DS_OBJECT_TYPE_WATER_2
@ BG_DS_OBJECT_TYPE_WATER_1
@ BG_DS_OBJECT_TYPE_BUFF_2
BattlegroundDSObjectTypes
@ BG_DS_OBJECT_DOOR_2
@ BG_DS_OBJECT_WATER_2
@ BG_DS_OBJECT_MAX
@ BG_DS_OBJECT_DOOR_1
@ BG_DS_OBJECT_BUFF_1
@ BG_DS_OBJECT_BUFF_2
@ BG_DS_OBJECT_WATER_1
BattlegroundDSData
@ BG_DS_PIPE_KNOCKBACK_DELAY
@ BG_DS_PIPE_KNOCKBACK_FIRST_DELAY
@ BG_DS_PIPE_KNOCKBACK_TOTAL_COUNT
constexpr Seconds BG_DS_WATERFALL_TIMER_MAX
BattlegroundDSCreatureTypes
@ BG_DS_NPC_PIPE_KNOCKBACK_2
@ BG_DS_NPC_PIPE_KNOCKBACK_1
@ BG_DS_NPC_WATERFALL_KNOCKBACK
@ BG_DS_NPC_MAX
constexpr Seconds BG_DS_WATERFALL_WARNING_DURATION
constexpr uint32 BG_DS_DATA_PIPE_KNOCKBACK_COUNT
uint8_t uint8
Definition: Define.h:144
uint32_t uint32
Definition: Define.h:142
std::chrono::seconds Seconds
Seconds shorthand typedef.
Definition: Duration.h:32
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
Definition: Duration.h:29
Definition: Arena.h:57
uint8 _pipeKnockBackCount
void PostUpdateImpl(uint32 diff) override
Post-update hook.
uint32 GetData(uint32 dataId) const override
BattlegroundDS(BattlegroundTemplate const *battlegroundTemplate)
void SetData(uint32 dataId, uint32 value) override
uint32 _pipeKnockBackTimer
void StartingEventOpenDoors() override
bool SetupBattleground() override
void StartingEventCloseDoors() override