Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
BattlegroundRV.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of Project SkyFire https://www.projectskyfire.org.
3
* See LICENSE.md file for Copyright information
4
*/
5
6
#include "
Battleground.h
"
7
#include "
BattlegroundRV.h
"
8
#include "
GameObject.h
"
9
#include "
Language.h
"
10
#include "
ObjectAccessor.h
"
11
#include "
Player.h
"
12
#include "
WorldPacket.h
"
13
14
BattlegroundRV::BattlegroundRV
() :
Timer
(0),
State
(0),
PillarCollision
(false)
15
{
16
BgObjects
.resize(
BG_RV_OBJECT_MAX
);
17
18
StartDelayTimes
[
BG_STARTING_EVENT_FIRST
] =
BG_START_DELAY_1M
;
19
StartDelayTimes
[
BG_STARTING_EVENT_SECOND
] =
BG_START_DELAY_30S
;
20
StartDelayTimes
[
BG_STARTING_EVENT_THIRD
] =
BG_START_DELAY_15S
;
21
StartDelayTimes
[
BG_STARTING_EVENT_FOURTH
] =
BG_START_DELAY_NONE
;
22
StartMessageIds
[
BG_STARTING_EVENT_FIRST
] =
LANG_ARENA_ONE_MINUTE
;
23
StartMessageIds
[
BG_STARTING_EVENT_SECOND
] =
LANG_ARENA_THIRTY_SECONDS
;
24
StartMessageIds
[
BG_STARTING_EVENT_THIRD
] =
LANG_ARENA_FIFTEEN_SECONDS
;
25
StartMessageIds
[
BG_STARTING_EVENT_FOURTH
] =
LANG_ARENA_HAS_BEGUN
;
26
}
27
28
BattlegroundRV::~BattlegroundRV
() { }
29
30
void
BattlegroundRV::PostUpdateImpl
(
uint32
diff)
31
{
32
if
(
GetStatus
() !=
STATUS_IN_PROGRESS
)
33
return
;
34
35
if
(
getTimer
() < diff)
36
{
37
switch
(
getState
())
38
{
39
case
BG_RV_STATE_OPEN_FENCES
:
40
// Open fire (only at game start)
41
for
(
uint8
i =
BG_RV_OBJECT_FIRE_1
; i <=
BG_RV_OBJECT_FIREDOOR_2
; ++i)
42
DoorOpen
(i);
43
setTimer
(
BG_RV_CLOSE_FIRE_TIMER
);
44
setState
(
BG_RV_STATE_CLOSE_FIRE
);
45
break
;
46
case
BG_RV_STATE_CLOSE_FIRE
:
47
for
(
uint8
i =
BG_RV_OBJECT_FIRE_1
; i <=
BG_RV_OBJECT_FIREDOOR_2
; ++i)
48
DoorClose
(i);
49
// Fire got closed after five seconds, leaves twenty seconds before toggling pillars
50
setTimer
(
BG_RV_FIRE_TO_PILLAR_TIMER
);
51
setState
(
BG_RV_STATE_SWITCH_PILLARS
);
52
break
;
53
case
BG_RV_STATE_SWITCH_PILLARS
:
54
TogglePillarCollision
();
55
setTimer
(
BG_RV_PILLAR_SWITCH_TIMER
);
56
break
;
57
}
58
}
59
else
60
setTimer
(
getTimer
() - diff);
61
}
62
63
void
BattlegroundRV::StartingEventCloseDoors
() { }
64
65
void
BattlegroundRV::StartingEventOpenDoors
()
66
{
67
// Buff respawn
68
SpawnBGObject
(
BG_RV_OBJECT_BUFF_1
, 90);
69
SpawnBGObject
(
BG_RV_OBJECT_BUFF_2
, 90);
70
// Elevators
71
DoorOpen
(
BG_RV_OBJECT_ELEVATOR_1
);
72
DoorOpen
(
BG_RV_OBJECT_ELEVATOR_2
);
73
74
setState
(
BG_RV_STATE_OPEN_FENCES
);
75
setTimer
(
BG_RV_FIRST_TIMER
);
76
77
// Should be false at first, TogglePillarCollision will do it.
78
SetPillarCollision
(
true
);
79
TogglePillarCollision
();
80
}
81
82
void
BattlegroundRV::AddPlayer
(
Player
* player)
83
{
84
Battleground::AddPlayer
(player);
85
PlayerScores
[player->
GetGUID
()] =
new
BattlegroundScore
;
86
87
UpdateWorldState
(
BG_RV_WORLD_STATE_A
,
GetAlivePlayersCountByTeam
(
ALLIANCE
));
88
UpdateWorldState
(
BG_RV_WORLD_STATE_H
,
GetAlivePlayersCountByTeam
(
HORDE
));
89
}
90
91
void
BattlegroundRV::RemovePlayer
(
Player
*
/*player*/
,
uint64
/*guid*/
,
uint32
/*team*/
)
92
{
93
if
(
GetStatus
() ==
STATUS_WAIT_LEAVE
)
94
return
;
95
96
UpdateWorldState
(
BG_RV_WORLD_STATE_A
,
GetAlivePlayersCountByTeam
(
ALLIANCE
));
97
UpdateWorldState
(
BG_RV_WORLD_STATE_H
,
GetAlivePlayersCountByTeam
(
HORDE
));
98
99
CheckArenaWinConditions
();
100
}
101
102
void
BattlegroundRV::HandleKillPlayer
(
Player
* player,
Player
* killer)
103
{
104
if
(
GetStatus
() !=
STATUS_IN_PROGRESS
)
105
return
;
106
107
if
(!killer)
108
{
109
SF_LOG_ERROR
(
"bg.battleground"
,
"BattlegroundRV: Killer player not found"
);
110
return
;
111
}
112
113
Battleground::HandleKillPlayer
(player, killer);
114
115
UpdateWorldState
(
BG_RV_WORLD_STATE_A
,
GetAlivePlayersCountByTeam
(
ALLIANCE
));
116
UpdateWorldState
(
BG_RV_WORLD_STATE_H
,
GetAlivePlayersCountByTeam
(
HORDE
));
117
118
CheckArenaWinConditions
();
119
}
120
121
void
BattlegroundRV::HandleAreaTrigger
(
Player
* player,
uint32
trigger)
122
{
123
if
(
GetStatus
() !=
STATUS_IN_PROGRESS
)
124
return
;
125
126
switch
(trigger)
127
{
128
case
5224:
129
case
5226:
130
// fire was removed in 3.2.0
131
case
5473:
132
case
5474:
133
break
;
134
default
:
135
Battleground::HandleAreaTrigger
(player, trigger);
136
break
;
137
}
138
}
139
140
void
BattlegroundRV::FillInitialWorldStates
(
WorldStateBuilder
& builder)
141
{
142
builder.
AppendState
(
BG_RV_WORLD_STATE_A
,
GetAlivePlayersCountByTeam
(
ALLIANCE
));
143
builder.
AppendState
(
BG_RV_WORLD_STATE_H
,
GetAlivePlayersCountByTeam
(
HORDE
));
144
builder.
AppendState
(
BG_RV_WORLD_STATE
, 1);
145
}
146
147
void
BattlegroundRV::Reset
()
148
{
149
//call parent's class reset
150
Battleground::Reset
();
151
}
152
153
bool
BattlegroundRV::SetupBattleground
()
154
{
155
// elevators
156
if
(!
AddObject
(
BG_RV_OBJECT_ELEVATOR_1
,
BG_RV_OBJECT_TYPE_ELEVATOR_1
, 763.536377f, -294.535767f, 0.505383f, 3.141593f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
157
|| !
AddObject
(
BG_RV_OBJECT_ELEVATOR_2
,
BG_RV_OBJECT_TYPE_ELEVATOR_2
, 763.506348f, -273.873352f, 0.505383f, 0.000000f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
158
// buffs
159
|| !
AddObject
(
BG_RV_OBJECT_BUFF_1
,
BG_RV_OBJECT_TYPE_BUFF_1
, 735.551819f, -284.794678f, 28.276682f, 0.034906f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
160
|| !
AddObject
(
BG_RV_OBJECT_BUFF_2
,
BG_RV_OBJECT_TYPE_BUFF_2
, 791.224487f, -284.794464f, 28.276682f, 2.600535f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
161
// fire
162
|| !
AddObject
(
BG_RV_OBJECT_FIRE_1
,
BG_RV_OBJECT_TYPE_FIRE_1
, 743.543457f, -283.799469f, 28.286655f, 3.141593f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
163
|| !
AddObject
(
BG_RV_OBJECT_FIRE_2
,
BG_RV_OBJECT_TYPE_FIRE_2
, 782.971802f, -283.799469f, 28.286655f, 3.141593f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
164
|| !
AddObject
(
BG_RV_OBJECT_FIREDOOR_1
,
BG_RV_OBJECT_TYPE_FIREDOOR_1
, 743.711060f, -284.099609f, 27.542587f, 3.141593f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
165
|| !
AddObject
(
BG_RV_OBJECT_FIREDOOR_2
,
BG_RV_OBJECT_TYPE_FIREDOOR_2
, 783.221252f, -284.133362f, 27.535686f, 0.000000f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
166
// Gear
167
|| !
AddObject
(
BG_RV_OBJECT_GEAR_1
,
BG_RV_OBJECT_TYPE_GEAR_1
, 763.664551f, -261.872986f, 26.686588f, 0.000000f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
168
|| !
AddObject
(
BG_RV_OBJECT_GEAR_2
,
BG_RV_OBJECT_TYPE_GEAR_2
, 763.578979f, -306.146149f, 26.665222f, 3.141593f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
169
// Pulley
170
|| !
AddObject
(
BG_RV_OBJECT_PULLEY_1
,
BG_RV_OBJECT_TYPE_PULLEY_1
, 700.722290f, -283.990662f, 39.517582f, 3.141593f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
171
|| !
AddObject
(
BG_RV_OBJECT_PULLEY_2
,
BG_RV_OBJECT_TYPE_PULLEY_2
, 826.303833f, -283.996429f, 39.517582f, 0.000000f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
172
// Pilars
173
|| !
AddObject
(
BG_RV_OBJECT_PILAR_1
,
BG_RV_OBJECT_TYPE_PILAR_1
, 763.632385f, -306.162384f, 25.909504f, 3.141593f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
174
|| !
AddObject
(
BG_RV_OBJECT_PILAR_2
,
BG_RV_OBJECT_TYPE_PILAR_2
, 723.644287f, -284.493256f, 24.648525f, 3.141593f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
175
|| !
AddObject
(
BG_RV_OBJECT_PILAR_3
,
BG_RV_OBJECT_TYPE_PILAR_3
, 763.611145f, -261.856750f, 25.909504f, 0.000000f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
176
|| !
AddObject
(
BG_RV_OBJECT_PILAR_4
,
BG_RV_OBJECT_TYPE_PILAR_4
, 802.211609f, -284.493256f, 24.648525f, 0.000000f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
177
178
// Pilars Collision
179
|| !
AddObject
(
BG_RV_OBJECT_PILAR_COLLISION_1
,
BG_RV_OBJECT_TYPE_PILAR_COLLISION_1
, 763.632385f, -306.162384f, 30.639660f, 3.141593f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
180
|| !
AddObject
(
BG_RV_OBJECT_PILAR_COLLISION_2
,
BG_RV_OBJECT_TYPE_PILAR_COLLISION_2
, 723.644287f, -284.493256f, 32.382710f, 0.000000f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
181
|| !
AddObject
(
BG_RV_OBJECT_PILAR_COLLISION_3
,
BG_RV_OBJECT_TYPE_PILAR_COLLISION_3
, 763.611145f, -261.856750f, 30.639660f, 0.000000f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
182
|| !
AddObject
(
BG_RV_OBJECT_PILAR_COLLISION_4
,
BG_RV_OBJECT_TYPE_PILAR_COLLISION_4
, 802.211609f, -284.493256f, 32.382710f, 3.141593f, 0, 0, 0,
RESPAWN_IMMEDIATELY
)
183
184
)
185
{
186
SF_LOG_ERROR
(
"sql.sql"
,
"BatteGroundRV: Failed to spawn some object!"
);
187
return
false
;
188
}
189
return
true
;
190
}
191
192
193
void
BattlegroundRV::TogglePillarCollision
()
194
{
195
bool
apply =
GetPillarCollision
();
196
197
// Toggle visual pillars, pulley, gear, and collision based on previous state
198
for
(
uint8
i =
BG_RV_OBJECT_PILAR_1
; i <=
BG_RV_OBJECT_GEAR_2
; ++i)
199
apply ?
DoorOpen
(i) :
DoorClose
(i);
200
201
for
(
uint8
i =
BG_RV_OBJECT_PILAR_2
; i <=
BG_RV_OBJECT_PULLEY_2
; ++i)
202
apply ?
DoorClose
(i) :
DoorOpen
(i);
203
204
for
(
uint8
i =
BG_RV_OBJECT_PILAR_1
; i <=
BG_RV_OBJECT_PILAR_COLLISION_4
; ++i)
205
{
206
if
(
GameObject
* gob =
GetBgMap
()->GetGameObject(
BgObjects
[i]))
207
{
208
if
(i >=
BG_RV_OBJECT_PILAR_COLLISION_1
)
209
{
210
GOState
_state =
GOState::GO_STATE_READY
;
211
if
(gob->GetGOInfo()->door.startOpen)
212
_state =
GOState::GO_STATE_ACTIVE
;
213
gob->SetGoState(apply ? _state :
GOState::GO_STATE_ACTIVE
);
214
215
if
(gob->GetGOInfo()->door.startOpen)
216
gob->EnableCollision(!apply);
// Forced collision toggle
217
}
218
219
for
(BattlegroundPlayerMap::iterator itr =
m_Players
.begin(); itr !=
m_Players
.end(); ++itr)
220
if
(
Player
* player =
ObjectAccessor::FindPlayer
(
MAKE_NEW_GUID
(itr->first, 0,
HIGHGUID_PLAYER
)))
221
gob->SendUpdateToPlayer(player);
222
}
223
}
224
225
SetPillarCollision
(!apply);
226
}
Battleground.h
RESPAWN_IMMEDIATELY
@ RESPAWN_IMMEDIATELY
Definition
Battleground.h:118
BG_START_DELAY_1M
@ BG_START_DELAY_1M
Definition
Battleground.h:128
BG_START_DELAY_30S
@ BG_START_DELAY_30S
Definition
Battleground.h:129
BG_START_DELAY_NONE
@ BG_START_DELAY_NONE
Definition
Battleground.h:131
BG_START_DELAY_15S
@ BG_START_DELAY_15S
Definition
Battleground.h:130
STATUS_WAIT_LEAVE
@ STATUS_WAIT_LEAVE
Definition
Battleground.h:149
STATUS_IN_PROGRESS
@ STATUS_IN_PROGRESS
Definition
Battleground.h:148
BG_STARTING_EVENT_THIRD
@ BG_STARTING_EVENT_THIRD
Definition
Battleground.h:236
BG_STARTING_EVENT_SECOND
@ BG_STARTING_EVENT_SECOND
Definition
Battleground.h:235
BG_STARTING_EVENT_FIRST
@ BG_STARTING_EVENT_FIRST
Definition
Battleground.h:234
BG_STARTING_EVENT_FOURTH
@ BG_STARTING_EVENT_FOURTH
Definition
Battleground.h:237
BattlegroundRV.h
BG_RV_OBJECT_PILAR_1
@ BG_RV_OBJECT_PILAR_1
Definition
BattlegroundRV.h:20
BG_RV_OBJECT_PULLEY_2
@ BG_RV_OBJECT_PULLEY_2
Definition
BattlegroundRV.h:28
BG_RV_OBJECT_PILAR_COLLISION_1
@ BG_RV_OBJECT_PILAR_COLLISION_1
Definition
BattlegroundRV.h:30
BG_RV_OBJECT_PILAR_4
@ BG_RV_OBJECT_PILAR_4
Definition
BattlegroundRV.h:26
BG_RV_OBJECT_ELEVATOR_1
@ BG_RV_OBJECT_ELEVATOR_1
Definition
BattlegroundRV.h:35
BG_RV_OBJECT_MAX
@ BG_RV_OBJECT_MAX
Definition
BattlegroundRV.h:37
BG_RV_OBJECT_PILAR_COLLISION_3
@ BG_RV_OBJECT_PILAR_COLLISION_3
Definition
BattlegroundRV.h:32
BG_RV_OBJECT_FIRE_2
@ BG_RV_OBJECT_FIRE_2
Definition
BattlegroundRV.h:16
BG_RV_OBJECT_GEAR_1
@ BG_RV_OBJECT_GEAR_1
Definition
BattlegroundRV.h:22
BG_RV_OBJECT_ELEVATOR_2
@ BG_RV_OBJECT_ELEVATOR_2
Definition
BattlegroundRV.h:36
BG_RV_OBJECT_FIREDOOR_2
@ BG_RV_OBJECT_FIREDOOR_2
Definition
BattlegroundRV.h:18
BG_RV_OBJECT_FIREDOOR_1
@ BG_RV_OBJECT_FIREDOOR_1
Definition
BattlegroundRV.h:17
BG_RV_OBJECT_PILAR_COLLISION_4
@ BG_RV_OBJECT_PILAR_COLLISION_4
Definition
BattlegroundRV.h:33
BG_RV_OBJECT_PULLEY_1
@ BG_RV_OBJECT_PULLEY_1
Definition
BattlegroundRV.h:27
BG_RV_OBJECT_GEAR_2
@ BG_RV_OBJECT_GEAR_2
Definition
BattlegroundRV.h:23
BG_RV_OBJECT_PILAR_2
@ BG_RV_OBJECT_PILAR_2
Definition
BattlegroundRV.h:25
BG_RV_OBJECT_PILAR_COLLISION_2
@ BG_RV_OBJECT_PILAR_COLLISION_2
Definition
BattlegroundRV.h:31
BG_RV_OBJECT_BUFF_1
@ BG_RV_OBJECT_BUFF_1
Definition
BattlegroundRV.h:13
BG_RV_OBJECT_BUFF_2
@ BG_RV_OBJECT_BUFF_2
Definition
BattlegroundRV.h:14
BG_RV_OBJECT_FIRE_1
@ BG_RV_OBJECT_FIRE_1
Definition
BattlegroundRV.h:15
BG_RV_OBJECT_PILAR_3
@ BG_RV_OBJECT_PILAR_3
Definition
BattlegroundRV.h:21
BG_RV_PILLAR_SWITCH_TIMER
@ BG_RV_PILLAR_SWITCH_TIMER
Definition
BattlegroundRV.h:73
BG_RV_CLOSE_FIRE_TIMER
@ BG_RV_CLOSE_FIRE_TIMER
Definition
BattlegroundRV.h:75
BG_RV_WORLD_STATE_H
@ BG_RV_WORLD_STATE_H
Definition
BattlegroundRV.h:78
BG_RV_FIRST_TIMER
@ BG_RV_FIRST_TIMER
Definition
BattlegroundRV.h:76
BG_RV_FIRE_TO_PILLAR_TIMER
@ BG_RV_FIRE_TO_PILLAR_TIMER
Definition
BattlegroundRV.h:74
BG_RV_STATE_SWITCH_PILLARS
@ BG_RV_STATE_SWITCH_PILLARS
Definition
BattlegroundRV.h:70
BG_RV_STATE_CLOSE_FIRE
@ BG_RV_STATE_CLOSE_FIRE
Definition
BattlegroundRV.h:71
BG_RV_WORLD_STATE_A
@ BG_RV_WORLD_STATE_A
Definition
BattlegroundRV.h:77
BG_RV_WORLD_STATE
@ BG_RV_WORLD_STATE
Definition
BattlegroundRV.h:79
BG_RV_STATE_OPEN_FENCES
@ BG_RV_STATE_OPEN_FENCES
Definition
BattlegroundRV.h:69
BG_RV_OBJECT_TYPE_PILAR_2
@ BG_RV_OBJECT_TYPE_PILAR_2
Definition
BattlegroundRV.h:62
BG_RV_OBJECT_TYPE_PILAR_1
@ BG_RV_OBJECT_TYPE_PILAR_1
Definition
BattlegroundRV.h:61
BG_RV_OBJECT_TYPE_PILAR_4
@ BG_RV_OBJECT_TYPE_PILAR_4
Definition
BattlegroundRV.h:64
BG_RV_OBJECT_TYPE_ELEVATOR_1
@ BG_RV_OBJECT_TYPE_ELEVATOR_1
Definition
BattlegroundRV.h:53
BG_RV_OBJECT_TYPE_BUFF_1
@ BG_RV_OBJECT_TYPE_BUFF_1
Definition
BattlegroundRV.h:42
BG_RV_OBJECT_TYPE_BUFF_2
@ BG_RV_OBJECT_TYPE_BUFF_2
Definition
BattlegroundRV.h:43
BG_RV_OBJECT_TYPE_PULLEY_2
@ BG_RV_OBJECT_TYPE_PULLEY_2
Definition
BattlegroundRV.h:50
BG_RV_OBJECT_TYPE_PILAR_COLLISION_2
@ BG_RV_OBJECT_TYPE_PILAR_COLLISION_2
Definition
BattlegroundRV.h:57
BG_RV_OBJECT_TYPE_GEAR_2
@ BG_RV_OBJECT_TYPE_GEAR_2
Definition
BattlegroundRV.h:52
BG_RV_OBJECT_TYPE_PILAR_COLLISION_3
@ BG_RV_OBJECT_TYPE_PILAR_COLLISION_3
Definition
BattlegroundRV.h:58
BG_RV_OBJECT_TYPE_FIREDOOR_2
@ BG_RV_OBJECT_TYPE_FIREDOOR_2
Definition
BattlegroundRV.h:47
BG_RV_OBJECT_TYPE_PILAR_COLLISION_4
@ BG_RV_OBJECT_TYPE_PILAR_COLLISION_4
Definition
BattlegroundRV.h:59
BG_RV_OBJECT_TYPE_PILAR_COLLISION_1
@ BG_RV_OBJECT_TYPE_PILAR_COLLISION_1
Definition
BattlegroundRV.h:56
BG_RV_OBJECT_TYPE_PILAR_3
@ BG_RV_OBJECT_TYPE_PILAR_3
Definition
BattlegroundRV.h:63
BG_RV_OBJECT_TYPE_FIREDOOR_1
@ BG_RV_OBJECT_TYPE_FIREDOOR_1
Definition
BattlegroundRV.h:48
BG_RV_OBJECT_TYPE_FIRE_2
@ BG_RV_OBJECT_TYPE_FIRE_2
Definition
BattlegroundRV.h:45
BG_RV_OBJECT_TYPE_ELEVATOR_2
@ BG_RV_OBJECT_TYPE_ELEVATOR_2
Definition
BattlegroundRV.h:54
BG_RV_OBJECT_TYPE_GEAR_1
@ BG_RV_OBJECT_TYPE_GEAR_1
Definition
BattlegroundRV.h:51
BG_RV_OBJECT_TYPE_PULLEY_1
@ BG_RV_OBJECT_TYPE_PULLEY_1
Definition
BattlegroundRV.h:49
BG_RV_OBJECT_TYPE_FIRE_1
@ BG_RV_OBJECT_TYPE_FIRE_1
Definition
BattlegroundRV.h:44
uint8
std::uint8_t uint8
Definition
Define.h:79
uint32
std::uint32_t uint32
Definition
Define.h:77
uint64
std::uint64_t uint64
Definition
Define.h:76
GameObject.h
GOState
GOState
Definition
GameObject.h:575
GOState::GO_STATE_ACTIVE
@ GO_STATE_ACTIVE
Definition
GameObject.h:576
GOState::GO_STATE_READY
@ GO_STATE_READY
Definition
GameObject.h:577
Language.h
LANG_ARENA_FIFTEEN_SECONDS
@ LANG_ARENA_FIFTEEN_SECONDS
Definition
Language.h:681
LANG_ARENA_HAS_BEGUN
@ LANG_ARENA_HAS_BEGUN
Definition
Language.h:682
LANG_ARENA_THIRTY_SECONDS
@ LANG_ARENA_THIRTY_SECONDS
Definition
Language.h:680
LANG_ARENA_ONE_MINUTE
@ LANG_ARENA_ONE_MINUTE
Definition
Language.h:679
SF_LOG_ERROR
#define SF_LOG_ERROR(filterType__,...)
Definition
Log.h:143
ObjectAccessor.h
HIGHGUID_PLAYER
@ HIGHGUID_PLAYER
Definition
ObjectDefines.h:15
MAKE_NEW_GUID
uint64 MAKE_NEW_GUID(uint32 l, uint32 e, uint32 h)
Definition
ObjectDefines.h:190
Player.h
ALLIANCE
@ ALLIANCE
Definition
SharedDefines.h:877
HORDE
@ HORDE
Definition
SharedDefines.h:876
WorldPacket.h
Battleground::AddPlayer
virtual void AddPlayer(Player *player)
Definition
Battleground.cpp:1139
Battleground::GetAlivePlayersCountByTeam
uint32 GetAlivePlayersCountByTeam(uint32 Team) const
Definition
Battleground.cpp:1907
Battleground::HandleKillPlayer
virtual void HandleKillPlayer(Player *player, Player *killer)
Definition
Battleground.cpp:1824
Battleground::DoorOpen
void DoorOpen(uint32 type)
Definition
Battleground.cpp:1557
Battleground::m_Players
BattlegroundPlayerMap m_Players
Definition
Battleground.h:569
Battleground::SpawnBGObject
void SpawnBGObject(uint32 type, uint32 respawntime)
Definition
Battleground.cpp:1587
Battleground::Reset
virtual void Reset()
Definition
Battleground.cpp:1097
Battleground::GetBgMap
BattlegroundMap * GetBgMap() const
Definition
Battleground.h:397
Battleground::CheckArenaWinConditions
void CheckArenaWinConditions()
Definition
Battleground.cpp:1944
Battleground::DoorClose
void DoorClose(uint32 type)
Definition
Battleground.cpp:1541
Battleground::BgObjects
BGObjects BgObjects
Definition
Battleground.h:508
Battleground::UpdateWorldState
void UpdateWorldState(uint32 Field, uint32 Value)
Definition
Battleground.cpp:702
Battleground::StartDelayTimes
BattlegroundStartTimeIntervals StartDelayTimes[BG_STARTING_EVENT_COUNT]
Definition
Battleground.h:575
Battleground::PlayerScores
BattlegroundScoreMap PlayerScores
Definition
Battleground.h:564
Battleground::GetStatus
BattlegroundStatus GetStatus() const
Definition
Battleground.h:305
Battleground::HandleAreaTrigger
virtual void HandleAreaTrigger(Player *, uint32)
Definition
Battleground.cpp:2001
Battleground::AddObject
bool AddObject(uint32 type, uint32 entry, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime=0)
Definition
Battleground.cpp:1482
Battleground::StartMessageIds
uint32 StartMessageIds[BG_STARTING_EVENT_COUNT]
Definition
Battleground.h:577
BattlegroundRV::setState
void setState(uint32 state)
Definition
BattlegroundRV.h:112
BattlegroundRV::SetupBattleground
bool SetupBattleground() OVERRIDE
Definition
BattlegroundRV.cpp:153
BattlegroundRV::PostUpdateImpl
void PostUpdateImpl(uint32 diff) OVERRIDE
Post-update hook.
Definition
BattlegroundRV.cpp:30
BattlegroundRV::StartingEventOpenDoors
void StartingEventOpenDoors() OVERRIDE
Definition
BattlegroundRV.cpp:65
BattlegroundRV::HandleKillPlayer
void HandleKillPlayer(Player *player, Player *killer) OVERRIDE
Definition
BattlegroundRV.cpp:102
BattlegroundRV::getTimer
uint32 getTimer() const
Definition
BattlegroundRV.h:108
BattlegroundRV::GetPillarCollision
bool GetPillarCollision() const
Definition
BattlegroundRV.h:114
BattlegroundRV::PillarCollision
bool PillarCollision
Definition
BattlegroundRV.h:103
BattlegroundRV::FillInitialWorldStates
void FillInitialWorldStates(WorldStateBuilder &builder) OVERRIDE
Definition
BattlegroundRV.cpp:140
BattlegroundRV::Reset
void Reset() OVERRIDE
Definition
BattlegroundRV.cpp:147
BattlegroundRV::TogglePillarCollision
void TogglePillarCollision()
Definition
BattlegroundRV.cpp:193
BattlegroundRV::RemovePlayer
void RemovePlayer(Player *player, uint64 guid, uint32 team) OVERRIDE
Definition
BattlegroundRV.cpp:91
BattlegroundRV::Timer
uint32 Timer
Definition
BattlegroundRV.h:101
BattlegroundRV::AddPlayer
void AddPlayer(Player *player) OVERRIDE
Definition
BattlegroundRV.cpp:82
BattlegroundRV::~BattlegroundRV
~BattlegroundRV()
Definition
BattlegroundRV.cpp:28
BattlegroundRV::StartingEventCloseDoors
void StartingEventCloseDoors() OVERRIDE
Definition
BattlegroundRV.cpp:63
BattlegroundRV::SetPillarCollision
void SetPillarCollision(bool apply)
Definition
BattlegroundRV.h:115
BattlegroundRV::setTimer
void setTimer(uint32 timer)
Definition
BattlegroundRV.h:109
BattlegroundRV::getState
uint32 getState() const
Definition
BattlegroundRV.h:111
BattlegroundRV::BattlegroundRV
BattlegroundRV()
Definition
BattlegroundRV.cpp:14
BattlegroundRV::State
uint32 State
Definition
BattlegroundRV.h:102
BattlegroundRV::HandleAreaTrigger
void HandleAreaTrigger(Player *Source, uint32 Trigger) OVERRIDE
Definition
BattlegroundRV.cpp:121
GameObject
Definition
GameObject.h:629
ObjectAccessor::FindPlayer
static Player * FindPlayer(uint64)
Definition
ObjectAccessor.cpp:240
Object::GetGUID
uint64 GetGUID() const
Definition
Object.h:119
Player
Definition
Player.h:1289
WorldStateBuilder
Definition
WorldStateBuilder.h:16
WorldStateBuilder::AppendState
void AppendState(uint32 worldstate, uint32 value)
Definition
WorldStateBuilder.h:42
BattlegroundScore
Definition
Battleground.h:249
src
server
game
Battlegrounds
Zones
BattlegroundRV.cpp
Generated on
for Project SkyFire Core by
1.17.0