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"
#include "World.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 ,
  ARENA_DESERTION_TYPE_LEAVE_BG = 5 ,
  ARENA_DESERTION_TYPE_LEAVE_QUEUE = 6 ,
  ARENA_DESERTION_TYPE_NO_ENTER_BUTTON = 7 ,
  ARENA_DESERTION_TYPE_INVITE_LOGOUT = 8
}
 
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 
216{
217 ARENA_TYPE_2v2 = 2,
218 ARENA_TYPE_3v3 = 3,
220};
@ ARENA_TYPE_5v5
Definition: Battleground.h:219
@ ARENA_TYPE_3v3
Definition: Battleground.h:218
@ ARENA_TYPE_2v2
Definition: Battleground.h:217

◆ 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 
73{
75 BG_TEXT_HORDE_WINS = 10634,
76
81};
@ BG_TEXT_START_TWO_MINUTES
Definition: Battleground.h:77
@ BG_TEXT_BATTLE_HAS_BEGUN
Definition: Battleground.h:80
@ BG_TEXT_ALLIANCE_WINS
Definition: Battleground.h:74
@ BG_TEXT_HORDE_WINS
Definition: Battleground.h:75
@ BG_TEXT_START_ONE_MINUTE
Definition: Battleground.h:78
@ BG_TEXT_START_HALF_MINUTE
Definition: Battleground.h:79

◆ BattlegroundBuffObjects

Enumerator
BG_OBJECTID_SPEEDBUFF_ENTRY 
BG_OBJECTID_REGENBUFF_ENTRY 
BG_OBJECTID_BERSERKERBUFF_ENTRY 
189{
193};
@ BG_OBJECTID_REGENBUFF_ENTRY
Definition: Battleground.h:191
@ BG_OBJECTID_BERSERKERBUFF_ENTRY
Definition: Battleground.h:192
@ BG_OBJECTID_SPEEDBUFF_ENTRY
Definition: Battleground.h:190

◆ BattlegroundCreatures

Enumerator
BG_CREATURE_ENTRY_A_SPIRITGUIDE 
BG_CREATURE_ENTRY_H_SPIRITGUIDE 
130{
131 BG_CREATURE_ENTRY_A_SPIRITGUIDE = 13116, // alliance
132 BG_CREATURE_ENTRY_H_SPIRITGUIDE = 13117, // horde
133};
@ BG_CREATURE_ENTRY_H_SPIRITGUIDE
Definition: Battleground.h:132
@ BG_CREATURE_ENTRY_A_SPIRITGUIDE
Definition: Battleground.h:131

◆ 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 
ARENA_DESERTION_TYPE_LEAVE_BG 
ARENA_DESERTION_TYPE_LEAVE_QUEUE 
ARENA_DESERTION_TYPE_NO_ENTER_BUTTON 
ARENA_DESERTION_TYPE_INVITE_LOGOUT 
50{
51 BG_DESERTION_TYPE_LEAVE_BG = 0, // player leaves the BG
52 BG_DESERTION_TYPE_OFFLINE = 1, // player is kicked from BG because offline
53 BG_DESERTION_TYPE_LEAVE_QUEUE = 2, // player is invited to join and refuses to do it
54 BG_DESERTION_TYPE_NO_ENTER_BUTTON = 3, // player is invited to join and do nothing (time expires)
55 BG_DESERTION_TYPE_INVITE_LOGOUT = 4, // player is invited to join and logs out
56 ARENA_DESERTION_TYPE_LEAVE_BG = 5, // player leaves the Arena
57 ARENA_DESERTION_TYPE_LEAVE_QUEUE = 6, // player is invited to join arena and refuses to do it
58 ARENA_DESERTION_TYPE_NO_ENTER_BUTTON = 7, // player is invited to join arena and do nothing (time expires)
59 ARENA_DESERTION_TYPE_INVITE_LOGOUT = 8, // player is invited to join arena and logs out
60};
@ ARENA_DESERTION_TYPE_LEAVE_QUEUE
Definition: Battleground.h:57
@ ARENA_DESERTION_TYPE_NO_ENTER_BUTTON
Definition: Battleground.h:58
@ ARENA_DESERTION_TYPE_INVITE_LOGOUT
Definition: Battleground.h:59
@ BG_DESERTION_TYPE_LEAVE_BG
Definition: Battleground.h:51
@ BG_DESERTION_TYPE_OFFLINE
Definition: Battleground.h:52
@ BG_DESERTION_TYPE_NO_ENTER_BUTTON
Definition: Battleground.h:54
@ BG_DESERTION_TYPE_LEAVE_QUEUE
Definition: Battleground.h:53
@ BG_DESERTION_TYPE_INVITE_LOGOUT
Definition: Battleground.h:55
@ ARENA_DESERTION_TYPE_LEAVE_BG
Definition: Battleground.h:56

