AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Battleground.h File Reference
#include "ArenaScore.h"
#include "Common.h"
#include "DBCEnums.h"
#include "GameObject.h"
#include "SharedDefines.h"

Go to the source code of this file.

Classes

struct  BattlegroundObjectInfo
 
class  ArenaLogEntryData
 
class  Battleground
 

Macros

#define RESURRECTION_INTERVAL   (sWorld->getIntConfig(CONFIG_BATTLEGROUND_PLAYER_RESPAWN) * IN_MILLISECONDS)
 
#define RESTORATION_BUFF_RESPAWN_TIME   (sWorld->getIntConfig(CONFIG_BATTLEGROUND_RESTORATION_BUFF_RESPAWN))
 
#define BERSERKING_BUFF_RESPAWN_TIME   (sWorld->getIntConfig(CONFIG_BATTLEGROUND_BERSERKING_BUFF_RESPAWN))
 
#define SPEED_BUFF_RESPAWN_TIME   (sWorld->getIntConfig(CONFIG_BATTLEGROUND_SPEED_BUFF_RESPAWN))
 
#define BATTLEGROUND_UPDATE_INTERVAL   1000
 
#define ARENA_TIMELIMIT_POINTS_LOSS   -16
 
#define ARENA_READY_MARKER_ENTRY   301337
 

Enumerations

enum  BattlegroundDesertionType : uint8 {
  BG_DESERTION_TYPE_LEAVE_BG = 0 ,
  BG_DESERTION_TYPE_OFFLINE = 1 ,
  BG_DESERTION_TYPE_LEAVE_QUEUE = 2 ,
  BG_DESERTION_TYPE_NO_ENTER_BUTTON = 3 ,
  BG_DESERTION_TYPE_INVITE_LOGOUT = 4
}
 
enum  BattlegroundMaps {
  MAP_BG_ALTERAC_VALLEY = 30 ,
  MAP_BG_WARSONG_GULCH = 489 ,
  MAP_BG_ARATHI_BASIN = 529 ,
  MAP_BG_EYE_OF_THE_STORM = 566 ,
  MAP_BG_STRAND_OF_THE_ANCIENTS = 607 ,
  MAP_BG_ISLE_OF_CONQUEST = 628
}
 
enum  BattlegroundBroadcastTexts {
  BG_TEXT_ALLIANCE_WINS = 10633 ,
  BG_TEXT_HORDE_WINS = 10634 ,
  BG_TEXT_START_TWO_MINUTES = 18193 ,
  BG_TEXT_START_ONE_MINUTE = 18194 ,
  BG_TEXT_START_HALF_MINUTE = 18195 ,
  BG_TEXT_BATTLE_HAS_BEGUN = 18196
}
 
enum  BattlegroundSounds {
  SOUND_HORDE_WINS = 8454 ,
  SOUND_ALLIANCE_WINS = 8455 ,
  SOUND_BG_START = 3439 ,
  SOUND_BG_START_L70ETC = 11803
}
 
enum  BattlegroundQuests {
  SPELL_WS_QUEST_REWARD = 43483 ,
  SPELL_AB_QUEST_REWARD = 43484 ,
  SPELL_AV_QUEST_REWARD = 43475 ,
  SPELL_AV_QUEST_KILLED_BOSS = 23658 ,
  SPELL_EY_QUEST_REWARD = 43477 ,
  SPELL_SA_QUEST_REWARD = 61213 ,
  SPELL_AB_QUEST_REWARD_4_BASES = 24061 ,
  SPELL_AB_QUEST_REWARD_5_BASES = 24064
}
 
enum  BattlegroundMarks {
  SPELL_WS_MARK_LOSER = 24950 ,
  SPELL_WS_MARK_WINNER = 24951 ,
  SPELL_WS_MARK_TIE = 66126 ,
  SPELL_AB_MARK_LOSER = 24952 ,
  SPELL_AB_MARK_WINNER = 24953 ,
  SPELL_AV_MARK_LOSER = 24954 ,
  SPELL_AV_MARK_WINNER = 24955 ,
  SPELL_SA_MARK_WINNER = 61160 ,
  SPELL_SA_MARK_LOSER = 61159 ,
  SPELL_WG_MARK_WINNER = 56902 ,
  ITEM_AV_MARK_OF_HONOR = 20560 ,
  ITEM_WS_MARK_OF_HONOR = 20558 ,
  ITEM_AB_MARK_OF_HONOR = 20559 ,
  ITEM_EY_MARK_OF_HONOR = 29024 ,
  ITEM_SA_MARK_OF_HONOR = 42425 ,
  ITEM_IC_MARK_OF_HONOR = 47395
}
 
