AzerothCore 3.3.5a
OpenSource WoW Emulator
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Battleground.h File Reference
#include "ArenaScore.h"
#include "Common.h"
#include "DBCEnums.h"
#include "GameObject.h"
#include "SharedDefines.h"
#include "World.h"
#include "WorldStatePackets.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  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 
207{
208 ARENA_TYPE_2v2 = 2,
209 ARENA_TYPE_3v3 = 3,
211};
@ ARENA_TYPE_5v5
Definition Battleground.h:210
@ ARENA_TYPE_3v3
Definition Battleground.h:209
@ ARENA_TYPE_2v2
Definition Battleground.h:208

◆ 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 
64{
66 BG_TEXT_HORDE_WINS = 10634,
67
72};
@ BG_TEXT_START_TWO_MINUTES
Definition Battleground.h:68
@ BG_TEXT_BATTLE_HAS_BEGUN
Definition Battleground.h:71
@ BG_TEXT_ALLIANCE_WINS
Definition Battleground.h:65
@ BG_TEXT_HORDE_WINS
Definition Battleground.h:66
@ BG_TEXT_START_ONE_MINUTE
Definition Battleground.h:69
@ BG_TEXT_START_HALF_MINUTE
Definition Battleground.h:70

◆ BattlegroundBuffObjects

Enumerator
BG_OBJECTID_SPEEDBUFF_ENTRY 
BG_OBJECTID_REGENBUFF_ENTRY 
BG_OBJECTID_BERSERKERBUFF_ENTRY 
180{
184};
@ BG_OBJECTID_REGENBUFF_ENTRY
Definition Battleground.h:182
@ BG_OBJECTID_BERSERKERBUFF_ENTRY
Definition Battleground.h:183
@ BG_OBJECTID_SPEEDBUFF_ENTRY
Definition Battleground.h:181

◆ BattlegroundCreatures

Enumerator
BG_CREATURE_ENTRY_A_SPIRITGUIDE 
BG_CREATURE_ENTRY_H_SPIRITGUIDE 
121{
122 BG_CREATURE_ENTRY_A_SPIRITGUIDE = 13116, // alliance
123 BG_CREATURE_ENTRY_H_SPIRITGUIDE = 13117, // horde
124};
@ BG_CREATURE_ENTRY_H_SPIRITGUIDE
Definition Battleground.h:123
@ BG_CREATURE_ENTRY_A_SPIRITGUIDE
Definition Battleground.h:122

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

◆ 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 
95{
96 SPELL_WS_MARK_LOSER = 24950,
98 SPELL_WS_MARK_TIE = 66126,
99 SPELL_AB_MARK_LOSER = 24952,
100 SPELL_AB_MARK_WINNER = 24953,
101 SPELL_AV_MARK_LOSER = 24954,
102 SPELL_AV_MARK_WINNER = 24955,
103 SPELL_SA_MARK_WINNER = 61160,
104 SPELL_SA_MARK_LOSER = 61159,
105 SPELL_WG_MARK_WINNER = 56902,
106 ITEM_AV_MARK_OF_HONOR = 20560,
107 ITEM_WS_MARK_OF_HONOR = 20558,
108 ITEM_AB_MARK_OF_HONOR = 20559,
109 ITEM_EY_MARK_OF_HONOR = 29024,
110 ITEM_SA_MARK_OF_HONOR = 42425,
111 ITEM_IC_MARK_OF_HONOR = 47395,
112};
@ SPELL_WS_MARK_WINNER
Definition Battleground.h:97
@ ITEM_WS_MARK_OF_HONOR
Definition Battleground.h:107
@ ITEM_SA_MARK_OF_HONOR
Definition Battleground.h:110
@ SPELL_SA_MARK_WINNER
Definition Battleground.h:103
@ SPELL_AV_MARK_LOSER
Definition Battleground.h:101
@ ITEM_EY_MARK_OF_HONOR
Definition Battleground.h:109
@ SPELL_WS_MARK_TIE
Definition Battleground.h:98
@ ITEM_IC_MARK_OF_HONOR
Definition Battleground.h:111
@ SPELL_WS_MARK_LOSER
Definition Battleground.h:96
@ SPELL_SA_MARK_LOSER
Definition Battleground.h:104
@ SPELL_AB_MARK_LOSER
Definition Battleground.h:99
@ ITEM_AV_MARK_OF_HONOR
Definition Battleground.h:106
@ SPELL_WG_MARK_WINNER
Definition Battleground.h:105
@ ITEM_AB_MARK_OF_HONOR
Definition Battleground.h:108
@ SPELL_AB_MARK_WINNER
Definition Battleground.h:100
@ SPELL_AV_MARK_WINNER
Definition Battleground.h:102

◆ BattlegroundMarksCount

Enumerator
ITEM_WINNER_COUNT 
ITEM_LOSER_COUNT 
115{
118};
@ ITEM_WINNER_COUNT
Definition Battleground.h:116
@ ITEM_LOSER_COUNT
Definition Battleground.h:117

◆ 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 
83{
92};
@ SPELL_AV_QUEST_REWARD
Definition Battleground.h:86
@ SPELL_AB_QUEST_REWARD_4_BASES
Definition Battleground.h:90
@ SPELL_AB_QUEST_REWARD
Definition Battleground.h:85
@ SPELL_AB_QUEST_REWARD_5_BASES
Definition Battleground.h:91
@ SPELL_WS_QUEST_REWARD
Definition Battleground.h:84
@ SPELL_SA_QUEST_REWARD
Definition Battleground.h:89
@ SPELL_EY_QUEST_REWARD
Definition Battleground.h:88
@ SPELL_AV_QUEST_KILLED_BOSS
Definition Battleground.h:87

