Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
BattlegroundAB.h File Reference
#include "Battleground.h"
Include dependency graph for BattlegroundAB.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BattlegroundAB
struct  BattlegroundABScore
struct  BG_AB_BannerTimer

Macros

#define AB_EVENT_START_BATTLE   9158
#define BG_AB_ABBGWeekendHonorTicks   160
#define BG_AB_ABBGWeekendReputationTicks   120
#define BG_AB_NotABBGWeekendHonorTicks   260
#define BG_AB_NotABBGWeekendReputationTicks   160

Enumerations

enum  BG_AB_BattlegroundNodes {
  BG_AB_NODE_STABLES = 0 , BG_AB_NODE_BLACKSMITH = 1 , BG_AB_NODE_FARM = 2 , BG_AB_NODE_LUMBER_MILL = 3 ,
  BG_AB_NODE_GOLD_MINE = 4 , BG_AB_DYNAMIC_NODES_COUNT = 5 , BG_AB_SPIRIT_ALIANCE = 5 , BG_AB_SPIRIT_HORDE = 6 ,
  BG_AB_ALL_NODES_COUNT = 7
}
enum  BG_AB_NodeObjectId {
  BG_AB_OBJECTID_NODE_BANNER_0 = 180087 , BG_AB_OBJECTID_NODE_BANNER_1 = 180088 , BG_AB_OBJECTID_NODE_BANNER_2 = 180089 , BG_AB_OBJECTID_NODE_BANNER_3 = 180090 ,
  BG_AB_OBJECTID_NODE_BANNER_4 = 180091
}
enum  BG_AB_NodeStatus {
  BG_AB_NODE_TYPE_NEUTRAL = 0 , BG_AB_NODE_TYPE_CONTESTED = 1 , BG_AB_NODE_STATUS_ALLY_CONTESTED = 1 , BG_AB_NODE_STATUS_HORDE_CONTESTED = 2 ,
  BG_AB_NODE_TYPE_OCCUPIED = 3 , BG_AB_NODE_STATUS_ALLY_OCCUPIED = 3 , BG_AB_NODE_STATUS_HORDE_OCCUPIED = 4
}
enum  BG_AB_Objectives { AB_OBJECTIVE_ASSAULT_BASE = 122 , AB_OBJECTIVE_DEFEND_BASE = 123 }
enum  BG_AB_ObjectType {
  BG_AB_OBJECT_BANNER_NEUTRAL = 0 , BG_AB_OBJECT_BANNER_CONT_A = 1 , BG_AB_OBJECT_BANNER_CONT_H = 2 , BG_AB_OBJECT_BANNER_ALLY = 3 ,
  BG_AB_OBJECT_BANNER_HORDE = 4 , BG_AB_OBJECT_AURA_ALLY = 5 , BG_AB_OBJECT_AURA_HORDE = 6 , BG_AB_OBJECT_AURA_CONTESTED = 7 ,
  BG_AB_OBJECT_GATE_A = 40 , BG_AB_OBJECT_GATE_H = 41 , BG_AB_OBJECT_SPEEDBUFF_STABLES = 42 , BG_AB_OBJECT_REGENBUFF_STABLES = 43 ,
  BG_AB_OBJECT_BERSERKBUFF_STABLES = 44 , BG_AB_OBJECT_SPEEDBUFF_BLACKSMITH = 45 , BG_AB_OBJECT_REGENBUFF_BLACKSMITH = 46 , BG_AB_OBJECT_BERSERKBUFF_BLACKSMITH = 47 ,
  BG_AB_OBJECT_SPEEDBUFF_FARM = 48 , BG_AB_OBJECT_REGENBUFF_FARM = 49 , BG_AB_OBJECT_BERSERKBUFF_FARM = 50 , BG_AB_OBJECT_SPEEDBUFF_LUMBER_MILL = 51 ,
  BG_AB_OBJECT_REGENBUFF_LUMBER_MILL = 52 , BG_AB_OBJECT_BERSERKBUFF_LUMBER_MILL = 53 , BG_AB_OBJECT_SPEEDBUFF_GOLD_MINE = 54 , BG_AB_OBJECT_REGENBUFF_GOLD_MINE = 55 ,
  BG_AB_OBJECT_BERSERKBUFF_GOLD_MINE = 56 , BG_AB_OBJECT_MAX = 57
}
enum  BG_AB_ObjectTypes {
  BG_AB_OBJECTID_BANNER_A = 180058 , BG_AB_OBJECTID_BANNER_CONT_A = 180059 , BG_AB_OBJECTID_BANNER_H = 180060 , BG_AB_OBJECTID_BANNER_CONT_H = 180061 ,
  BG_AB_OBJECTID_AURA_A = 180100 , BG_AB_OBJECTID_AURA_H = 180101 , BG_AB_OBJECTID_AURA_C = 180102 , BG_AB_OBJECTID_GATE_A = 180255 ,
  BG_AB_OBJECTID_GATE_H = 180256
}
enum  BG_AB_Score { BG_AB_WARNING_NEAR_VICTORY_SCORE = 1400 , BG_AB_MAX_TEAM_SCORE = 1600 }
enum  BG_AB_Sounds {
  BG_AB_SOUND_NODE_CLAIMED = 8192 , BG_AB_SOUND_NODE_CAPTURED_ALLIANCE = 8173 , BG_AB_SOUND_NODE_CAPTURED_HORDE = 8213 , BG_AB_SOUND_NODE_ASSAULTED_ALLIANCE = 8212 ,
  BG_AB_SOUND_NODE_ASSAULTED_HORDE = 8174 , BG_AB_SOUND_NEAR_VICTORY = 8456
}
enum  BG_AB_Timers { BG_AB_FLAG_CAPTURING_TIME = 60000 }
enum  BG_AB_WorldStates {
  BG_AB_OP_OCCUPIED_BASES_HORDE = 1778 , BG_AB_OP_OCCUPIED_BASES_ALLY = 1779 , BG_AB_OP_RESOURCES_ALLY = 1776 , BG_AB_OP_RESOURCES_HORDE = 1777 ,
  BG_AB_OP_RESOURCES_MAX = 1780 , BG_AB_OP_RESOURCES_WARNING = 1955
}

