TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BattlegroundDS.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef __BATTLEGROUNDDS_H
20 #define __BATTLEGROUNDDS_H
21 
22 #include "Arena.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!
75 
79 };
80 
82 {
83  BG_DS_EVENT_WATERFALL_WARNING = 1, // Water starting to fall, but no LoS Blocking nor movement blocking
84  BG_DS_EVENT_WATERFALL_ON = 2, // LoS and Movement blocking active
87 
89 };
90 
91 class BattlegroundDS : public Arena
92 {
93  public:
95 
96  /* inherited from BattlegroundClass */
97  void StartingEventCloseDoors() override;
98  void StartingEventOpenDoors() override;
99 
100  void HandleAreaTrigger(Player* source, uint32 trigger, bool entered) override;
101  bool SetupBattleground() override;
103 
104  private:
105  void PostUpdateImpl(uint32 diff) override;
106 
108 
111 };
112 #endif
Definition: BattlegroundDS.h:84
BattlegroundDSCreatureTypes
Definition: BattlegroundDS.h:45
Definition: BattlegroundDS.h:32
Definition: BattlegroundDS.h:86
Definition: BattlegroundDS.h:64
Definition: BattlegroundDS.h:27
Definition: BattlegroundDS.h:50
Definition: BattlegroundDS.h:61
Definition: BattlegroundDS.h:77
Definition: BattlegroundDS.h:29
Definition: BattlegroundDS.h:48
BattlegroundDSGameObjects
Definition: BattlegroundDS.h:35
Definition: BattlegroundDS.h:39
Definition: BattlegroundDS.h:91
Definition: BattlegroundDS.h:28
Definition: BattlegroundDS.h:26
Definition: BattlegroundDS.h:37
EventMap _events
Definition: BattlegroundDS.h:107
Definition: BattlegroundDS.h:42
Definition: BattlegroundDS.h:70
BattlegroundDSCreatures
Definition: BattlegroundDS.h:53
Definition: BattlegroundDS.h:72
Definition: BattlegroundDS.h:74
Definition: BattlegroundDS.h:30
BattlegroundDSSpells
Definition: BattlegroundDS.h:58
Definition: BattlegroundDS.h:76
void StartingEventCloseDoors() override
Definition: BattlegroundDS.cpp:92
bool SetupBattleground() override
Definition: BattlegroundDS.cpp:153
Definition: BattlegroundDS.h:55
Definition: BattlegroundDS.h:73
Definition: BattlegroundDS.h:38
Definition: BattlegroundDS.h:31
Definition: Arena.h:39
Definition: BattlegroundDS.h:47
Definition: BattlegroundDS.h:85
Definition: EventMap.h:25
uint32_t uint32
Definition: Define.h:150
Definition: BattlegroundDS.h:78
Definition: BattlegroundDS.h:49
Definition: WorldStatePackets.h:27
Definition: BattlegroundDS.h:71
uint32 _pipeKnockBackTimer
Definition: BattlegroundDS.h:109
void StartingEventOpenDoors() override
Definition: BattlegroundDS.cpp:98
Definition: BattlegroundDS.h:60
Definition: BattlegroundDS.h:41
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &packet) override
Definition: BattlegroundDS.cpp:147
Definition: BattlegroundDS.h:40
Definition: BattlegroundDS.h:62
Definition: BattlegroundDS.h:88
uint8_t uint8
Definition: Define.h:152
Definition: BattlegroundDS.h:83
BattlegroundDS()
Definition: BattlegroundDS.cpp:24
uint8 _pipeKnockBackCount
Definition: BattlegroundDS.h:110
BattlegroundDSObjectTypes
Definition: BattlegroundDS.h:24
void HandleAreaTrigger(Player *source, uint32 trigger, bool entered) override
Definition: BattlegroundDS.cpp:124
void PostUpdateImpl(uint32 diff) override
Post-update hook.
Definition: BattlegroundDS.cpp:33
BattlegroundDSData
Definition: BattlegroundDS.h:67
BattlegroundDSEvents
Definition: BattlegroundDS.h:81