TrinityCore
BattlegroundEY.h File Reference
#include "Battleground.h"
#include "BattlegroundScore.h"
#include "Object.h"
#include "Timer.h"
+ Include dependency graph for BattlegroundEY.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BattlegroundEYPointIconsStruct
 
struct  BattlegroundEYLosingPointStruct
 
struct  BattlegroundEYCapturingPointStruct
 
class  BattlegroundEYControlZoneHandler
 
class  BattlegroundEY
 

Macros

#define BG_EY_NotEYWeekendHonorTicks   260
 
#define BG_EY_EYWeekendHonorTicks   160
 

Enumerations

enum  BG_EY_Misc { BG_EY_EVENT_START_BATTLE = 13180 }
 
enum  BG_EY_WorldStates {
  EY_ALLIANCE_RESOURCES = 1776 , EY_HORDE_RESOURCES = 1777 , EY_MAX_RESOURCES = 1780 , EY_ALLIANCE_BASE = 2752 ,
  EY_HORDE_BASE = 2753 , DRAENEI_RUINS_HORDE_CONTROL = 2733 , DRAENEI_RUINS_ALLIANCE_CONTROL = 2732 , DRAENEI_RUINS_UNCONTROL = 2731 ,
  MAGE_TOWER_ALLIANCE_CONTROL = 2730 , MAGE_TOWER_HORDE_CONTROL = 2729 , MAGE_TOWER_UNCONTROL = 2728 , FEL_REAVER_HORDE_CONTROL = 2727 ,
  FEL_REAVER_ALLIANCE_CONTROL = 2726 , FEL_REAVER_UNCONTROL = 2725 , BLOOD_ELF_HORDE_CONTROL = 2724 , BLOOD_ELF_ALLIANCE_CONTROL = 2723 ,
  BLOOD_ELF_UNCONTROL = 2722 , PROGRESS_BAR_PERCENT_GREY = 2720 , PROGRESS_BAR_STATUS = 2719 , PROGRESS_BAR_SHOW = 2718 ,
  NETHERSTORM_FLAG = 8863 , NETHERSTORM_FLAG_STATE_ALLIANCE = 9808 , NETHERSTORM_FLAG_STATE_HORDE = 9809 , DRAENEI_RUINS_HORDE_CONTROL_STATE = 17362 ,
  DRAENEI_RUINS_ALLIANCE_CONTROL_STATE = 17366 , MAGE_TOWER_HORDE_CONTROL_STATE = 17361 , MAGE_TOWER_ALLIANCE_CONTROL_STATE = 17368 , FEL_REAVER_HORDE_CONTROL_STATE = 17364 ,
  FEL_REAVER_ALLIANCE_CONTROL_STATE = 17367 , BLOOD_ELF_HORDE_CONTROL_STATE = 17363 , BLOOD_ELF_ALLIANCE_CONTROL_STATE = 17365
}
 
enum  BG_EY_Sounds {
  BG_EY_SOUND_FLAG_PICKED_UP_ALLIANCE = 8212 , BG_EY_SOUND_FLAG_CAPTURED_HORDE = 8213 , BG_EY_SOUND_FLAG_PICKED_UP_HORDE = 8174 , BG_EY_SOUND_FLAG_CAPTURED_ALLIANCE = 8173 ,
  BG_EY_SOUND_FLAG_RESET = 8192
}
 
enum  BG_EY_Spells { BG_EY_NETHERSTORM_FLAG_SPELL = 34976 , BG_EY_PLAYER_DROPPED_FLAG_SPELL = 34991 , BG_EY_FOCUSED_ASSAULT_SPELL = 46392 , BG_EY_BRUTAL_ASSAULT_SPELL = 46393 }
 
enum  EYBattlegroundObjectEntry {
  BG_OBJECT_A_DOOR_EY_ENTRY = 184719 , BG_OBJECT_H_DOOR_EY_ENTRY = 184720 , BG_OBJECT_FLAG2_EY_ENTRY = 208977 , BG_OBJECT_BE_TOWER_CAP_EY_ENTRY = 184080 ,
  BG_OBJECT_FR_TOWER_CAP_EY_ENTRY = 184081 , BG_OBJECT_HU_TOWER_CAP_EY_ENTRY = 184082 , BG_OBJECT_DR_TOWER_CAP_EY_ENTRY = 184083
}
 
enum  EYBattlegroundPointsTrigger { AREATRIGGER_CAPTURE_FLAG = 33 }
 
enum  EYBattlegroundPoints {
  FEL_REAVER = 0 , BLOOD_ELF = 1 , DRAENEI_RUINS = 2 , MAGE_TOWER = 3 ,
  EY_PLAYERS_OUT_OF_POINTS = 4 , EY_POINTS_MAX = 4
}
 