enum  BattlegroundMarksCount {
  ITEM_WINNER_COUNT = 3 ,
  ITEM_LOSER_COUNT = 1
}
 
enum  BattlegroundCreatures {
  BG_CREATURE_ENTRY_A_SPIRITGUIDE = 13116 ,
  BG_CREATURE_ENTRY_H_SPIRITGUIDE = 13117
}
 
enum  BattlegroundSpells {
  SPELL_WAITING_FOR_RESURRECT = 2584 ,
  SPELL_SPIRIT_HEAL_CHANNEL = 22011 ,
  SPELL_SPIRIT_HEAL = 22012 ,
  SPELL_RESURRECTION_VISUAL = 24171 ,
  SPELL_ARENA_PREPARATION = 32727 ,
  SPELL_PREPARATION = 44521 ,
  SPELL_SPIRIT_HEAL_MANA = 44535 ,
  SPELL_RECENTLY_DROPPED_FLAG = 42792 ,
  SPELL_AURA_PLAYER_INACTIVE = 43681 ,
  SPELL_HONORABLE_DEFENDER_25Y = 68652 ,
  SPELL_HONORABLE_DEFENDER_60Y = 66157
}
 
enum  BattlegroundReputations {
  BG_REP_AV_HORDE = 729 ,
  BG_REP_AV_ALLIANCE = 730 ,
  BG_REP_AB_HORDE = 510 ,
  BG_REP_AB_ALLIANCE = 509 ,
  BG_REP_WS_HORDE = 889 ,
  BG_REP_WS_ALLIANCE = 890
}
 
enum  BattlegroundTimeIntervals {
  CHECK_PLAYER_POSITION_INVERVAL = 9000 ,
  INVITATION_REMIND_TIME = 20000 ,
  INVITE_ACCEPT_WAIT_TIME = 60000 ,
  TIME_TO_AUTOREMOVE = 120000 ,
  MAX_OFFLINE_TIME = 300 ,
  RESPAWN_ONE_DAY = 86400 ,
  RESPAWN_IMMEDIATELY = 0
}
 
enum  BattlegroundStartTimeIntervals {
  BG_START_DELAY_2M = 120000 ,
  BG_START_DELAY_1M = 60000 ,
  BG_START_DELAY_30S = 30000 ,
  BG_START_DELAY_15S = 15000 ,
  BG_START_DELAY_NONE = 0
}
 
enum  BattlegroundBuffObjects {
  BG_OBJECTID_SPEEDBUFF_ENTRY = 179871 ,
  BG_OBJECTID_REGENBUFF_ENTRY = 179904 ,
  BG_OBJECTID_BERSERKERBUFF_ENTRY = 179905
}
 
enum  BattlegroundStatus {
  STATUS_NONE = 0 ,
  STATUS_WAIT_QUEUE = 1 ,
  STATUS_WAIT_JOIN = 2 ,
  STATUS_IN_PROGRESS = 3 ,
  STATUS_WAIT_LEAVE = 4
}
 
enum  ArenaType : uint8 {
  ARENA_TYPE_2v2 = 2 ,
  ARENA_TYPE_3v3 = 3 ,
  ARENA_TYPE_5v5 = 5
}
 
enum  BattlegroundType {
  TYPE_BATTLEGROUND = 3 ,
  TYPE_ARENA = 4
}
 
enum  BattlegroundStartingEvents {
  BG_STARTING_EVENT_NONE = 0x00 ,
  BG_STARTING_EVENT_1 = 0x01 ,
  BG_STARTING_EVENT_2 = 0x02 ,
  BG_STARTING_EVENT_3 = 0x04 ,
  BG_STARTING_EVENT_4 = 0x08
}
 