◆ 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 
63{
70};
@ MAP_BG_ARATHI_BASIN
Definition: Battleground.h:66
@ MAP_BG_ISLE_OF_CONQUEST
Definition: Battleground.h:69
@ MAP_BG_ALTERAC_VALLEY
Definition: Battleground.h:64
@ MAP_BG_EYE_OF_THE_STORM
Definition: Battleground.h:67
@ MAP_BG_WARSONG_GULCH
Definition: Battleground.h:65
@ MAP_BG_STRAND_OF_THE_ANCIENTS
Definition: Battleground.h:68

◆ 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 
104{
105 SPELL_WS_MARK_LOSER = 24950,
106 SPELL_WS_MARK_WINNER = 24951,
107 SPELL_WS_MARK_TIE = 66126,
108 SPELL_AB_MARK_LOSER = 24952,
109 SPELL_AB_MARK_WINNER = 24953,
110 SPELL_AV_MARK_LOSER = 24954,
111 SPELL_AV_MARK_WINNER = 24955,
112 SPELL_SA_MARK_WINNER = 61160,
113 SPELL_SA_MARK_LOSER = 61159,
114 SPELL_WG_MARK_WINNER = 56902,
115 ITEM_AV_MARK_OF_HONOR = 20560,
116 ITEM_WS_MARK_OF_HONOR = 20558,
117 ITEM_AB_MARK_OF_HONOR = 20559,
118 ITEM_EY_MARK_OF_HONOR = 29024,
119 ITEM_SA_MARK_OF_HONOR = 42425,
120 ITEM_IC_MARK_OF_HONOR = 47395,
121};
@ SPELL_WS_MARK_WINNER
Definition: Battleground.h:106
@ ITEM_WS_MARK_OF_HONOR
Definition: Battleground.h:116
@ ITEM_SA_MARK_OF_HONOR
Definition: Battleground.h:119
@ SPELL_SA_MARK_WINNER
Definition: Battleground.h:112
@ SPELL_AV_MARK_LOSER
Definition: Battleground.h:110
@ ITEM_EY_MARK_OF_HONOR
Definition: Battleground.h:118
@ SPELL_WS_MARK_TIE
Definition: Battleground.h:107
@ ITEM_IC_MARK_OF_HONOR
Definition: Battleground.h:120
@ SPELL_WS_MARK_LOSER
Definition: Battleground.h:105
@ SPELL_SA_MARK_LOSER
Definition: Battleground.h:113
@ SPELL_AB_MARK_LOSER
Definition: Battleground.h:108
@ ITEM_AV_MARK_OF_HONOR
Definition: Battleground.h:115
@ SPELL_WG_MARK_WINNER
Definition: Battleground.h:114
@ ITEM_AB_MARK_OF_HONOR
Definition: Battleground.h:117
@ SPELL_AB_MARK_WINNER
Definition: Battleground.h:109
@ SPELL_AV_MARK_WINNER
Definition: Battleground.h:111

◆ BattlegroundMarksCount

Enumerator
ITEM_WINNER_COUNT 
ITEM_LOSER_COUNT 
124{
127};
@ ITEM_WINNER_COUNT
Definition: Battleground.h:125
@ ITEM_LOSER_COUNT
Definition: Battleground.h:126

◆ 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 
92{
101};
@ SPELL_AV_QUEST_REWARD
Definition: Battleground.h:95
@ SPELL_AB_QUEST_REWARD_4_BASES
Definition: Battleground.h:99
@ SPELL_AB_QUEST_REWARD
Definition: Battleground.h:94
@ SPELL_AB_QUEST_REWARD_5_BASES
Definition: Battleground.h:100
@ SPELL_WS_QUEST_REWARD
Definition: Battleground.h:93
@ SPELL_SA_QUEST_REWARD
Definition: Battleground.h:98
@ SPELL_EY_QUEST_REWARD
Definition: Battleground.h:97
@ SPELL_AV_QUEST_KILLED_BOSS
Definition: Battleground.h:96

◆ BattlegroundQueueInvitationType

Enumerator
BG_QUEUE_INVITATION_TYPE_NO_BALANCE 
BG_QUEUE_INVITATION_TYPE_BALANCED 
BG_QUEUE_INVITATION_TYPE_EVEN 
296{
297 BG_QUEUE_INVITATION_TYPE_NO_BALANCE = 0, // no balance: N+M vs N players
298 BG_QUEUE_INVITATION_TYPE_BALANCED = 1, // teams balanced: N+1 vs N players
299 BG_QUEUE_INVITATION_TYPE_EVEN = 2 // teams even: N vs N players
300};
@ BG_QUEUE_INVITATION_TYPE_NO_BALANCE
Definition: Battleground.h:297
@ BG_QUEUE_INVITATION_TYPE_EVEN
Definition: Battleground.h:299
@ BG_QUEUE_INVITATION_TYPE_BALANCED
Definition: Battleground.h:298