◆ BattlegroundQueueInvitationType

Enumerator
BG_QUEUE_INVITATION_TYPE_NO_BALANCE 
BG_QUEUE_INVITATION_TYPE_BALANCED 
BG_QUEUE_INVITATION_TYPE_EVEN 
287{
288 BG_QUEUE_INVITATION_TYPE_NO_BALANCE = 0, // no balance: N+M vs N players
289 BG_QUEUE_INVITATION_TYPE_BALANCED = 1, // teams balanced: N+1 vs N players
290 BG_QUEUE_INVITATION_TYPE_EVEN = 2 // teams even: N vs N players
291};
@ BG_QUEUE_INVITATION_TYPE_NO_BALANCE
Definition Battleground.h:288
@ BG_QUEUE_INVITATION_TYPE_EVEN
Definition Battleground.h:290
@ BG_QUEUE_INVITATION_TYPE_BALANCED
Definition Battleground.h:289

◆ 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 
142{
143 BG_REP_AV_HORDE = 729,
144 BG_REP_AV_ALLIANCE = 730,
145 BG_REP_AB_HORDE = 510,
146 BG_REP_AB_ALLIANCE = 509,
147 BG_REP_WS_HORDE = 889,
148 BG_REP_WS_ALLIANCE = 890,
149};
@ BG_REP_AV_HORDE
Definition Battleground.h:143
@ BG_REP_AB_HORDE
Definition Battleground.h:145
@ BG_REP_WS_HORDE
Definition Battleground.h:147
@ BG_REP_WS_ALLIANCE
Definition Battleground.h:148
@ BG_REP_AV_ALLIANCE
Definition Battleground.h:144
@ BG_REP_AB_ALLIANCE
Definition Battleground.h:146

◆ BattlegroundSounds

Enumerator
SOUND_HORDE_WINS 
SOUND_ALLIANCE_WINS 
SOUND_BG_START 
SOUND_BG_START_L70ETC 
75{
76 SOUND_HORDE_WINS = 8454,
78 SOUND_BG_START = 3439,
80};
@ SOUND_BG_START
Definition Battleground.h:78
@ SOUND_ALLIANCE_WINS
Definition Battleground.h:77
@ SOUND_HORDE_WINS
Definition Battleground.h:76
@ SOUND_BG_START_L70ETC
Definition Battleground.h:79

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

◆ BattlegroundStartingEvents

Enumerator
BG_STARTING_EVENT_NONE 
BG_STARTING_EVENT_1 
BG_STARTING_EVENT_2 
BG_STARTING_EVENT_3 
BG_STARTING_EVENT_4 
220{
222 BG_STARTING_EVENT_1 = 0x01,
223 BG_STARTING_EVENT_2 = 0x02,
224 BG_STARTING_EVENT_3 = 0x04,
226};
@ BG_STARTING_EVENT_NONE
Definition Battleground.h:221
@ BG_STARTING_EVENT_3
Definition Battleground.h:224
@ BG_STARTING_EVENT_2
Definition Battleground.h:223
@ BG_STARTING_EVENT_1
Definition Battleground.h:222
@ BG_STARTING_EVENT_4
Definition Battleground.h:225

◆ BattlegroundStartingEventsIds

Enumerator
BG_STARTING_EVENT_FIRST 
BG_STARTING_EVENT_SECOND 
BG_STARTING_EVENT_THIRD 
BG_STARTING_EVENT_FOURTH 
229{
234};
@ BG_STARTING_EVENT_THIRD
Definition Battleground.h:232
@ BG_STARTING_EVENT_SECOND
Definition Battleground.h:231
@ BG_STARTING_EVENT_FIRST
Definition Battleground.h:230
@ BG_STARTING_EVENT_FOURTH
Definition Battleground.h:233

◆ BattlegroundStartTimeIntervals

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

◆ BattlegroundStatus

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

◆ BattlegroundTimeIntervals

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

◆ BattlegroundType

Enumerator
TYPE_BATTLEGROUND 
TYPE_ARENA 
214{
216 TYPE_ARENA = 4
217};
@ TYPE_BATTLEGROUND
Definition Battleground.h:215
@ TYPE_ARENA
Definition Battleground.h:216

◆ BGHonorMode

Enumerator
BG_NORMAL 
BG_HOLIDAY 
BG_HONOR_MODE_NUM 
269{
270 BG_NORMAL = 0,
273};
@ BG_NORMAL
Definition Battleground.h:270
@ BG_HOLIDAY
Definition Battleground.h:271
@ BG_HONOR_MODE_NUM
Definition Battleground.h:272

◆ SpiritOfCompetitionEvent

Enumerator
EVENT_SPIRIT_OF_COMPETITION 
QUEST_FLAG_PARTICIPANT 
QUEST_FLAG_WINNER 
SPELL_SPIRIT_OF_COMPETITION_PARTICIPANT 
SPELL_SPIRIT_OF_COMPETITION_WINNER 
237{
240 QUEST_FLAG_WINNER = 12186,
243};
@ SPELL_SPIRIT_OF_COMPETITION_PARTICIPANT
Definition Battleground.h:241
@ QUEST_FLAG_WINNER
Definition Battleground.h:240
@ EVENT_SPIRIT_OF_COMPETITION
Definition Battleground.h:238
@ SPELL_SPIRIT_OF_COMPETITION_WINNER
Definition Battleground.h:242
@ QUEST_FLAG_PARTICIPANT
Definition Battleground.h:239

Variable Documentation

◆ BG_STARTING_EVENT_COUNT

constexpr auto BG_STARTING_EVENT_COUNT = 4
constexpr

◆ Buff_Entries