enum  BattlegroundStartingEventsIds {
  BG_STARTING_EVENT_FIRST = 0 ,
  BG_STARTING_EVENT_SECOND = 1 ,
  BG_STARTING_EVENT_THIRD = 2 ,
  BG_STARTING_EVENT_FOURTH = 3
}
 
enum  SpiritOfCompetitionEvent {
  EVENT_SPIRIT_OF_COMPETITION = 46 ,
  QUEST_FLAG_PARTICIPANT = 12187 ,
  QUEST_FLAG_WINNER = 12186 ,
  SPELL_SPIRIT_OF_COMPETITION_PARTICIPANT = 48163 ,
  SPELL_SPIRIT_OF_COMPETITION_WINNER = 48164
}
 
enum  BGHonorMode {
  BG_NORMAL = 0 ,
  BG_HOLIDAY ,
  BG_HONOR_MODE_NUM
}
 
enum  BattlegroundQueueInvitationType {
  BG_QUEUE_INVITATION_TYPE_NO_BALANCE = 0 ,
  BG_QUEUE_INVITATION_TYPE_BALANCED = 1 ,
  BG_QUEUE_INVITATION_TYPE_EVEN = 2
}
 

Variables

const uint32 Buff_Entries [3] = { BG_OBJECTID_SPEEDBUFF_ENTRY, BG_OBJECTID_REGENBUFF_ENTRY, BG_OBJECTID_BERSERKERBUFF_ENTRY }
 
constexpr auto BG_STARTING_EVENT_COUNT = 4
 

Macro Definition Documentation

◆ ARENA_READY_MARKER_ENTRY

#define ARENA_READY_MARKER_ENTRY   301337

◆ ARENA_TIMELIMIT_POINTS_LOSS

#define ARENA_TIMELIMIT_POINTS_LOSS   -16

◆ BATTLEGROUND_UPDATE_INTERVAL

#define BATTLEGROUND_UPDATE_INTERVAL   1000

◆ BERSERKING_BUFF_RESPAWN_TIME

#define BERSERKING_BUFF_RESPAWN_TIME   (sWorld->getIntConfig(CONFIG_BATTLEGROUND_BERSERKING_BUFF_RESPAWN))

◆ RESTORATION_BUFF_RESPAWN_TIME

#define RESTORATION_BUFF_RESPAWN_TIME   (sWorld->getIntConfig(CONFIG_BATTLEGROUND_RESTORATION_BUFF_RESPAWN))

◆ RESURRECTION_INTERVAL

#define RESURRECTION_INTERVAL   (sWorld->getIntConfig(CONFIG_BATTLEGROUND_PLAYER_RESPAWN) * IN_MILLISECONDS)

◆ SPEED_BUFF_RESPAWN_TIME

#define SPEED_BUFF_RESPAWN_TIME   (sWorld->getIntConfig(CONFIG_BATTLEGROUND_SPEED_BUFF_RESPAWN))

Enumeration Type Documentation

◆ ArenaType

enum ArenaType : uint8
Enumerator
ARENA_TYPE_2v2 
ARENA_TYPE_3v3 
ARENA_TYPE_5v5 
211{
212 ARENA_TYPE_2v2 = 2,
213 ARENA_TYPE_3v3 = 3,
215};
@ ARENA_TYPE_5v5
Definition: Battleground.h:214
@ ARENA_TYPE_3v3
Definition: Battleground.h:213
@ ARENA_TYPE_2v2
Definition: Battleground.h:212

◆ BattlegroundBroadcastTexts

Enumerator
BG_TEXT_ALLIANCE_WINS 
BG_TEXT_HORDE_WINS 
BG_TEXT_START_TWO_MINUTES 
BG_TEXT_START_ONE_MINUTE 
BG_TEXT_START_HALF_MINUTE 
BG_TEXT_BATTLE_HAS_BEGUN 
68{
70 BG_TEXT_HORDE_WINS = 10634,
71
76};
@ BG_TEXT_START_TWO_MINUTES
Definition: Battleground.h:72
@ BG_TEXT_BATTLE_HAS_BEGUN
Definition: Battleground.h:75
@ BG_TEXT_ALLIANCE_WINS
Definition: Battleground.h:69
@ BG_TEXT_HORDE_WINS
Definition: Battleground.h:70
@ BG_TEXT_START_ONE_MINUTE
Definition: Battleground.h:73
@ BG_TEXT_START_HALF_MINUTE
Definition: Battleground.h:74