enum  BG_EY_Score { BG_EY_WARNING_NEAR_VICTORY_SCORE = 1200 , BG_EY_MAX_TEAM_SCORE = 1500 }
 
enum  BG_EY_FlagState { BG_EY_FLAG_STATE_ON_BASE = 0 , BG_EY_FLAG_STATE_WAIT_RESPAWN = 1 , BG_EY_FLAG_STATE_ON_PLAYER = 2 , BG_EY_FLAG_STATE_ON_GROUND = 3 }
 
enum  EYBattlegroundPointState { EY_POINT_NO_OWNER = 0 , EY_POINT_STATE_UNCONTROLLED = 0 , EY_POINT_UNDER_CONTROL = 3 }
 
enum  BG_EY_ExploitTeleportLocations { EY_EXPLOIT_TELEPORT_LOCATION_ALLIANCE = 3773 , EY_EXPLOIT_TELEPORT_LOCATION_HORDE = 3772 }
 
enum  BG_EY_BroadcastTexts {
  BG_EY_TEXT_ALLIANCE_TAKEN_FEL_REAVER_RUINS = 17828 , BG_EY_TEXT_HORDE_TAKEN_FEL_REAVER_RUINS = 17829 , BG_EY_TEXT_ALLIANCE_LOST_FEL_REAVER_RUINS = 91961 , BG_EY_TEXT_HORDE_LOST_FEL_REAVER_RUINS = 91962 ,
  BG_EY_TEXT_ALLIANCE_TAKEN_BLOOD_ELF_TOWER = 17819 , BG_EY_TEXT_HORDE_TAKEN_BLOOD_ELF_TOWER = 17823 , BG_EY_TEXT_ALLIANCE_LOST_BLOOD_ELF_TOWER = 91957 , BG_EY_TEXT_HORDE_LOST_BLOOD_ELF_TOWER = 91958 ,
  BG_EY_TEXT_ALLIANCE_TAKEN_DRAENEI_RUINS = 17827 , BG_EY_TEXT_HORDE_TAKEN_DRAENEI_RUINS = 91917 , BG_EY_TEXT_ALLIANCE_LOST_DRAENEI_RUINS = 91959 , BG_EY_TEXT_HORDE_LOST_DRAENEI_RUINS = 91960 ,
  BG_EY_TEXT_ALLIANCE_TAKEN_MAGE_TOWER = 17824 , BG_EY_TEXT_HORDE_TAKEN_MAGE_TOWER = 17825 , BG_EY_TEXT_ALLIANCE_LOST_MAGE_TOWER = 91963 , BG_EY_TEXT_HORDE_LOST_MAGE_TOWER = 91964 ,
  BG_EY_TEXT_TAKEN_FLAG = 18359 , BG_EY_TEXT_FLAG_DROPPED = 18361 , BG_EY_TEXT_FLAG_RESET = 18364 , BG_EY_TEXT_ALLIANCE_CAPTURED_FLAG = 18375 ,
  BG_EY_TEXT_HORDE_CAPTURED_FLAG = 18384
}
 

Variables

static constexpr Seconds POINTS_TICK_TIME = 2s
 
static constexpr Seconds BG_EY_FLAG_ASSAULT_TIMER = 30s
 
static constexpr uint16 BG_EY_FLAG_BRUTAL_ASSAULT_STACK_COUNT = 5
 
const std::array< uint8, EY_POINTS_MAXBG_EY_TickPoints = { 1, 2, 5, 10 }
 
const std::array< uint32, EY_POINTS_MAXBG_EY_FlagPoints = { 75, 85, 100, 500 }
 
const std::array< BattlegroundEYPointIconsStruct, EY_POINTS_MAXm_PointsIconStruct
 
const std::array< BattlegroundEYLosingPointStruct, EY_POINTS_MAXm_LosingPointTypes
 
const std::array< BattlegroundEYCapturingPointStruct, EY_POINTS_MAXm_CapturingPointTypes
 

Macro Definition Documentation

◆ BG_EY_EYWeekendHonorTicks

#define BG_EY_EYWeekendHonorTicks   160

Definition at line 120 of file BattlegroundEY.h.

◆ BG_EY_NotEYWeekendHonorTicks

#define BG_EY_NotEYWeekendHonorTicks   260

Definition at line 119 of file BattlegroundEY.h.

Enumeration Type Documentation

◆ BG_EY_BroadcastTexts