Variables

const float BG_AB_BuffPositions [BG_AB_DYNAMIC_NODES_COUNT][4]
const float BG_AB_DoorPositions [2][8]
const uint32 BG_AB_GraveyardIds [BG_AB_ALL_NODES_COUNT] = { 895, 894, 893, 897, 896, 898, 899 }
const float BG_AB_NodePositions [BG_AB_DYNAMIC_NODES_COUNT][4]
const uint32 BG_AB_OP_NODEICONS [5] = { 1842, 1846, 1845, 1844, 1843 }
const uint32 BG_AB_OP_NODESTATES [5] = { 1767, 1782, 1772, 1792, 1787 }
const float BG_AB_SpiritGuidePos [BG_AB_ALL_NODES_COUNT][4]
const uint32 BG_AB_TickIntervals [6] = { 0, 12000, 9000, 6000, 3000, 1000 }
const uint32 BG_AB_TickPoints [6] = { 0, 10, 10, 10, 10, 30 }

Macro Definition Documentation

◆ AB_EVENT_START_BATTLE

#define AB_EVENT_START_BATTLE   9158

Definition at line 172 of file BattlegroundAB.h.

Referenced by BattlegroundAB::StartingEventOpenDoors().

◆ BG_AB_ABBGWeekendHonorTicks

#define BG_AB_ABBGWeekendHonorTicks   160

Definition at line 168 of file BattlegroundAB.h.

Referenced by BattlegroundAB::Reset().

◆ BG_AB_ABBGWeekendReputationTicks

#define BG_AB_ABBGWeekendReputationTicks   120

Definition at line 170 of file BattlegroundAB.h.

Referenced by BattlegroundAB::Reset().

◆ BG_AB_NotABBGWeekendHonorTicks

#define BG_AB_NotABBGWeekendHonorTicks   260

Definition at line 167 of file BattlegroundAB.h.

Referenced by BattlegroundAB::Reset().

◆ BG_AB_NotABBGWeekendReputationTicks

#define BG_AB_NotABBGWeekendReputationTicks   160

Definition at line 169 of file BattlegroundAB.h.

Referenced by BattlegroundAB::Reset().

Enumeration Type Documentation

◆ BG_AB_BattlegroundNodes

Enumerator
BG_AB_NODE_STABLES 
BG_AB_NODE_BLACKSMITH 
BG_AB_NODE_FARM 
BG_AB_NODE_LUMBER_MILL 
BG_AB_NODE_GOLD_MINE 
BG_AB_DYNAMIC_NODES_COUNT 
BG_AB_SPIRIT_ALIANCE 
BG_AB_SPIRIT_HORDE 
BG_AB_ALL_NODES_COUNT 