◆ BattlegroundBuffObjects

Enumerator
BG_OBJECTID_SPEEDBUFF_ENTRY 
BG_OBJECTID_REGENBUFF_ENTRY 
BG_OBJECTID_BERSERKERBUFF_ENTRY 
184{
188};
@ BG_OBJECTID_REGENBUFF_ENTRY
Definition: Battleground.h:186
@ BG_OBJECTID_BERSERKERBUFF_ENTRY
Definition: Battleground.h:187
@ BG_OBJECTID_SPEEDBUFF_ENTRY
Definition: Battleground.h:185

◆ BattlegroundCreatures

Enumerator
BG_CREATURE_ENTRY_A_SPIRITGUIDE 
BG_CREATURE_ENTRY_H_SPIRITGUIDE 
125{
126 BG_CREATURE_ENTRY_A_SPIRITGUIDE = 13116, // alliance
127 BG_CREATURE_ENTRY_H_SPIRITGUIDE = 13117, // horde
128};
@ BG_CREATURE_ENTRY_H_SPIRITGUIDE
Definition: Battleground.h:127
@ BG_CREATURE_ENTRY_A_SPIRITGUIDE
Definition: Battleground.h:126

◆ BattlegroundDesertionType

Enumerator
BG_DESERTION_TYPE_LEAVE_BG 
BG_DESERTION_TYPE_OFFLINE 
BG_DESERTION_TYPE_LEAVE_QUEUE 
BG_DESERTION_TYPE_NO_ENTER_BUTTON 
BG_DESERTION_TYPE_INVITE_LOGOUT 
49{
50 BG_DESERTION_TYPE_LEAVE_BG = 0, // player leaves the BG
51 BG_DESERTION_TYPE_OFFLINE = 1, // player is kicked from BG because offline
52 BG_DESERTION_TYPE_LEAVE_QUEUE = 2, // player is invited to join and refuses to do it
53 BG_DESERTION_TYPE_NO_ENTER_BUTTON = 3, // player is invited to join and do nothing (time expires)
54 BG_DESERTION_TYPE_INVITE_LOGOUT = 4, // player is invited to join and logs out
55};
@ BG_DESERTION_TYPE_LEAVE_BG
Definition: Battleground.h:50
@ BG_DESERTION_TYPE_OFFLINE
Definition: Battleground.h:51
@ BG_DESERTION_TYPE_NO_ENTER_BUTTON
Definition: Battleground.h:53
@ BG_DESERTION_TYPE_LEAVE_QUEUE
Definition: Battleground.h:52
@ BG_DESERTION_TYPE_INVITE_LOGOUT
Definition: Battleground.h:54

◆ BattlegroundMaps

Enumerator
MAP_BG_ALTERAC_VALLEY 
MAP_BG_WARSONG_GULCH 
MAP_BG_ARATHI_BASIN 
MAP_BG_EYE_OF_THE_STORM 
MAP_BG_STRAND_OF_THE_ANCIENTS 
MAP_BG_ISLE_OF_CONQUEST 
58{
65};
@ MAP_BG_ARATHI_BASIN
Definition: Battleground.h:61
@ MAP_BG_ISLE_OF_CONQUEST
Definition: Battleground.h:64
@ MAP_BG_ALTERAC_VALLEY
Definition: Battleground.h:59
@ MAP_BG_EYE_OF_THE_STORM
Definition: Battleground.h:62
@ MAP_BG_WARSONG_GULCH
Definition: Battleground.h:60
@ MAP_BG_STRAND_OF_THE_ANCIENTS
Definition: Battleground.h:63

◆ BattlegroundMarks