Enumerator
BG_EY_TEXT_ALLIANCE_TAKEN_FEL_REAVER_RUINS 
BG_EY_TEXT_HORDE_TAKEN_FEL_REAVER_RUINS 
BG_EY_TEXT_ALLIANCE_LOST_FEL_REAVER_RUINS 
BG_EY_TEXT_HORDE_LOST_FEL_REAVER_RUINS 
BG_EY_TEXT_ALLIANCE_TAKEN_BLOOD_ELF_TOWER 
BG_EY_TEXT_HORDE_TAKEN_BLOOD_ELF_TOWER 
BG_EY_TEXT_ALLIANCE_LOST_BLOOD_ELF_TOWER 
BG_EY_TEXT_HORDE_LOST_BLOOD_ELF_TOWER 
BG_EY_TEXT_ALLIANCE_TAKEN_DRAENEI_RUINS 
BG_EY_TEXT_HORDE_TAKEN_DRAENEI_RUINS 
BG_EY_TEXT_ALLIANCE_LOST_DRAENEI_RUINS 
BG_EY_TEXT_HORDE_LOST_DRAENEI_RUINS 
BG_EY_TEXT_ALLIANCE_TAKEN_MAGE_TOWER 
BG_EY_TEXT_HORDE_TAKEN_MAGE_TOWER 
BG_EY_TEXT_ALLIANCE_LOST_MAGE_TOWER 
BG_EY_TEXT_HORDE_LOST_MAGE_TOWER 
BG_EY_TEXT_TAKEN_FLAG 
BG_EY_TEXT_FLAG_DROPPED 
BG_EY_TEXT_FLAG_RESET 
BG_EY_TEXT_ALLIANCE_CAPTURED_FLAG 
BG_EY_TEXT_HORDE_CAPTURED_FLAG 

Definition at line 149 of file BattlegroundEY.h.

◆ BG_EY_ExploitTeleportLocations

Enumerator
EY_EXPLOIT_TELEPORT_LOCATION_ALLIANCE 
EY_EXPLOIT_TELEPORT_LOCATION_HORDE 

Definition at line 143 of file BattlegroundEY.h.

◆ BG_EY_FlagState

Enumerator
BG_EY_FLAG_STATE_ON_BASE 
BG_EY_FLAG_STATE_WAIT_RESPAWN 
BG_EY_FLAG_STATE_ON_PLAYER 
BG_EY_FLAG_STATE_ON_GROUND 

Definition at line 128 of file BattlegroundEY.h.

◆ BG_EY_Misc

enum BG_EY_Misc
Enumerator
BG_EY_EVENT_START_BATTLE 

Definition at line 30 of file BattlegroundEY.h.

◆ BG_EY_Score

Enumerator
BG_EY_WARNING_NEAR_VICTORY_SCORE 
BG_EY_MAX_TEAM_SCORE 

Definition at line 122 of file BattlegroundEY.h.

◆ BG_EY_Sounds

Enumerator
BG_EY_SOUND_FLAG_PICKED_UP_ALLIANCE 
BG_EY_SOUND_FLAG_CAPTURED_HORDE 
BG_EY_SOUND_FLAG_PICKED_UP_HORDE 
BG_EY_SOUND_FLAG_CAPTURED_ALLIANCE 
BG_EY_SOUND_FLAG_RESET 

Definition at line 72 of file BattlegroundEY.h.

◆ BG_EY_Spells

Enumerator
BG_EY_NETHERSTORM_FLAG_SPELL 
BG_EY_PLAYER_DROPPED_FLAG_SPELL 
BG_EY_FOCUSED_ASSAULT_SPELL 
BG_EY_BRUTAL_ASSAULT_SPELL 

Definition at line 82 of file BattlegroundEY.h.

◆ BG_EY_WorldStates

Enumerator
EY_ALLIANCE_RESOURCES 
EY_HORDE_RESOURCES 
EY_MAX_RESOURCES 
EY_ALLIANCE_BASE 
EY_HORDE_BASE 
DRAENEI_RUINS_HORDE_CONTROL 
DRAENEI_RUINS_ALLIANCE_CONTROL 
DRAENEI_RUINS_UNCONTROL 
MAGE_TOWER_ALLIANCE_CONTROL 
MAGE_TOWER_HORDE_CONTROL 
MAGE_TOWER_UNCONTROL 
FEL_REAVER_HORDE_CONTROL 
FEL_REAVER_ALLIANCE_CONTROL 
FEL_REAVER_UNCONTROL 
BLOOD_ELF_HORDE_CONTROL 
BLOOD_ELF_ALLIANCE_CONTROL 
BLOOD_ELF_UNCONTROL 
PROGRESS_BAR_PERCENT_GREY 
PROGRESS_BAR_STATUS 
PROGRESS_BAR_SHOW 
NETHERSTORM_FLAG 
NETHERSTORM_FLAG_STATE_ALLIANCE 
NETHERSTORM_FLAG_STATE_HORDE 
DRAENEI_RUINS_HORDE_CONTROL_STATE 
DRAENEI_RUINS_ALLIANCE_CONTROL_STATE 
MAGE_TOWER_HORDE_CONTROL_STATE 
MAGE_TOWER_ALLIANCE_CONTROL_STATE 
FEL_REAVER_HORDE_CONTROL_STATE 
FEL_REAVER_ALLIANCE_CONTROL_STATE 
BLOOD_ELF_HORDE_CONTROL_STATE 
BLOOD_ELF_ALLIANCE_CONTROL_STATE 