Definition at line 124 of file BattlegroundAB.h.

◆ BG_AB_NodeObjectId

Enumerator
BG_AB_OBJECTID_NODE_BANNER_0 
BG_AB_OBJECTID_NODE_BANNER_1 
BG_AB_OBJECTID_NODE_BANNER_2 
BG_AB_OBJECTID_NODE_BANNER_3 
BG_AB_OBJECTID_NODE_BANNER_4 

Definition at line 54 of file BattlegroundAB.h.

◆ BG_AB_NodeStatus

Enumerator
BG_AB_NODE_TYPE_NEUTRAL 
BG_AB_NODE_TYPE_CONTESTED 
BG_AB_NODE_STATUS_ALLY_CONTESTED 
BG_AB_NODE_STATUS_HORDE_CONTESTED 
BG_AB_NODE_TYPE_OCCUPIED 
BG_AB_NODE_STATUS_ALLY_OCCUPIED 
BG_AB_NODE_STATUS_HORDE_OCCUPIED 

Definition at line 140 of file BattlegroundAB.h.

◆ BG_AB_Objectives

Enumerator
AB_OBJECTIVE_ASSAULT_BASE 
AB_OBJECTIVE_DEFEND_BASE 

Definition at line 161 of file BattlegroundAB.h.

◆ BG_AB_ObjectType

Enumerator
BG_AB_OBJECT_BANNER_NEUTRAL 
BG_AB_OBJECT_BANNER_CONT_A 
BG_AB_OBJECT_BANNER_CONT_H 
BG_AB_OBJECT_BANNER_ALLY 
BG_AB_OBJECT_BANNER_HORDE 
BG_AB_OBJECT_AURA_ALLY 
BG_AB_OBJECT_AURA_HORDE 
BG_AB_OBJECT_AURA_CONTESTED 
BG_AB_OBJECT_GATE_A 
BG_AB_OBJECT_GATE_H 
BG_AB_OBJECT_SPEEDBUFF_STABLES 
BG_AB_OBJECT_REGENBUFF_STABLES 
BG_AB_OBJECT_BERSERKBUFF_STABLES 
BG_AB_OBJECT_SPEEDBUFF_BLACKSMITH 
BG_AB_OBJECT_REGENBUFF_BLACKSMITH 
BG_AB_OBJECT_BERSERKBUFF_BLACKSMITH 
BG_AB_OBJECT_SPEEDBUFF_FARM 
BG_AB_OBJECT_REGENBUFF_FARM 
BG_AB_OBJECT_BERSERKBUFF_FARM 
BG_AB_OBJECT_SPEEDBUFF_LUMBER_MILL 
BG_AB_OBJECT_REGENBUFF_LUMBER_MILL 
BG_AB_OBJECT_BERSERKBUFF_LUMBER_MILL 
BG_AB_OBJECT_SPEEDBUFF_GOLD_MINE 
BG_AB_OBJECT_REGENBUFF_GOLD_MINE 
BG_AB_OBJECT_BERSERKBUFF_GOLD_MINE 
BG_AB_OBJECT_MAX 

Definition at line 63 of file BattlegroundAB.h.

◆ BG_AB_ObjectTypes

Enumerator
BG_AB_OBJECTID_BANNER_A 
BG_AB_OBJECTID_BANNER_CONT_A 
BG_AB_OBJECTID_BANNER_H 
BG_AB_OBJECTID_BANNER_CONT_H 
BG_AB_OBJECTID_AURA_A 
BG_AB_OBJECTID_AURA_H 
BG_AB_OBJECTID_AURA_C 
BG_AB_OBJECTID_GATE_A 
BG_AB_OBJECTID_GATE_H 

Definition at line 97 of file BattlegroundAB.h.

◆ BG_AB_Score

Enumerator
BG_AB_WARNING_NEAR_VICTORY_SCORE 
BG_AB_MAX_TEAM_SCORE 

Definition at line 117 of file BattlegroundAB.h.

◆ BG_AB_Sounds

Enumerator
BG_AB_SOUND_NODE_CLAIMED 
BG_AB_SOUND_NODE_CAPTURED_ALLIANCE 
BG_AB_SOUND_NODE_CAPTURED_HORDE 
BG_AB_SOUND_NODE_ASSAULTED_ALLIANCE 
BG_AB_SOUND_NODE_ASSAULTED_HORDE 
BG_AB_SOUND_NEAR_VICTORY 