Enumerator
SPELL_WS_MARK_LOSER 
SPELL_WS_MARK_WINNER 
SPELL_WS_MARK_TIE 
SPELL_AB_MARK_LOSER 
SPELL_AB_MARK_WINNER 
SPELL_AV_MARK_LOSER 
SPELL_AV_MARK_WINNER 
SPELL_SA_MARK_WINNER 
SPELL_SA_MARK_LOSER 
SPELL_WG_MARK_WINNER 
ITEM_AV_MARK_OF_HONOR 
ITEM_WS_MARK_OF_HONOR 
ITEM_AB_MARK_OF_HONOR 
ITEM_EY_MARK_OF_HONOR 
ITEM_SA_MARK_OF_HONOR 
ITEM_IC_MARK_OF_HONOR 
99{
100 SPELL_WS_MARK_LOSER = 24950,
101 SPELL_WS_MARK_WINNER = 24951,
102 SPELL_WS_MARK_TIE = 66126,
103 SPELL_AB_MARK_LOSER = 24952,
104 SPELL_AB_MARK_WINNER = 24953,
105 SPELL_AV_MARK_LOSER = 24954,
106 SPELL_AV_MARK_WINNER = 24955,
107 SPELL_SA_MARK_WINNER = 61160,
108 SPELL_SA_MARK_LOSER = 61159,
109 SPELL_WG_MARK_WINNER = 56902,
110 ITEM_AV_MARK_OF_HONOR = 20560,
111 ITEM_WS_MARK_OF_HONOR = 20558,
112 ITEM_AB_MARK_OF_HONOR = 20559,
113 ITEM_EY_MARK_OF_HONOR = 29024,
114 ITEM_SA_MARK_OF_HONOR = 42425,
115 ITEM_IC_MARK_OF_HONOR = 47395,
116};
@ SPELL_WS_MARK_WINNER
Definition: Battleground.h:101
@ ITEM_WS_MARK_OF_HONOR
Definition: Battleground.h:111
@ ITEM_SA_MARK_OF_HONOR
Definition: Battleground.h:114
@ SPELL_SA_MARK_WINNER
Definition: Battleground.h:107
@ SPELL_AV_MARK_LOSER
Definition: Battleground.h:105
@ ITEM_EY_MARK_OF_HONOR
Definition: Battleground.h:113
@ SPELL_WS_MARK_TIE
Definition: Battleground.h:102
@ ITEM_IC_MARK_OF_HONOR
Definition: Battleground.h:115
@ SPELL_WS_MARK_LOSER
Definition: Battleground.h:100
@ SPELL_SA_MARK_LOSER
Definition: Battleground.h:108
@ SPELL_AB_MARK_LOSER
Definition: Battleground.h:103
@ ITEM_AV_MARK_OF_HONOR
Definition: Battleground.h:110
@ SPELL_WG_MARK_WINNER
Definition: Battleground.h:109
@ ITEM_AB_MARK_OF_HONOR
Definition: Battleground.h:112
@ SPELL_AB_MARK_WINNER
Definition: Battleground.h:104
@ SPELL_AV_MARK_WINNER
Definition: Battleground.h:106

◆ BattlegroundMarksCount

Enumerator
ITEM_WINNER_COUNT 
ITEM_LOSER_COUNT 
119{
122};
@ ITEM_WINNER_COUNT
Definition: Battleground.h:120
@ ITEM_LOSER_COUNT
Definition: Battleground.h:121

◆ BattlegroundQuests

Enumerator
SPELL_WS_QUEST_REWARD 
SPELL_AB_QUEST_REWARD 
SPELL_AV_QUEST_REWARD 
SPELL_AV_QUEST_KILLED_BOSS 
SPELL_EY_QUEST_REWARD 
SPELL_SA_QUEST_REWARD 
SPELL_AB_QUEST_REWARD_4_BASES 
SPELL_AB_QUEST_REWARD_5_BASES 
87{
96};
@ SPELL_AV_QUEST_REWARD
Definition: Battleground.h:90
@ SPELL_AB_QUEST_REWARD_4_BASES
Definition: Battleground.h:94
@ SPELL_AB_QUEST_REWARD
Definition: Battleground.h:89
@ SPELL_AB_QUEST_REWARD_5_BASES
Definition: Battleground.h:95
@ SPELL_WS_QUEST_REWARD
Definition: Battleground.h:88
@ SPELL_SA_QUEST_REWARD
Definition: Battleground.h:93
@ SPELL_EY_QUEST_REWARD
Definition: Battleground.h:92
@ SPELL_AV_QUEST_KILLED_BOSS
Definition: Battleground.h:91