◆ 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 
151{
152 BG_REP_AV_HORDE = 729,
153 BG_REP_AV_ALLIANCE = 730,
154 BG_REP_AB_HORDE = 510,
155 BG_REP_AB_ALLIANCE = 509,
156 BG_REP_WS_HORDE = 889,
157 BG_REP_WS_ALLIANCE = 890,
158};
@ BG_REP_AV_HORDE
Definition: Battleground.h:152
@ BG_REP_AB_HORDE
Definition: Battleground.h:154
@ BG_REP_WS_HORDE
Definition: Battleground.h:156
@ BG_REP_WS_ALLIANCE
Definition: Battleground.h:157
@ BG_REP_AV_ALLIANCE
Definition: Battleground.h:153
@ BG_REP_AB_ALLIANCE
Definition: Battleground.h:155

◆ BattlegroundSounds

Enumerator
SOUND_HORDE_WINS 
SOUND_ALLIANCE_WINS 
SOUND_BG_START 
SOUND_BG_START_L70ETC 
84{
85 SOUND_HORDE_WINS = 8454,
87 SOUND_BG_START = 3439,
89};
@ SOUND_BG_START
Definition: Battleground.h:87
@ SOUND_ALLIANCE_WINS
Definition: Battleground.h:86
@ SOUND_HORDE_WINS
Definition: Battleground.h:85
@ SOUND_BG_START_L70ETC
Definition: Battleground.h:88

◆ 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 
136{
137 SPELL_WAITING_FOR_RESURRECT = 2584, // Waiting to Resurrect
138 SPELL_SPIRIT_HEAL_CHANNEL = 22011, // Spirit Heal Channel
139 SPELL_SPIRIT_HEAL = 22012, // Spirit Heal
140 SPELL_RESURRECTION_VISUAL = 24171, // Resurrection Impact Visual
141 SPELL_ARENA_PREPARATION = 32727, // use this one, 32728 not correct
142 SPELL_PREPARATION = 44521, // Preparation
143 SPELL_SPIRIT_HEAL_MANA = 44535, // Spirit Heal
144 SPELL_RECENTLY_DROPPED_FLAG = 42792, // Recently Dropped Flag
145 SPELL_AURA_PLAYER_INACTIVE = 43681, // Inactive
146 SPELL_HONORABLE_DEFENDER_25Y = 68652, // +50% honor when standing at a capture point that you control, 25yards radius (added in 3.2)
147 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
148};
@ SPELL_SPIRIT_HEAL
Definition: Battleground.h:139
@ SPELL_AURA_PLAYER_INACTIVE
Definition: Battleground.h:145
@ SPELL_RECENTLY_DROPPED_FLAG
Definition: Battleground.h:144
@ SPELL_SPIRIT_HEAL_CHANNEL
Definition: Battleground.h:138
@ SPELL_ARENA_PREPARATION
Definition: Battleground.h:141
@ SPELL_SPIRIT_HEAL_MANA
Definition: Battleground.h:143
@ SPELL_HONORABLE_DEFENDER_25Y
Definition: Battleground.h:146
@ SPELL_PREPARATION
Definition: Battleground.h:142
@ SPELL_RESURRECTION_VISUAL
Definition: Battleground.h:140
@ SPELL_WAITING_FOR_RESURRECT
Definition: Battleground.h:137
@ SPELL_HONORABLE_DEFENDER_60Y
Definition: Battleground.h:147

◆ BattlegroundStartingEvents

Enumerator
BG_STARTING_EVENT_NONE 
BG_STARTING_EVENT_1 
BG_STARTING_EVENT_2 
BG_STARTING_EVENT_3 
BG_STARTING_EVENT_4 
229{
231 BG_STARTING_EVENT_1 = 0x01,
232 BG_STARTING_EVENT_2 = 0x02,
233 BG_STARTING_EVENT_3 = 0x04,
235};
@ BG_STARTING_EVENT_NONE
Definition: Battleground.h:230
@ BG_STARTING_EVENT_3
Definition: Battleground.h:233
@ BG_STARTING_EVENT_2
Definition: Battleground.h:232
@ BG_STARTING_EVENT_1
Definition: Battleground.h:231
@ BG_STARTING_EVENT_4
Definition: Battleground.h:234

◆ BattlegroundStartingEventsIds

