TrinityCore
BattlegroundRV.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#ifndef __BATTLEGROUNDRV_H
18#define __BATTLEGROUNDRV_H
19
20#include "Arena.h"
21
23{
30
35
40
45
49};
50
52{
57
66
71
73 BG_RV_OBJECT_TYPE_PILAR_2 = 194584, // arena
74 BG_RV_OBJECT_TYPE_PILAR_3 = 194585, // lightning
75 BG_RV_OBJECT_TYPE_PILAR_4 = 194587 // ivory
76};
77
79{
83
88};
89
90class BattlegroundRV : public Arena
91{
92 public:
93 BattlegroundRV(BattlegroundTemplate const* battlegroundTemplate);
94
95 /* inherited from BattlegroundClass */
96 void StartingEventOpenDoors() override;
97
98 bool SetupBattleground() override;
99
100 private:
101 void PostUpdateImpl(uint32 diff) override;
102
104
108};
109#endif
BattlegroundRVObjectTypes
@ BG_RV_OBJECT_PILAR_1
@ BG_RV_OBJECT_PULLEY_2
@ BG_RV_OBJECT_PILAR_COLLISION_1
@ BG_RV_OBJECT_PILAR_4
@ BG_RV_OBJECT_ELEVATOR_1
@ BG_RV_OBJECT_MAX
@ BG_RV_OBJECT_PILAR_COLLISION_3
@ BG_RV_OBJECT_FIRE_2
@ BG_RV_OBJECT_GEAR_1
@ BG_RV_OBJECT_ELEVATOR_2
@ BG_RV_OBJECT_FIREDOOR_2
@ BG_RV_OBJECT_FIREDOOR_1
@ BG_RV_OBJECT_PILAR_COLLISION_4
@ BG_RV_OBJECT_PULLEY_1
@ BG_RV_OBJECT_GEAR_2
@ BG_RV_OBJECT_PILAR_2
@ BG_RV_OBJECT_PILAR_COLLISION_2
@ BG_RV_OBJECT_BUFF_1
@ BG_RV_OBJECT_BUFF_2
@ BG_RV_OBJECT_FIRE_1
@ BG_RV_OBJECT_PILAR_3
BattlegroundRVGameObjects
@ BG_RV_OBJECT_TYPE_PILAR_2
@ BG_RV_OBJECT_TYPE_PILAR_1
@ BG_RV_OBJECT_TYPE_PILAR_4
@ BG_RV_OBJECT_TYPE_ELEVATOR_1
@ BG_RV_OBJECT_TYPE_BUFF_1
@ BG_RV_OBJECT_TYPE_BUFF_2
@ BG_RV_OBJECT_TYPE_PULLEY_2
@ BG_RV_OBJECT_TYPE_PILAR_COLLISION_2
@ BG_RV_OBJECT_TYPE_GEAR_2
@ BG_RV_OBJECT_TYPE_PILAR_COLLISION_3
@ BG_RV_OBJECT_TYPE_FIREDOOR_2
@ BG_RV_OBJECT_TYPE_PILAR_COLLISION_4
@ BG_RV_OBJECT_TYPE_PILAR_COLLISION_1
@ BG_RV_OBJECT_TYPE_PILAR_3
@ BG_RV_OBJECT_TYPE_FIREDOOR_1
@ BG_RV_OBJECT_TYPE_FIRE_2
@ BG_RV_OBJECT_TYPE_ELEVATOR_2
@ BG_RV_OBJECT_TYPE_GEAR_1
@ BG_RV_OBJECT_TYPE_PULLEY_1
@ BG_RV_OBJECT_TYPE_FIRE_1
BattlegroundRVData
@ BG_RV_PILLAR_SWITCH_TIMER
@ BG_RV_CLOSE_FIRE_TIMER
@ BG_RV_FIRST_TIMER
@ BG_RV_FIRE_TO_PILLAR_TIMER
@ BG_RV_STATE_SWITCH_PILLARS
@ BG_RV_STATE_CLOSE_FIRE
@ BG_RV_STATE_OPEN_FENCES
uint32_t uint32
Definition: Define.h:142
Definition: Arena.h:57
void StartingEventOpenDoors() override
void TogglePillarCollision()
BattlegroundRV(BattlegroundTemplate const *battlegroundTemplate)
void PostUpdateImpl(uint32 diff) override
Post-update hook.
bool SetupBattleground() override