◆ BattlegroundQueueInvitationType

Enumerator
BG_QUEUE_INVITATION_TYPE_NO_BALANCE 
BG_QUEUE_INVITATION_TYPE_BALANCED 
BG_QUEUE_INVITATION_TYPE_EVEN 
291{
292 BG_QUEUE_INVITATION_TYPE_NO_BALANCE = 0, // no balance: N+M vs N players
293 BG_QUEUE_INVITATION_TYPE_BALANCED = 1, // teams balanced: N+1 vs N players
294 BG_QUEUE_INVITATION_TYPE_EVEN = 2 // teams even: N vs N players
295};
@ BG_QUEUE_INVITATION_TYPE_NO_BALANCE
Definition: Battleground.h:292
@ BG_QUEUE_INVITATION_TYPE_EVEN
Definition: Battleground.h:294
@ BG_QUEUE_INVITATION_TYPE_BALANCED
Definition: Battleground.h:293

◆ BattlegroundReputations

Enumerator
BG_REP_AV_HORDE 
BG_REP_AV_ALLIANCE 
BG_REP_AB_HORDE 
BG_REP_AB_ALLIANCE 
BG_REP_WS_HORDE 
BG_REP_WS_ALLIANCE 
146{
147 BG_REP_AV_HORDE = 729,
148 BG_REP_AV_ALLIANCE = 730,
149 BG_REP_AB_HORDE = 510,
150 BG_REP_AB_ALLIANCE = 509,
151 BG_REP_WS_HORDE = 889,
152 BG_REP_WS_ALLIANCE = 890,
153};
@ BG_REP_AV_HORDE
Definition: Battleground.h:147
@ BG_REP_AB_HORDE
Definition: Battleground.h:149
@ BG_REP_WS_HORDE
Definition: Battleground.h:151
@ BG_REP_WS_ALLIANCE
Definition: Battleground.h:152
@ BG_REP_AV_ALLIANCE
Definition: Battleground.h:148
@ BG_REP_AB_ALLIANCE
Definition: Battleground.h:150

◆ BattlegroundSounds

Enumerator
SOUND_HORDE_WINS 
SOUND_ALLIANCE_WINS 
SOUND_BG_START 
SOUND_BG_START_L70ETC 
79{
80 SOUND_HORDE_WINS = 8454,
82 SOUND_BG_START = 3439,
84};
@ SOUND_BG_START
Definition: Battleground.h:82
@ SOUND_ALLIANCE_WINS
Definition: Battleground.h:81
@ SOUND_HORDE_WINS
Definition: Battleground.h:80
@ SOUND_BG_START_L70ETC
Definition: Battleground.h:83

◆ BattlegroundSpells