Definition at line 35 of file BattlegroundEY.h.

◆ EYBattlegroundObjectEntry

Enumerator
BG_OBJECT_A_DOOR_EY_ENTRY 
BG_OBJECT_H_DOOR_EY_ENTRY 
BG_OBJECT_FLAG2_EY_ENTRY 
BG_OBJECT_BE_TOWER_CAP_EY_ENTRY 
BG_OBJECT_FR_TOWER_CAP_EY_ENTRY 
BG_OBJECT_HU_TOWER_CAP_EY_ENTRY 
BG_OBJECT_DR_TOWER_CAP_EY_ENTRY 

Definition at line 92 of file BattlegroundEY.h.

◆ EYBattlegroundPoints

Enumerator
FEL_REAVER 
BLOOD_ELF 
DRAENEI_RUINS 
MAGE_TOWER 
EY_PLAYERS_OUT_OF_POINTS 
EY_POINTS_MAX 

Definition at line 108 of file BattlegroundEY.h.

◆ EYBattlegroundPointState

Enumerator
EY_POINT_NO_OWNER 
EY_POINT_STATE_UNCONTROLLED 
EY_POINT_UNDER_CONTROL 

Definition at line 136 of file BattlegroundEY.h.

◆ EYBattlegroundPointsTrigger

Enumerator
AREATRIGGER_CAPTURE_FLAG 

Definition at line 103 of file BattlegroundEY.h.

Variable Documentation

◆ BG_EY_FLAG_ASSAULT_TIMER

constexpr Seconds BG_EY_FLAG_ASSAULT_TIMER = 30s
staticconstexpr

Definition at line 27 of file BattlegroundEY.h.

◆ BG_EY_FLAG_BRUTAL_ASSAULT_STACK_COUNT

constexpr uint16 BG_EY_FLAG_BRUTAL_ASSAULT_STACK_COUNT = 5
staticconstexpr

Definition at line 28 of file BattlegroundEY.h.

◆ BG_EY_FlagPoints

const std::array<uint32, EY_POINTS_MAX> BG_EY_FlagPoints = { 75, 85, 100, 500 }

Definition at line 231 of file BattlegroundEY.h.

◆ BG_EY_TickPoints

const std::array<uint8, EY_POINTS_MAX> BG_EY_TickPoints = { 1, 2, 5, 10 }

Definition at line 230 of file BattlegroundEY.h.

◆ m_CapturingPointTypes

const std::array<BattlegroundEYCapturingPointStruct, EY_POINTS_MAX> m_CapturingPointTypes

◆ m_LosingPointTypes

const std::array<BattlegroundEYLosingPointStruct, EY_POINTS_MAX> m_LosingPointTypes

◆ m_PointsIconStruct

const std::array<BattlegroundEYPointIconsStruct, EY_POINTS_MAX> m_PointsIconStruct
Initial value:
=
{
}
@ BLOOD_ELF_HORDE_CONTROL
@ DRAENEI_RUINS_HORDE_CONTROL_STATE
@ BLOOD_ELF_UNCONTROL
@ FEL_REAVER_ALLIANCE_CONTROL_STATE
@ FEL_REAVER_UNCONTROL
@ MAGE_TOWER_ALLIANCE_CONTROL
@ MAGE_TOWER_HORDE_CONTROL_STATE
@ FEL_REAVER_ALLIANCE_CONTROL
@ DRAENEI_RUINS_UNCONTROL
@ DRAENEI_RUINS_ALLIANCE_CONTROL
@ DRAENEI_RUINS_ALLIANCE_CONTROL_STATE
@ BLOOD_ELF_ALLIANCE_CONTROL_STATE
@ BLOOD_ELF_ALLIANCE_CONTROL
@ DRAENEI_RUINS_HORDE_CONTROL
@ MAGE_TOWER_HORDE_CONTROL
@ MAGE_TOWER_ALLIANCE_CONTROL_STATE
@ MAGE_TOWER_UNCONTROL
@ FEL_REAVER_HORDE_CONTROL_STATE
@ FEL_REAVER_HORDE_CONTROL
@ BLOOD_ELF_HORDE_CONTROL_STATE

Definition at line 234 of file BattlegroundEY.h.

◆ POINTS_TICK_TIME

constexpr Seconds POINTS_TICK_TIME = 2s
staticconstexpr

Definition at line 26 of file BattlegroundEY.h.