Enumerator
BG_STARTING_EVENT_FIRST 
BG_STARTING_EVENT_SECOND 
BG_STARTING_EVENT_THIRD 
BG_STARTING_EVENT_FOURTH 
238{
243};
@ BG_STARTING_EVENT_THIRD
Definition: Battleground.h:241
@ BG_STARTING_EVENT_SECOND
Definition: Battleground.h:240
@ BG_STARTING_EVENT_FIRST
Definition: Battleground.h:239
@ BG_STARTING_EVENT_FOURTH
Definition: Battleground.h:242

◆ BattlegroundStartTimeIntervals

Enumerator
BG_START_DELAY_2M 
BG_START_DELAY_1M 
BG_START_DELAY_30S 
BG_START_DELAY_15S 
BG_START_DELAY_NONE 
178{
179 BG_START_DELAY_2M = 120000, // ms (2 minutes)
180 BG_START_DELAY_1M = 60000, // ms (1 minute)
181 BG_START_DELAY_30S = 30000, // ms (30 seconds)
182 BG_START_DELAY_15S = 15000, // ms (15 seconds) Used only in arena
183 BG_START_DELAY_NONE = 0, // ms
184};
@ BG_START_DELAY_1M
Definition: Battleground.h:180
@ BG_START_DELAY_30S
Definition: Battleground.h:181
@ BG_START_DELAY_2M
Definition: Battleground.h:179
@ BG_START_DELAY_NONE
Definition: Battleground.h:183
@ BG_START_DELAY_15S
Definition: Battleground.h:182

◆ BattlegroundStatus

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

◆ BattlegroundTimeIntervals

Enumerator
CHECK_PLAYER_POSITION_INVERVAL 
INVITATION_REMIND_TIME 
INVITE_ACCEPT_WAIT_TIME 
TIME_TO_AUTOREMOVE 
MAX_OFFLINE_TIME 
RESPAWN_ONE_DAY 
RESPAWN_IMMEDIATELY 
161{
163 //REMIND_INTERVAL = 10000, // ms
164 INVITATION_REMIND_TIME = 20000, // ms
165 INVITE_ACCEPT_WAIT_TIME = 60000, // ms
166 TIME_TO_AUTOREMOVE = 120000, // ms
167 MAX_OFFLINE_TIME = 300, // secs
168 RESPAWN_ONE_DAY = 86400, // secs
169 RESPAWN_IMMEDIATELY = 0, // secs
170};
@ INVITE_ACCEPT_WAIT_TIME
Definition: Battleground.h:165
@ TIME_TO_AUTOREMOVE
Definition: Battleground.h:166
@ MAX_OFFLINE_TIME
Definition: Battleground.h:167
@ RESPAWN_IMMEDIATELY
Definition: Battleground.h:169
@ RESPAWN_ONE_DAY
Definition: Battleground.h:168
@ CHECK_PLAYER_POSITION_INVERVAL
Definition: Battleground.h:162
@ INVITATION_REMIND_TIME
Definition: Battleground.h:164

◆ BattlegroundType

Enumerator
TYPE_BATTLEGROUND 
TYPE_ARENA 
223{
225 TYPE_ARENA = 4
226};
@ TYPE_BATTLEGROUND
Definition: Battleground.h:224
@ TYPE_ARENA
Definition: Battleground.h:225

◆ BGHonorMode

Enumerator
BG_NORMAL 
BG_HOLIDAY 
BG_HONOR_MODE_NUM 
278{
279 BG_NORMAL = 0,
282};
@ BG_NORMAL
Definition: Battleground.h:279
@ BG_HOLIDAY
Definition: Battleground.h:280
@ BG_HONOR_MODE_NUM
Definition: Battleground.h:281

◆ SpiritOfCompetitionEvent

Enumerator
EVENT_SPIRIT_OF_COMPETITION 
QUEST_FLAG_PARTICIPANT 
QUEST_FLAG_WINNER 
SPELL_SPIRIT_OF_COMPETITION_PARTICIPANT 
SPELL_SPIRIT_OF_COMPETITION_WINNER 
246{
249 QUEST_FLAG_WINNER = 12186,
252};
@ SPELL_SPIRIT_OF_COMPETITION_PARTICIPANT
Definition: Battleground.h:250
@ QUEST_FLAG_WINNER
Definition: Battleground.h:249
@ EVENT_SPIRIT_OF_COMPETITION
Definition: Battleground.h:247
@ SPELL_SPIRIT_OF_COMPETITION_WINNER
Definition: Battleground.h:251
@ QUEST_FLAG_PARTICIPANT
Definition: Battleground.h:248

Variable Documentation

◆ BG_STARTING_EVENT_COUNT

constexpr auto BG_STARTING_EVENT_COUNT = 4
constexpr

◆ Buff_Entries