Enumerator
SPELL_WAITING_FOR_RESURRECT 
SPELL_SPIRIT_HEAL_CHANNEL 
SPELL_SPIRIT_HEAL 
SPELL_RESURRECTION_VISUAL 
SPELL_ARENA_PREPARATION 
SPELL_PREPARATION 
SPELL_SPIRIT_HEAL_MANA 
SPELL_RECENTLY_DROPPED_FLAG 
SPELL_AURA_PLAYER_INACTIVE 
SPELL_HONORABLE_DEFENDER_25Y 
SPELL_HONORABLE_DEFENDER_60Y 
131{
132 SPELL_WAITING_FOR_RESURRECT = 2584, // Waiting to Resurrect
133 SPELL_SPIRIT_HEAL_CHANNEL = 22011, // Spirit Heal Channel
134 SPELL_SPIRIT_HEAL = 22012, // Spirit Heal
135 SPELL_RESURRECTION_VISUAL = 24171, // Resurrection Impact Visual
136 SPELL_ARENA_PREPARATION = 32727, // use this one, 32728 not correct
137 SPELL_PREPARATION = 44521, // Preparation
138 SPELL_SPIRIT_HEAL_MANA = 44535, // Spirit Heal
139 SPELL_RECENTLY_DROPPED_FLAG = 42792, // Recently Dropped Flag
140 SPELL_AURA_PLAYER_INACTIVE = 43681, // Inactive
141 SPELL_HONORABLE_DEFENDER_25Y = 68652, // +50% honor when standing at a capture point that you control, 25yards radius (added in 3.2)
142 SPELL_HONORABLE_DEFENDER_60Y = 66157 // +50% honor when standing at a capture point that you control, 60yards radius (added in 3.2), probably for 40+ player battlegrounds
143};
@ SPELL_SPIRIT_HEAL
Definition: Battleground.h:134
@ SPELL_AURA_PLAYER_INACTIVE
Definition: Battleground.h:140
@ SPELL_RECENTLY_DROPPED_FLAG
Definition: Battleground.h:139
@ SPELL_SPIRIT_HEAL_CHANNEL
Definition: Battleground.h:133
@ SPELL_ARENA_PREPARATION
Definition: Battleground.h:136
@ SPELL_SPIRIT_HEAL_MANA
Definition: Battleground.h:138
@ SPELL_HONORABLE_DEFENDER_25Y
Definition: Battleground.h:141
@ SPELL_PREPARATION
Definition: Battleground.h:137
@ SPELL_RESURRECTION_VISUAL
Definition: Battleground.h:135
@ SPELL_WAITING_FOR_RESURRECT
Definition: Battleground.h:132
@ SPELL_HONORABLE_DEFENDER_60Y
Definition: Battleground.h:142

◆ BattlegroundStartingEvents

Enumerator
BG_STARTING_EVENT_NONE 
BG_STARTING_EVENT_1 
BG_STARTING_EVENT_2 
BG_STARTING_EVENT_3 
BG_STARTING_EVENT_4 
224{
226 BG_STARTING_EVENT_1 = 0x01,
227 BG_STARTING_EVENT_2 = 0x02,
228 BG_STARTING_EVENT_3 = 0x04,
230};
@ BG_STARTING_EVENT_NONE
Definition: Battleground.h:225
@ BG_STARTING_EVENT_3
Definition: Battleground.h:228
@ BG_STARTING_EVENT_2
Definition: Battleground.h:227
@ BG_STARTING_EVENT_1
Definition: Battleground.h:226
@ BG_STARTING_EVENT_4
Definition: Battleground.h:229

◆ BattlegroundStartingEventsIds

Enumerator
BG_STARTING_EVENT_FIRST 
BG_STARTING_EVENT_SECOND 
BG_STARTING_EVENT_THIRD 
BG_STARTING_EVENT_FOURTH 
233{
238};
@ BG_STARTING_EVENT_THIRD
Definition: Battleground.h:236
@ BG_STARTING_EVENT_SECOND
Definition: Battleground.h:235
@ BG_STARTING_EVENT_FIRST
Definition: Battleground.h:234
@ BG_STARTING_EVENT_FOURTH
Definition: Battleground.h:237

◆ BattlegroundStartTimeIntervals

Enumerator
BG_START_DELAY_2M 
BG_START_DELAY_1M 
BG_START_DELAY_30S 
BG_START_DELAY_15S 
BG_START_DELAY_NONE 
173{
174 BG_START_DELAY_2M = 120000, // ms (2 minutes)
175 BG_START_DELAY_1M = 60000, // ms (1 minute)
176 BG_START_DELAY_30S = 30000, // ms (30 seconds)
177 BG_START_DELAY_15S = 15000, // ms (15 seconds) Used only in arena
178 BG_START_DELAY_NONE = 0, // ms
179};
@ BG_START_DELAY_1M
Definition: Battleground.h:175
@ BG_START_DELAY_30S
Definition: Battleground.h:176
@ BG_START_DELAY_2M
Definition: Battleground.h:174
@ BG_START_DELAY_NONE
Definition: Battleground.h:178
@ BG_START_DELAY_15S
Definition: Battleground.h:177

◆ BattlegroundStatus

