TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BattlegroundRV.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 #ifndef __BATTLEGROUNDRV_H
19 #define __BATTLEGROUNDRV_H
20 
21 #include "Arena.h"
22 
24 {
31 
36 
41 
46 
50 };
51 
53 {
58 
67 
70  BG_RV_OBJECT_TYPE_PILAR_COLLISION_3 = 194581, // lightning
72 
73  BG_RV_OBJECT_TYPE_PILAR_1 = 194583, // axe
74  BG_RV_OBJECT_TYPE_PILAR_2 = 194584, // arena
75  BG_RV_OBJECT_TYPE_PILAR_3 = 194585, // lightning
76  BG_RV_OBJECT_TYPE_PILAR_4 = 194587 // ivory
77 };
78 
80 {
84 
89 
91 };
92 
93 class BattlegroundRV : public Arena
94 {
95  public:
97 
98  /* inherited from BattlegroundClass */
99  void StartingEventOpenDoors() override;
101 
102  void HandleAreaTrigger(Player* source, uint32 trigger, bool entered) override;
103  bool SetupBattleground() override;
104 
105  private:
106  void PostUpdateImpl(uint32 diff) override;
107 
108  void TogglePillarCollision();
109 
113 };
114 #endif
Definition: BattlegroundRV.h:55
Definition: BattlegroundRV.h:60
Definition: BattlegroundRV.h:49
Definition: BattlegroundRV.h:57
Definition: BattlegroundRV.h:43
Definition: BattlegroundRV.h:54
Definition: BattlegroundRV.h:66
Definition: BattlegroundRV.h:62
Definition: BattlegroundRV.h:34
Definition: BattlegroundRV.h:27
BattlegroundRVGameObjects
Definition: BattlegroundRV.h:52
Definition: BattlegroundRV.h:68
Definition: BattlegroundRV.h:73
Definition: BattlegroundRV.h:64
Definition: BattlegroundRV.h:32
uint32 _timer
Definition: BattlegroundRV.h:110
Definition: BattlegroundRV.h:48
Definition: BattlegroundRV.h:33
Definition: BattlegroundRV.h:35
Definition: BattlegroundRV.h:74
Definition: BattlegroundRV.h:38
Definition: BattlegroundRV.h:85
Definition: BattlegroundRV.h:82
Definition: BattlegroundRV.h:76
Definition: BattlegroundRV.h:26
Definition: BattlegroundRV.h:63
Definition: BattlegroundRV.h:83
Definition: BattlegroundRV.h:75
BattlegroundRVObjectTypes
Definition: BattlegroundRV.h:23
Definition: BattlegroundRV.h:28
Definition: BattlegroundRV.h:30
Definition: BattlegroundRV.h:61
Definition: Arena.h:39
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &packet) override
Definition: BattlegroundRV.cpp:103
Definition: BattlegroundRV.h:59
uint32_t uint32
Definition: Define.h:150
Definition: BattlegroundRV.h:25
Definition: BattlegroundRV.h:29
Definition: WorldStatePackets.h:27
Definition: BattlegroundRV.h:39
Definition: BattlegroundRV.h:37
Definition: BattlegroundRV.h:71
Definition: BattlegroundRV.h:88
Definition: BattlegroundRV.h:56
void StartingEventOpenDoors() override
Definition: BattlegroundRV.cpp:67
Definition: BattlegroundRV.h:69
Definition: BattlegroundRV.h:93
Definition: BattlegroundRV.h:90
void HandleAreaTrigger(Player *source, uint32 trigger, bool entered) override
Definition: BattlegroundRV.cpp:84
Definition: BattlegroundRV.h:42
Definition: BattlegroundRV.h:65
Definition: BattlegroundRV.h:81
uint32 _state
Definition: BattlegroundRV.h:111
BattlegroundRVData
Definition: BattlegroundRV.h:79
Definition: BattlegroundRV.h:45
Definition: BattlegroundRV.h:40
Definition: BattlegroundRV.h:70
void PostUpdateImpl(uint32 diff) override
Post-update hook.
Definition: BattlegroundRV.cpp:34
Definition: BattlegroundRV.h:47
void TogglePillarCollision()
Definition: BattlegroundRV.cpp:146
Definition: BattlegroundRV.h:87
Definition: BattlegroundRV.h:44
bool _pillarCollision
Definition: BattlegroundRV.h:112
BattlegroundRV()
Definition: BattlegroundRV.cpp:25
Definition: BattlegroundRV.h:86
bool SetupBattleground() override
Definition: BattlegroundRV.cpp:109