TrinityCore
Loading...
Searching...
No Matches
battleground_eye_of_the_storm.cpp File Reference
#include "AreaTrigger.h"
#include "BattlegroundScript.h"
#include "Battleground.h"
#include "BattlegroundMgr.h"
#include "GameObject.h"
#include "GameTime.h"
#include "Map.h"
#include "ObjectAccessor.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "SpellAuras.h"
#include "Timer.h"
+ Include dependency graph for battleground_eye_of_the_storm.cpp:

Go to the source code of this file.

Classes

struct  BattlegroundEYPointIconsStruct
 
struct  BattlegroundEYLosingPointStruct
 
struct  BattlegroundEYCapturingPointStruct
 
class  BattlegroundEYControlZoneHandler
 
struct  battleground_eye_of_the_storm
 

Enumerations

enum  EyeOfTheStormWorldStates {
  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  EyeOfTheStormSounds {
  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  EyeOfTheStormSpells { 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  EyeOfTheStormObjectEntry {
  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  EyeOfTheStormPointsTrigger { AREATRIGGER_CAPTURE_FLAG = 33 }
 
enum  EyeOfTheStormPoints {
  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  EyeOFtheStormBroadcastTexts {
  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
}
 

Functions

void AddSC_battleground_eye_of_the_storm ()
 

Variables

constexpr uint32 BG_EY_NotEYWeekendHonorTicks = 260
 
constexpr uint32 BG_EY_EYWeekendHonorTicks = 160
 
const std::array< BattlegroundEYPointIconsStruct, EY_POINTS_MAXm_PointsIconStruct
 
const std::array< BattlegroundEYLosingPointStruct, EY_POINTS_MAXm_LosingPointTypes
 
const std::array< BattlegroundEYCapturingPointStruct, EY_POINTS_MAXm_CapturingPointTypes
 

Enumeration Type Documentation

◆ BG_EY_ExploitTeleportLocations

Enumerator
EY_EXPLOIT_TELEPORT_LOCATION_ALLIANCE 
EY_EXPLOIT_TELEPORT_LOCATION_HORDE 

Definition at line 139 of file battleground_eye_of_the_storm.cpp.

◆ 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 124 of file battleground_eye_of_the_storm.cpp.

◆ BG_EY_Score

Enumerator
BG_EY_WARNING_NEAR_VICTORY_SCORE 
BG_EY_MAX_TEAM_SCORE 

Definition at line 118 of file battleground_eye_of_the_storm.cpp.

◆ EYBattlegroundPointState

Enumerator
EY_POINT_NO_OWNER 
EY_POINT_STATE_UNCONTROLLED 
EY_POINT_UNDER_CONTROL 

Definition at line 132 of file battleground_eye_of_the_storm.cpp.

◆ EyeOFtheStormBroadcastTexts

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 145 of file battleground_eye_of_the_storm.cpp.

◆ EyeOfTheStormObjectEntry

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 88 of file battleground_eye_of_the_storm.cpp.

◆ EyeOfTheStormPoints

Enumerator
FEL_REAVER 
BLOOD_ELF 
DRAENEI_RUINS 
MAGE_TOWER 
EY_PLAYERS_OUT_OF_POINTS 
EY_POINTS_MAX 

Definition at line 104 of file battleground_eye_of_the_storm.cpp.

◆ EyeOfTheStormPointsTrigger

Enumerator
AREATRIGGER_CAPTURE_FLAG 

Definition at line 99 of file battleground_eye_of_the_storm.cpp.

◆ EyeOfTheStormSounds

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 68 of file battleground_eye_of_the_storm.cpp.

◆ EyeOfTheStormSpells

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 78 of file battleground_eye_of_the_storm.cpp.

◆ EyeOfTheStormWorldStates

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 31 of file battleground_eye_of_the_storm.cpp.

Function Documentation

◆ AddSC_battleground_eye_of_the_storm()

void AddSC_battleground_eye_of_the_storm ( )

Definition at line 675 of file battleground_eye_of_the_storm.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ BG_EY_EYWeekendHonorTicks

constexpr uint32 BG_EY_EYWeekendHonorTicks = 160
constexpr

Definition at line 116 of file battleground_eye_of_the_storm.cpp.

◆ BG_EY_NotEYWeekendHonorTicks

constexpr uint32 BG_EY_NotEYWeekendHonorTicks = 260
constexpr

Definition at line 115 of file battleground_eye_of_the_storm.cpp.

◆ m_CapturingPointTypes

const std::array<BattlegroundEYCapturingPointStruct, EY_POINTS_MAX> m_CapturingPointTypes
Initial value:
=
{
}
@ BG_EY_TEXT_ALLIANCE_TAKEN_MAGE_TOWER
@ BG_EY_TEXT_ALLIANCE_TAKEN_FEL_REAVER_RUINS
@ BG_EY_TEXT_HORDE_TAKEN_DRAENEI_RUINS
@ BG_EY_TEXT_ALLIANCE_TAKEN_BLOOD_ELF_TOWER
@ BG_EY_TEXT_ALLIANCE_TAKEN_DRAENEI_RUINS
@ BG_EY_TEXT_HORDE_TAKEN_FEL_REAVER_RUINS
@ BG_EY_TEXT_HORDE_TAKEN_BLOOD_ELF_TOWER

Definition at line 234 of file battleground_eye_of_the_storm.cpp.

◆ m_LosingPointTypes

const std::array<BattlegroundEYLosingPointStruct, EY_POINTS_MAX> m_LosingPointTypes
Initial value:
=
{
}
@ BG_EY_TEXT_HORDE_LOST_BLOOD_ELF_TOWER
@ BG_EY_TEXT_HORDE_LOST_FEL_REAVER_RUINS
@ BG_EY_TEXT_ALLIANCE_LOST_MAGE_TOWER
@ BG_EY_TEXT_HORDE_LOST_DRAENEI_RUINS
@ BG_EY_TEXT_ALLIANCE_LOST_BLOOD_ELF_TOWER
@ BG_EY_TEXT_ALLIANCE_LOST_FEL_REAVER_RUINS
@ BG_EY_TEXT_ALLIANCE_LOST_DRAENEI_RUINS

Definition at line 226 of file battleground_eye_of_the_storm.cpp.

◆ m_PointsIconStruct

const std::array<BattlegroundEYPointIconsStruct, EY_POINTS_MAX> m_PointsIconStruct
Initial value:
=
{
}
@ DRAENEI_RUINS_HORDE_CONTROL_STATE
@ FEL_REAVER_ALLIANCE_CONTROL_STATE
@ DRAENEI_RUINS_ALLIANCE_CONTROL_STATE
@ MAGE_TOWER_ALLIANCE_CONTROL_STATE

Definition at line 218 of file battleground_eye_of_the_storm.cpp.