Enumerator
STATUS_NONE 
STATUS_WAIT_QUEUE 
STATUS_WAIT_JOIN 
STATUS_IN_PROGRESS 
STATUS_WAIT_LEAVE 
193{
194 STATUS_NONE = 0, // first status, should mean bg is not instance
195 STATUS_WAIT_QUEUE = 1, // means bg is empty and waiting for queue
196 STATUS_WAIT_JOIN = 2, // this means, that BG has already started and it is waiting for more players
197 STATUS_IN_PROGRESS = 3, // means bg is running
198 STATUS_WAIT_LEAVE = 4 // means some faction has won BG and it is ending
199};
@ STATUS_WAIT_QUEUE
Definition: Battleground.h:195
@ STATUS_NONE
Definition: Battleground.h:194
@ STATUS_WAIT_LEAVE
Definition: Battleground.h:198
@ STATUS_WAIT_JOIN
Definition: Battleground.h:196
@ STATUS_IN_PROGRESS
Definition: Battleground.h:197

◆ BattlegroundTimeIntervals

Enumerator
CHECK_PLAYER_POSITION_INVERVAL 
INVITATION_REMIND_TIME 
INVITE_ACCEPT_WAIT_TIME 
TIME_TO_AUTOREMOVE 
MAX_OFFLINE_TIME 
RESPAWN_ONE_DAY 
RESPAWN_IMMEDIATELY 
156{
158 //REMIND_INTERVAL = 10000, // ms
159 INVITATION_REMIND_TIME = 20000, // ms
160 INVITE_ACCEPT_WAIT_TIME = 60000, // ms
161 TIME_TO_AUTOREMOVE = 120000, // ms
162 MAX_OFFLINE_TIME = 300, // secs
163 RESPAWN_ONE_DAY = 86400, // secs
164 RESPAWN_IMMEDIATELY = 0, // secs
165};
@ INVITE_ACCEPT_WAIT_TIME
Definition: Battleground.h:160
@ TIME_TO_AUTOREMOVE
Definition: Battleground.h:161
@ MAX_OFFLINE_TIME
Definition: Battleground.h:162
@ RESPAWN_IMMEDIATELY
Definition: Battleground.h:164
@ RESPAWN_ONE_DAY
Definition: Battleground.h:163
@ CHECK_PLAYER_POSITION_INVERVAL
Definition: Battleground.h:157
@ INVITATION_REMIND_TIME
Definition: Battleground.h:159

◆ BattlegroundType

Enumerator
TYPE_BATTLEGROUND 
TYPE_ARENA 
218{
220 TYPE_ARENA = 4
221};
@ TYPE_BATTLEGROUND
Definition: Battleground.h:219
@ TYPE_ARENA
Definition: Battleground.h:220

◆ BGHonorMode

Enumerator
BG_NORMAL 
BG_HOLIDAY 
BG_HONOR_MODE_NUM 
273{
274 BG_NORMAL = 0,
277};
@ BG_NORMAL
Definition: Battleground.h:274
@ BG_HOLIDAY
Definition: Battleground.h:275
@ BG_HONOR_MODE_NUM
Definition: Battleground.h:276

◆ SpiritOfCompetitionEvent

Enumerator
EVENT_SPIRIT_OF_COMPETITION 
QUEST_FLAG_PARTICIPANT 
QUEST_FLAG_WINNER 
SPELL_SPIRIT_OF_COMPETITION_PARTICIPANT 
SPELL_SPIRIT_OF_COMPETITION_WINNER 
241{
244 QUEST_FLAG_WINNER = 12186,
247};
@ SPELL_SPIRIT_OF_COMPETITION_PARTICIPANT
Definition: Battleground.h:245
@ QUEST_FLAG_WINNER
Definition: Battleground.h:244
@ EVENT_SPIRIT_OF_COMPETITION
Definition: Battleground.h:242
@ SPELL_SPIRIT_OF_COMPETITION_WINNER
Definition: Battleground.h:246
@ QUEST_FLAG_PARTICIPANT
Definition: Battleground.h:243

Variable Documentation

◆ BG_STARTING_EVENT_COUNT

constexpr auto BG_STARTING_EVENT_COUNT = 4
constexpr

◆ Buff_Entries