Definition at line 151 of file BattlegroundAB.h.

◆ BG_AB_Timers

Enumerator
BG_AB_FLAG_CAPTURING_TIME 

Definition at line 112 of file BattlegroundAB.h.

◆ BG_AB_WorldStates

Enumerator
BG_AB_OP_OCCUPIED_BASES_HORDE 
BG_AB_OP_OCCUPIED_BASES_ALLY 
BG_AB_OP_RESOURCES_ALLY 
BG_AB_OP_RESOURCES_HORDE 
BG_AB_OP_RESOURCES_MAX 
BG_AB_OP_RESOURCES_WARNING 

Definition at line 11 of file BattlegroundAB.h.

Variable Documentation

◆ BG_AB_BuffPositions

const float BG_AB_BuffPositions[BG_AB_DYNAMIC_NODES_COUNT][4]
Initial value:
=
{
{1185.71f, 1185.24f, -56.36f, 2.56f},
{990.75f, 1008.18f, -42.60f, 2.43f},
{817.66f, 843.34f, -56.54f, 3.01f},
{807.46f, 1189.16f, 11.92f, 5.44f},
{1146.62f, 816.94f, -98.49f, 6.14f}
}

Definition at line 199 of file BattlegroundAB.h.

Referenced by BattlegroundAB::SetupBattleground().

◆ BG_AB_DoorPositions

const float BG_AB_DoorPositions[2][8]
Initial value:
=
{
{1284.597f, 1281.167f, -15.97792f, 0.7068594f, 0.012957f, -0.060288f, 0.344959f, 0.93659f},
{708.0903f, 708.4479f, -17.8342f, -2.391099f, 0.050291f, 0.015127f, 0.929217f, -0.365784f}
}

Definition at line 185 of file BattlegroundAB.h.

Referenced by BattlegroundAB::SetupBattleground().

◆ BG_AB_GraveyardIds

const uint32 BG_AB_GraveyardIds[BG_AB_ALL_NODES_COUNT] = { 895, 894, 893, 897, 896, 898, 899 }

Definition at line 196 of file BattlegroundAB.h.

Referenced by BattlegroundAB::GetClosestGraveYard().

◆ BG_AB_NodePositions

const float BG_AB_NodePositions[BG_AB_DYNAMIC_NODES_COUNT][4]
Initial value:
=
{
{1166.785f, 1200.132f, -56.70859f, 0.9075713f},
{977.0156f, 1046.616f, -44.80923f, -2.600541f},
{806.1821f, 874.2723f, -55.99371f, -2.303835f},
{856.1419f, 1148.902f, 11.18469f, -2.303835f},
{1146.923f, 848.1782f, -110.917f, -0.7330382f}
}

Definition at line 175 of file BattlegroundAB.h.

Referenced by BattlegroundAB::_NodeOccupied(), and BattlegroundAB::SetupBattleground().

◆ BG_AB_OP_NODEICONS

const uint32 BG_AB_OP_NODEICONS[5] = { 1842, 1846, 1845, 1844, 1843 }

◆ BG_AB_OP_NODESTATES

const uint32 BG_AB_OP_NODESTATES[5] = { 1767, 1782, 1772, 1792, 1787 }

◆ BG_AB_SpiritGuidePos

const float BG_AB_SpiritGuidePos[BG_AB_ALL_NODES_COUNT][4]
Initial value:
=
{
{1200.03f, 1171.09f, -56.47f, 5.15f},
{1017.43f, 960.61f, -42.95f, 4.88f},
{833.00f, 793.00f, -57.25f, 5.27f},
{775.17f, 1206.40f, 15.79f, 1.90f},
{1207.48f, 787.00f, -83.36f, 5.51f},
{1354.05f, 1275.48f, -11.30f, 4.77f},
{714.61f, 646.15f, -10.87f, 4.34f}
}

Definition at line 209 of file BattlegroundAB.h.

Referenced by BattlegroundAB::_NodeOccupied().

◆ BG_AB_TickIntervals

const uint32 BG_AB_TickIntervals[6] = { 0, 12000, 9000, 6000, 3000, 1000 }

Definition at line 192 of file BattlegroundAB.h.

Referenced by BattlegroundAB::PostUpdateImpl().

◆ BG_AB_TickPoints

const uint32 BG_AB_TickPoints[6] = { 0, 10, 10, 10, 10, 30 }

Definition at line 193 of file BattlegroundAB.h.

Referenced by BattlegroundAB::PostUpdateImpl().