AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Battlefield.h File Reference
#include "Battleground.h"
#include "GameObject.h"
#include "ObjectAccessor.h"
#include "SharedDefines.h"
#include "ZoneScript.h"

Go to the source code of this file.

Classes

class  BfCapturePoint
 
class  BfGraveyard
 
class  Battlefield
 

Typedefs

typedef std::vector< BfGraveyard * > GraveyardVect
 
typedef std::map< ObjectGuid, time_t > PlayerTimerMap
 

Enumerations

enum  BattlefieldTypes {
  BATTLEFIELD_WG ,
  BATTLEFIELD_TB
}
 
enum  BattlefieldIDs { BATTLEFIELD_BATTLEID_WG = 1 }
 
enum  BattlefieldObjectiveStates {
  BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL = 0 ,
  BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE ,
  BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE ,
  BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE ,
  BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE ,
  BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE ,
  BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE
}
 
enum  BattlefieldSounds {
  BF_HORDE_WINS = 8454 ,
  BF_ALLIANCE_WINS = 8455 ,
  BF_START = 3439
}
 

Variables

constexpr auto BATTLEFIELD_OBJECTIVE_UPDATE_INTERVAL = 1000
 
const uint32 BattlefieldFactions [PVP_TEAMS_COUNT]
 

Typedef Documentation

◆ GraveyardVect

typedef std::vector<BfGraveyard*> GraveyardVect

◆ PlayerTimerMap

typedef std::map<ObjectGuid, time_t> PlayerTimerMap

Enumeration Type Documentation

◆ BattlefieldIDs

Enumerator
BATTLEFIELD_BATTLEID_WG 
34{
35 BATTLEFIELD_BATTLEID_WG = 1, // Wintergrasp battle
36};
@ BATTLEFIELD_BATTLEID_WG
Definition: Battlefield.h:35

◆ BattlefieldObjectiveStates

Enumerator
BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL 
BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE 
BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE 
BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE 
BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE 
BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE 
BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE 
39{
47};
@ BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE
Definition: Battlefield.h:44
@ BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE
Definition: Battlefield.h:43
@ BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE
Definition: Battlefield.h:42
@ BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE
Definition: Battlefield.h:45
@ BF_CAPTUREPOINT_OBJECTIVESTATE_ALLIANCE
Definition: Battlefield.h:41
@ BF_CAPTUREPOINT_OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE
Definition: Battlefield.h:46
@ BF_CAPTUREPOINT_OBJECTIVESTATE_NEUTRAL
Definition: Battlefield.h:40

◆ BattlefieldSounds

Enumerator
BF_HORDE_WINS 
BF_ALLIANCE_WINS 
BF_START 
50{
51 BF_HORDE_WINS = 8454,
52 BF_ALLIANCE_WINS = 8455,
53 BF_START = 3439
54};
@ BF_START
Definition: Battlefield.h:53
@ BF_ALLIANCE_WINS
Definition: Battlefield.h:52
@ BF_HORDE_WINS
Definition: Battlefield.h:51

◆ BattlefieldTypes

Enumerator
BATTLEFIELD_WG 
BATTLEFIELD_TB 
28{
29 BATTLEFIELD_WG, // Wintergrasp
30 BATTLEFIELD_TB, // Tol Barad (cataclysm)
31};
@ BATTLEFIELD_WG
Definition: Battlefield.h:29
@ BATTLEFIELD_TB
Definition: Battlefield.h:30

Variable Documentation

◆ BATTLEFIELD_OBJECTIVE_UPDATE_INTERVAL

constexpr auto BATTLEFIELD_OBJECTIVE_UPDATE_INTERVAL = 1000
constexpr

◆ BattlefieldFactions

const uint32 BattlefieldFactions[PVP_TEAMS_COUNT]
Initial value:
=
{
1732,
1735
}

Referenced by Battlefield::SpawnCreature().