TrinityCore
Loading...
Searching...
No Matches
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
34
44
52
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;
81
83{
84 BG_DS_EVENT_WATERFALL_WARNING = 1, // Water starting to fall, but no LoS Blocking nor movement blocking
85 BG_DS_EVENT_WATERFALL_ON = 2, // LoS and Movement blocking active
88
90};
91
92class BattlegroundDS : public Arena
93{
94 public:
96
97 /* inherited from BattlegroundClass */
98 void StartingEventCloseDoors() override;
99 void StartingEventOpenDoors() override;
100
101 void HandleAreaTrigger(Player* Source, uint32 Trigger) override;
102 bool SetupBattleground() override;
104
105 private:
106 void PostUpdateImpl(uint32 diff) override;
107
109
112};
113
114#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
uint8_t uint8
Definition Define.h:135
uint32_t uint32
Definition Define.h:133
std::chrono::seconds Seconds
Seconds shorthand typedef.
Definition Duration.h:27
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
Definition Duration.h:24
Definition Arena.h:48
void HandleAreaTrigger(Player *Source, uint32 Trigger) override
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &packet) override
void PostUpdateImpl(uint32 diff) override
Post-update hook.
uint32 _pipeKnockBackTimer
void StartingEventOpenDoors() override
bool SetupBattleground() override
void StartingEventCloseDoors() override