TrinityCore
Loading...
Searching...
No Matches
Battleground Class Reference

#include <Battleground.h>

+ Inheritance diagram for Battleground:

Public Types

typedef std::map< ObjectGuid, BattlegroundPlayerBattlegroundPlayerMap
 
typedef std::map< ObjectGuid, BattlegroundScore * > BattlegroundScoreMap
 

Public Member Functions

 Battleground ()
 
virtual ~Battleground ()
 
void Update (uint32 diff)
 
virtual bool SetupBattleground ()
 
virtual void Reset ()
 
virtual void StartingEventCloseDoors ()
 
virtual void StartingEventOpenDoors ()
 
virtual void ResetBGSubclass ()
 
virtual void DestroyGate (Player *, GameObject *)
 
virtual bool IsAllNodesControlledByTeam (uint32) const
 
void StartTimedAchievement (AchievementCriteriaTimedTypes type, uint32 entry)
 
virtual bool CheckAchievementCriteriaMeet (uint32, Player const *, Unit const *=nullptr, uint32=0)
 
std::string const & GetName () const
 
BattlegroundTypeId GetTypeID (bool GetRandom=false) const
 
BattlegroundBracketId GetBracketId () const
 
uint32 GetInstanceID () const
 
BattlegroundStatus GetStatus () const
 
uint32 GetClientInstanceID () const
 
uint32 GetStartTime () const
 
uint32 GetEndTime () const
 
uint32 GetLastResurrectTime () const
 
uint32 GetMaxPlayers () const
 
uint32 GetMinPlayers () const
 
uint32 GetMinLevel () const
 
uint32 GetMaxLevel () const
 
uint32 GetMaxPlayersPerTeam () const
 
uint32 GetMinPlayersPerTeam () const
 
int32 GetStartDelayTime () const
 
uint8 GetArenaType () const
 
PvPTeamId GetWinner () const
 
uint32 GetScriptId () const
 
uint32 GetBonusHonorFromKill (uint32 kills) const
 
bool IsRandom () const
 
void SetName (std::string const &name)
 
void SetTypeID (BattlegroundTypeId TypeID)
 
void SetRandomTypeID (BattlegroundTypeId TypeID)
 
void SetBracket (PvPDifficultyEntry const *bracketEntry)
 
void SetInstanceID (uint32 InstanceID)
 
void SetStatus (BattlegroundStatus Status)
 
void SetClientInstanceID (uint32 InstanceID)
 
void SetStartTime (uint32 Time)
 
void SetEndTime (uint32 Time)
 
void SetLastResurrectTime (uint32 Time)
 
void SetMaxPlayers (uint32 MaxPlayers)
 
void SetMinPlayers (uint32 MinPlayers)
 
void SetLevelRange (uint32 min, uint32 max)
 
void SetRated (bool state)
 
void SetArenaType (uint8 type)
 
void SetArenaorBGType (bool _isArena)
 
void SetWinner (PvPTeamId winnerTeamId)
 
void SetScriptId (uint32 scriptId)
 
void ModifyStartDelayTime (int diff)
 
void SetStartDelayTime (int Time)
 
void SetMaxPlayersPerTeam (uint32 MaxPlayers)
 
void SetMinPlayersPerTeam (uint32 MinPlayers)
 
void AddToBGFreeSlotQueue ()
 
void RemoveFromBGFreeSlotQueue ()
 
void RemoveFromBGFreeSlotQueueOnShutdown ()
 
void DecreaseInvitedCount (uint32 team)
 
void IncreaseInvitedCount (uint32 team)
 
void SetRandom (bool isRandom)
 
uint32 GetInvitedCount (uint32 team) const
 
bool HasFreeSlots () const
 
uint32 GetFreeSlotsForTeam (uint32 Team) const
 
bool isArena () const
 
bool isBattleground () const
 
bool isRated () const
 
BattlegroundPlayerMap const & GetPlayers () const
 
uint32 GetPlayersSize () const
 
uint32 GetPlayerScoresSize () const
 
uint32 GetReviveQueueSize () const
 
void AddPlayerToResurrectQueue (ObjectGuid npc_guid, ObjectGuid player_guid)
 
void RemovePlayerFromResurrectQueue (ObjectGuid player_guid)
 
void RelocateDeadPlayers (ObjectGuid guideGuid)
 Relocate all players in ReviveQueue to the closest graveyard.
 
void StartBattleground ()
 
GameObjectGetBGObject (uint32 type, bool logError=true)
 
CreatureGetBGCreature (uint32 type, bool logError=true)
 
void SetMapId (uint32 MapID)
 
uint32 GetMapId () const
 
void SetBgMap (BattlegroundMap *map)
 
BattlegroundMapGetBgMap () const
 
BattlegroundMapFindBgMap () const
 
void SetTeamStartPosition (TeamId teamId, Position const &pos)
 
Position const * GetTeamStartPosition (TeamId teamId) const
 
void SetStartMaxDist (float startMaxDist)
 
float GetStartMaxDist () const
 
virtual void FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &)
 
void SendPacketToTeam (uint32 TeamID, WorldPacket const *packet, Player *sender=nullptr, bool self=true) const
 
void SendPacketToAll (WorldPacket const *packet) const
 
void SendChatMessage (Creature *source, uint8 textId, WorldObject *target=nullptr)
 
void SendBroadcastText (uint32 id, ChatMsg msgType, WorldObject const *target=nullptr)
 
template<class Do >
void BroadcastWorker (Do &_do)
 
void PlaySoundToTeam (uint32 soundID, uint32 teamID)
 
void PlaySoundToAll (uint32 soundID)
 
void CastSpellOnTeam (uint32 SpellID, uint32 TeamID)
 
void RemoveAuraOnTeam (uint32 SpellID, uint32 TeamID)
 
void RewardHonorToTeam (uint32 Honor, uint32 TeamID)
 
void RewardReputationToTeam (uint32 faction_id, uint32 Reputation, uint32 TeamID)
 
void UpdateWorldState (uint32 variable, uint32 value)
 
virtual void EndBattleground (uint32 winner)
 
void BlockMovement (Player *player)
 
void SendWarningToAll (uint32 entry,...)
 
void SendMessageToAll (uint32 entry, ChatMsg type, Player const *source=nullptr)
 
void PSendMessageToAll (uint32 entry, ChatMsg type, Player const *source,...)
 
GroupGetBgRaid (uint32 TeamID) const
 
void SetBgRaid (uint32 TeamID, Group *bg_raid)
 
void BuildPvPLogDataPacket (WorldPackets::Battleground::PVPMatchStatistics &pvpLogData)
 
virtual bool UpdatePlayerScore (Player *player, uint32 type, uint32 value, bool doAddHonor=true)
 
uint32 GetPlayersCountByTeam (uint32 Team) const
 
uint32 GetAlivePlayersCountByTeam (uint32 Team) const
 
void UpdatePlayersCountByTeam (uint32 Team, bool remove)
 
virtual void CheckWinConditions ()
 
void SetArenaTeamIdForTeam (uint32 Team, uint32 ArenaTeamId)
 
uint32 GetArenaTeamIdForTeam (uint32 Team) const
 
uint32 GetArenaTeamIdByIndex (uint32 index) const
 
void SetArenaMatchmakerRating (uint32 Team, uint32 MMR)
 
uint32 GetArenaMatchmakerRating (uint32 Team) const
 
virtual void HandleAreaTrigger (Player *, uint32)
 
virtual void HandleKillPlayer (Player *player, Player *killer)
 
virtual void HandleKillUnit (Creature *, Player *)
 
virtual void EventPlayerDroppedFlag (Player *)
 
virtual void EventPlayerClickedOnFlag (Player *, GameObject *)
 
void EventPlayerLoggedIn (Player *player)
 
void EventPlayerLoggedOut (Player *player)
 
virtual void ProcessEvent (WorldObject *, uint32, WorldObject *=nullptr)
 
virtual void DoAction (uint32, ObjectGuid)
 
virtual void HandlePlayerResurrect (Player *)
 
virtual WorldSafeLocsEntry const * GetClosestGraveyard (Player *player)
 
virtual void AddPlayer (Player *player)
 
void AddOrSetPlayerToCorrectBgGroup (Player *player, uint32 team)
 
virtual void RemovePlayerAtLeave (ObjectGuid guid, bool Transport, bool SendPacket)
 
void HandleTriggerBuff (ObjectGuid go_guid)
 
void SetHoliday (bool is_holiday)
 
void SpawnBGObject (uint32 type, uint32 respawntime)
 
virtual bool AddObject (uint32 type, uint32 entry, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime=0, GOState goState=GO_STATE_READY)
 
bool AddObject (uint32 type, uint32 entry, Position const &pos, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime=0, GOState goState=GO_STATE_READY)
 
virtual CreatureAddCreature (uint32 entry, uint32 type, float x, float y, float z, float o, TeamId teamId=TEAM_NEUTRAL, uint32 respawntime=0, Transport *transport=nullptr)
 
CreatureAddCreature (uint32 entry, uint32 type, Position const &pos, TeamId teamId=TEAM_NEUTRAL, uint32 respawntime=0, Transport *transport=nullptr)
 
bool DelCreature (uint32 type)
 
bool DelObject (uint32 type)
 
bool RemoveObjectFromWorld (uint32 type)
 
virtual bool AddSpiritGuide (uint32 type, float x, float y, float z, float o, TeamId teamId=TEAM_NEUTRAL)
 
bool AddSpiritGuide (uint32 type, Position const &pos, TeamId teamId=TEAM_NEUTRAL)
 
int32 GetObjectType (ObjectGuid guid)
 
void DoorOpen (uint32 type)
 
void DoorClose (uint32 type)
 
virtual bool HandlePlayerUnderMap (Player *)
 
uint32 GetPlayerTeam (ObjectGuid guid) const
 
uint32 GetOtherTeam (uint32 teamId) const
 
bool IsPlayerInBattleground (ObjectGuid guid) const
 
bool ToBeDeleted () const
 
void SetDeleteThis ()
 
void RewardXPAtKill (Player *killer, Player *victim)
 
bool CanAwardArenaPoints () const
 
virtual ObjectGuid GetFlagPickerGUID (int32=-1) const
 
virtual void SetDroppedFlagGUID (ObjectGuid, int32=-1)
 
virtual void HandleQuestComplete (uint32, Player *)
 
virtual bool CanActivateGO (int32, uint32) const
 
virtual bool IsSpellAllowed (uint32, Player const *) const
 
uint32 GetTeamScore (uint32 TeamID) const
 
virtual uint32 GetPrematureWinner ()
 
uint8 GetUniqueBracketId () const
 
BattlegroundPlayer const * GetBattlegroundPlayerData (ObjectGuid const &playerGuid) const
 
Trinity::unique_weak_ptr< BattlegroundGetWeakPtr () const
 
void SetWeakPtr (Trinity::unique_weak_ptr< Battleground > weakRef)
 

Static Public Member Functions

static TeamId GetTeamIndexByTeamId (uint32 Team)
 

Public Attributes

GuidVector BgObjects
 
GuidVector BgCreatures
 

Protected Member Functions

void EndNow ()
 
void PlayerAddedToBGCheckIfBGIsRunning (Player *player)
 
Player_GetPlayer (ObjectGuid guid, bool offlineRemove, char const *context) const
 
Player_GetPlayer (BattlegroundPlayerMap::iterator itr, char const *context)
 
Player_GetPlayer (BattlegroundPlayerMap::const_iterator itr, char const *context) const
 
Player_GetPlayerForTeam (uint32 teamId, BattlegroundPlayerMap::const_iterator itr, char const *context) const
 
void _ProcessOfflineQueue ()
 
void _ProcessResurrect (uint32 diff)
 
void _ProcessProgress (uint32 diff)
 
void _ProcessLeave (uint32 diff)
 
void _ProcessJoin (uint32 diff)
 
void _CheckSafePositions (uint32 diff)
 
virtual void RemovePlayer (Player *, ObjectGuid, uint32)
 

Protected Attributes

BattlegroundScoreMap PlayerScores
 
BattlegroundPlayerMap m_Players
 
std::map< ObjectGuid, GuidVectorm_ReviveQueue
 
uint8 m_Events
 
BattlegroundStartTimeIntervals StartDelayTimes [BG_STARTING_EVENT_COUNT]
 
uint32 StartMessageIds [BG_STARTING_EVENT_COUNT]
 
bool m_BuffChange
 
bool m_IsRandom
 
BGHonorMode m_HonorMode
 
int32 m_TeamScores [PVP_TEAMS_COUNT]
 
ArenaTeamScore _arenaTeamScores [PVP_TEAMS_COUNT]
 

Private Member Functions

virtual bool PreUpdateImpl (uint32)
 Pre-update hook.
 
virtual void PostUpdateImpl (uint32)
 Post-update hook.
 

Private Attributes

BattlegroundTypeId m_TypeID
 
BattlegroundTypeId m_RandomTypeID
 
uint32 m_InstanceID
 
BattlegroundStatus m_Status
 
uint32 m_ClientInstanceID
 
uint32 m_StartTime
 
uint32 m_ResetStatTimer
 
uint32 m_ValidStartPositionTimer
 
int32 m_EndTime
 
uint32 m_LastResurrectTime
 
BattlegroundBracketId m_BracketId
 
uint8 m_ArenaType
 
bool m_InBGFreeSlotQueue
 
bool m_SetDeleteThis
 
bool m_IsArena
 
PvPTeamId _winnerTeamId
 
int32 m_StartDelayTime
 
bool m_IsRated
 
bool m_PrematureCountDown
 
uint32 m_PrematureCountDownTimer
 
std::string m_Name
 
GuidVector m_ResurrectQueue
 
std::deque< ObjectGuidm_OfflineQueue
 
uint32 m_InvitedAlliance
 
uint32 m_InvitedHorde
 
Groupm_BgRaids [PVP_TEAMS_COUNT]
 
uint32 m_PlayersCount [PVP_TEAMS_COUNT]
 
uint32 m_ArenaTeamIds [PVP_TEAMS_COUNT]
 
uint32 m_ArenaTeamMMR [PVP_TEAMS_COUNT]
 
uint32 m_LevelMin
 
uint32 m_LevelMax
 
uint32 m_MaxPlayersPerTeam
 
uint32 m_MaxPlayers
 
uint32 m_MinPlayersPerTeam
 
uint32 m_MinPlayers
 
uint32 m_MapId
 
BattlegroundMapm_Map
 
Position StartPosition [PVP_TEAMS_COUNT]
 
float m_StartMaxDist
 
uint32 ScriptId
 
Trinity::unique_weak_ptr< Battlegroundm_weakRef
 

Detailed Description

Definition at line 248 of file Battleground.h.

Member Typedef Documentation

◆ BattlegroundPlayerMap

◆ BattlegroundScoreMap

Definition at line 346 of file Battleground.h.

Constructor & Destructor Documentation

◆ Battleground()

Battleground::Battleground ( )

Definition at line 71 of file Battleground.cpp.

◆ ~Battleground()

Battleground::~Battleground ( )
virtual

Definition at line 140 of file Battleground.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _CheckSafePositions()

void Battleground::_CheckSafePositions ( uint32  diff)
inlineprotected

Definition at line 238 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetPlayer() [1/3]

Player * Battleground::_GetPlayer ( BattlegroundPlayerMap::const_iterator  itr,
char const *  context 
) const
inlineprotected

Definition at line 524 of file Battleground.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetPlayer() [2/3]

Player * Battleground::_GetPlayer ( BattlegroundPlayerMap::iterator  itr,
char const *  context 
)
inlineprotected

Definition at line 523 of file Battleground.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetPlayer() [3/3]

Player * Battleground::_GetPlayer ( ObjectGuid  guid,
bool  offlineRemove,
char const *  context 
) const
protected

Definition at line 537 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetPlayerForTeam()

Player * Battleground::_GetPlayerForTeam ( uint32  teamId,
BattlegroundPlayerMap::const_iterator  itr,
char const *  context 
) const
protected

Definition at line 551 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProcessJoin()

void Battleground::_ProcessJoin ( uint32  diff)
inlineprotected
Todo:
add arena sound PlaySoundToAll(SOUND_ARENA_START);

Definition at line 401 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProcessLeave()

void Battleground::_ProcessLeave ( uint32  diff)
inlineprotected

Definition at line 515 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProcessOfflineQueue()

void Battleground::_ProcessOfflineQueue ( )
inlineprotected

Definition at line 268 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProcessProgress()

void Battleground::_ProcessProgress ( uint32  diff)
inlineprotected

Definition at line 365 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProcessResurrect()

void Battleground::_ProcessResurrect ( uint32  diff)
inlineprotected

Definition at line 295 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddCreature() [1/2]

Creature * Battleground::AddCreature ( uint32  entry,
uint32  type,
float  x,
float  y,
float  z,
float  o,
TeamId  teamId = TEAM_NEUTRAL,
uint32  respawntime = 0,
Transport transport = nullptr 
)
virtual

Definition at line 1462 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddCreature() [2/2]

Creature * Battleground::AddCreature ( uint32  entry,
uint32  type,
Position const &  pos,
TeamId  teamId = TEAM_NEUTRAL,
uint32  respawntime = 0,
Transport transport = nullptr 
)

Definition at line 1517 of file Battleground.cpp.

+ Here is the call graph for this function:

◆ AddObject() [1/2]

bool Battleground::AddObject ( uint32  type,
uint32  entry,
float  x,
float  y,
float  z,
float  o,
float  rotation0,
float  rotation1,
float  rotation2,
float  rotation3,
uint32  respawnTime = 0,
GOState  goState = GO_STATE_READY 
)
virtual

Definition at line 1308 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddObject() [2/2]

bool Battleground::AddObject ( uint32  type,
uint32  entry,
Position const &  pos,
float  rotation0,
float  rotation1,
float  rotation2,
float  rotation3,
uint32  respawnTime = 0,
GOState  goState = GO_STATE_READY 
)

Definition at line 1370 of file Battleground.cpp.

+ Here is the call graph for this function:

◆ AddOrSetPlayerToCorrectBgGroup()

void Battleground::AddOrSetPlayerToCorrectBgGroup ( Player player,
uint32  team 
)

Definition at line 1050 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddPlayer()

void Battleground::AddPlayer ( Player player)
virtual

Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundIC, BattlegroundSA, and BattlegroundWS.

Definition at line 994 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddPlayerToResurrectQueue()

void Battleground::AddPlayerToResurrectQueue ( ObjectGuid  npc_guid,
ObjectGuid  player_guid 
)

Definition at line 1257 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddSpiritGuide() [1/2]

bool Battleground::AddSpiritGuide ( uint32  type,
float  x,
float  y,
float  z,
float  o,
TeamId  teamId = TEAM_NEUTRAL 
)
virtual
Todo:
Fix display here

Definition at line 1574 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddSpiritGuide() [2/2]

bool Battleground::AddSpiritGuide ( uint32  type,
Position const &  pos,
TeamId  teamId = TEAM_NEUTRAL 
)

Definition at line 1597 of file Battleground.cpp.

+ Here is the call graph for this function:

◆ AddToBGFreeSlotQueue()

void Battleground::AddToBGFreeSlotQueue ( )

Definition at line 1123 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BlockMovement()

void Battleground::BlockMovement ( Player player)

Definition at line 828 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BroadcastWorker()

template<class Do >
void Battleground::BroadcastWorker ( Do &  _do)

Definition at line 64 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildPvPLogDataPacket()

void Battleground::BuildPvPLogDataPacket ( WorldPackets::Battleground::PVPMatchStatistics pvpLogData)

Definition at line 1214 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanActivateGO()

virtual bool Battleground::CanActivateGO ( int32  ,
uint32   
) const
inlinevirtual

Reimplemented in BattlegroundAV.

Definition at line 496 of file Battleground.h.

◆ CanAwardArenaPoints()

bool Battleground::CanAwardArenaPoints ( ) const
inline

Definition at line 491 of file Battleground.h.

+ Here is the caller graph for this function:

◆ CastSpellOnTeam()

void Battleground::CastSpellOnTeam ( uint32  SpellID,
uint32  TeamID 
)

Definition at line 628 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CheckAchievementCriteriaMeet()

bool Battleground::CheckAchievementCriteriaMeet ( uint32  criteriaId,
Player const *  ,
Unit const *  = nullptr,
uint32  = 0 
)
virtual

Reimplemented in BattlegroundAV, BattlegroundWS, BattlegroundSA, and BattlegroundAB.

Definition at line 1834 of file Battleground.cpp.

+ Here is the caller graph for this function:

◆ CheckWinConditions()

virtual void Battleground::CheckWinConditions ( )
inlinevirtual

Reimplemented in Arena.

Definition at line 421 of file Battleground.h.

+ Here is the caller graph for this function:

◆ DecreaseInvitedCount()

void Battleground::DecreaseInvitedCount ( uint32  team)
inline

Definition at line 330 of file Battleground.h.

+ Here is the caller graph for this function:

◆ DelCreature()

bool Battleground::DelCreature ( uint32  type)

Definition at line 1522 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DelObject()

bool Battleground::DelObject ( uint32  type)

Definition at line 1540 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DestroyGate()

virtual void Battleground::DestroyGate ( Player ,
GameObject  
)
inlinevirtual

Reimplemented in BattlegroundIC, and BattlegroundSA.

Definition at line 265 of file Battleground.h.

◆ DoAction()

virtual void Battleground::DoAction ( uint32  ,
ObjectGuid   
)
inlinevirtual

Definition at line 445 of file Battleground.h.

◆ DoorClose()

void Battleground::DoorClose ( uint32  type)

Definition at line 1377 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DoorOpen()

void Battleground::DoorOpen ( uint32  type)

Definition at line 1393 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndBattleground()

void Battleground::EndBattleground ( uint32  winner)
virtual

Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundSA, and BattlegroundWS.

Definition at line 676 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndNow()

void Battleground::EndNow ( )
protected

Definition at line 1627 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EventPlayerClickedOnFlag()

virtual void Battleground::EventPlayerClickedOnFlag ( Player ,
GameObject  
)
inlinevirtual

Reimplemented in BattlegroundWS, BattlegroundIC, BattlegroundSA, BattlegroundAB, BattlegroundAV, and BattlegroundEY.

Definition at line 439 of file Battleground.h.

+ Here is the caller graph for this function:

◆ EventPlayerDroppedFlag()

virtual void Battleground::EventPlayerDroppedFlag ( Player )
inlinevirtual

Reimplemented in BattlegroundWS, and BattlegroundEY.

Definition at line 438 of file Battleground.h.

◆ EventPlayerLoggedIn()

void Battleground::EventPlayerLoggedIn ( Player player)

Definition at line 1082 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EventPlayerLoggedOut()

void Battleground::EventPlayerLoggedOut ( Player player)

Definition at line 1101 of file Battleground.cpp.

+ Here is the call graph for this function:

◆ FillInitialWorldStates()

virtual void Battleground::FillInitialWorldStates ( WorldPackets::WorldState::InitWorldStates )
inlinevirtual

Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.

Definition at line 379 of file Battleground.h.

+ Here is the caller graph for this function:

◆ FindBgMap()

BattlegroundMap * Battleground::FindBgMap ( ) const
inline

Definition at line 369 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetAlivePlayersCountByTeam()

uint32 Battleground::GetAlivePlayersCountByTeam ( uint32  Team) const

Definition at line 1755 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetArenaMatchmakerRating()

uint32 Battleground::GetArenaMatchmakerRating ( uint32  Team) const
inline

Definition at line 428 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetArenaTeamIdByIndex()

uint32 Battleground::GetArenaTeamIdByIndex ( uint32  index) const
inline

Definition at line 426 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetArenaTeamIdForTeam()

uint32 Battleground::GetArenaTeamIdForTeam ( uint32  Team) const
inline

Definition at line 425 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetArenaType()

uint8 Battleground::GetArenaType ( ) const
inline

Definition at line 293 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetBattlegroundPlayerData()

BattlegroundPlayer const * Battleground::GetBattlegroundPlayerData ( ObjectGuid const &  playerGuid) const
inline

Definition at line 505 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetBGCreature()

Creature * Battleground::GetBGCreature ( uint32  type,
bool  logError = true 
)

Definition at line 1420 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBgMap()

BattlegroundMap * Battleground::GetBgMap ( ) const
inline

Definition at line 368 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetBGObject()

GameObject * Battleground::GetBGObject ( uint32  type,
bool  logError = true 
)

Definition at line 1405 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBgRaid()

Group * Battleground::GetBgRaid ( uint32  TeamID) const
inline

Definition at line 404 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetBonusHonorFromKill()

uint32 Battleground::GetBonusHonorFromKill ( uint32  kills) const

Definition at line 821 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBracketId()

BattlegroundBracketId Battleground::GetBracketId ( ) const
inline

Definition at line 276 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetClientInstanceID()

uint32 Battleground::GetClientInstanceID ( ) const
inline

Definition at line 279 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetClosestGraveyard()

WorldSafeLocsEntry const * Battleground::GetClosestGraveyard ( Player player)
virtual

Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundIC, BattlegroundSA, and BattlegroundWS.

Definition at line 1795 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetEndTime()

uint32 Battleground::GetEndTime ( ) const
inline

Definition at line 281 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetFlagPickerGUID()

virtual ObjectGuid Battleground::GetFlagPickerGUID ( int32  = -1) const
inlinevirtual

Reimplemented in BattlegroundWS, and BattlegroundEY.

Definition at line 493 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetFreeSlotsForTeam()

uint32 Battleground::GetFreeSlotsForTeam ( uint32  Team) const

Definition at line 1144 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetInstanceID()

uint32 Battleground::GetInstanceID ( ) const
inline

Definition at line 277 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetInvitedCount()

uint32 Battleground::GetInvitedCount ( uint32  team) const
inline

Definition at line 334 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetLastResurrectTime()

uint32 Battleground::GetLastResurrectTime ( ) const
inline

Definition at line 282 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetMapId()

uint32 Battleground::GetMapId ( ) const
inline

Definition at line 364 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetMaxLevel()

uint32 Battleground::GetMaxLevel ( ) const
inline

Definition at line 287 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetMaxPlayers()

uint32 Battleground::GetMaxPlayers ( ) const
inline

Definition at line 283 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetMaxPlayersPerTeam()

uint32 Battleground::GetMaxPlayersPerTeam ( ) const
inline

Definition at line 289 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetMinLevel()

uint32 Battleground::GetMinLevel ( ) const
inline

Definition at line 286 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetMinPlayers()

uint32 Battleground::GetMinPlayers ( ) const
inline

Definition at line 284 of file Battleground.h.

◆ GetMinPlayersPerTeam()

uint32 Battleground::GetMinPlayersPerTeam ( ) const
inline

Definition at line 290 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetName()

std::string const & Battleground::GetName ( ) const
inline

Definition at line 274 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetObjectType()

int32 Battleground::GetObjectType ( ObjectGuid  guid)

Definition at line 1775 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetOtherTeam()

uint32 Battleground::GetOtherTeam ( uint32  teamId) const

Definition at line 1724 of file Battleground.cpp.

+ Here is the caller graph for this function:

◆ GetPlayers()

BattlegroundPlayerMap const & Battleground::GetPlayers ( ) const
inline

Definition at line 343 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetPlayerScoresSize()

uint32 Battleground::GetPlayerScoresSize ( ) const
inline

Definition at line 347 of file Battleground.h.

◆ GetPlayersCountByTeam()

uint32 Battleground::GetPlayersCountByTeam ( uint32  Team) const
inline

Definition at line 411 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetPlayersSize()

uint32 Battleground::GetPlayersSize ( ) const
inline

Definition at line 344 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetPlayerTeam()

uint32 Battleground::GetPlayerTeam ( ObjectGuid  guid) const

Definition at line 1716 of file Battleground.cpp.

+ Here is the caller graph for this function:

◆ GetPrematureWinner()

uint32 Battleground::GetPrematureWinner ( )
virtual

Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundEY, and BattlegroundWS.

Definition at line 354 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetReviveQueueSize()

uint32 Battleground::GetReviveQueueSize ( ) const
inline

Definition at line 349 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetScriptId()

uint32 Battleground::GetScriptId ( ) const
inline

Definition at line 295 of file Battleground.h.

◆ GetStartDelayTime()

int32 Battleground::GetStartDelayTime ( ) const
inline

Definition at line 292 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetStartMaxDist()

float Battleground::GetStartMaxDist ( ) const
inline

Definition at line 375 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetStartTime()

uint32 Battleground::GetStartTime ( ) const
inline

Definition at line 280 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetStatus()

BattlegroundStatus Battleground::GetStatus ( ) const
inline

Definition at line 278 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetTeamIndexByTeamId()

static TeamId Battleground::GetTeamIndexByTeamId ( uint32  Team)
inlinestatic

Definition at line 410 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetTeamScore()

uint32 Battleground::GetTeamScore ( uint32  TeamID) const

Definition at line 1819 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTeamStartPosition()

Position const * Battleground::GetTeamStartPosition ( TeamId  teamId) const

Definition at line 571 of file Battleground.cpp.

+ Here is the caller graph for this function:

◆ GetTypeID()

BattlegroundTypeId Battleground::GetTypeID ( bool  GetRandom = false) const
inline

Definition at line 275 of file Battleground.h.

+ Here is the caller graph for this function:

◆ GetUniqueBracketId()

uint8 Battleground::GetUniqueBracketId ( ) const

Definition at line 1840 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetWeakPtr()

Trinity::unique_weak_ptr< Battleground > Battleground::GetWeakPtr ( ) const
inline

Definition at line 514 of file Battleground.h.

◆ GetWinner()

PvPTeamId Battleground::GetWinner ( ) const
inline

Definition at line 294 of file Battleground.h.

+ Here is the caller graph for this function:

◆ HandleAreaTrigger()

void Battleground::HandleAreaTrigger ( Player player,
uint32  trigger 
)
virtual

Reimplemented in BattlegroundAV, BattlegroundIC, BattlegroundWS, BattlegroundAB, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundNA, BattlegroundRL, BattlegroundRV, and BattlegroundSA.

Definition at line 1828 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleKillPlayer()

void Battleground::HandleKillPlayer ( Player player,
Player killer 
)
virtual

Reimplemented in Arena, BattlegroundAV, BattlegroundEY, BattlegroundIC, and BattlegroundWS.

Definition at line 1679 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleKillUnit()

virtual void Battleground::HandleKillUnit ( Creature ,
Player  
)
inlinevirtual

Reimplemented in BattlegroundSA, BattlegroundAV, and BattlegroundIC.

Definition at line 435 of file Battleground.h.

◆ HandlePlayerResurrect()

virtual void Battleground::HandlePlayerResurrect ( Player )
inlinevirtual

Reimplemented in BattlegroundIC.

Definition at line 447 of file Battleground.h.

◆ HandlePlayerUnderMap()

virtual bool Battleground::HandlePlayerUnderMap ( Player )
inlinevirtual

Definition at line 480 of file Battleground.h.

+ Here is the caller graph for this function:

◆ HandleQuestComplete()

virtual void Battleground::HandleQuestComplete ( uint32  ,
Player  
)
inlinevirtual

Reimplemented in BattlegroundAV.

Definition at line 495 of file Battleground.h.

◆ HandleTriggerBuff()

void Battleground::HandleTriggerBuff ( ObjectGuid  go_guid)

Definition at line 1637 of file Battleground.cpp.

+ Here is the call graph for this function:

◆ HasFreeSlots()

bool Battleground::HasFreeSlots ( ) const

Definition at line 1209 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IncreaseInvitedCount()

void Battleground::IncreaseInvitedCount ( uint32  team)
inline

Definition at line 331 of file Battleground.h.

+ Here is the caller graph for this function:

◆ IsAllNodesControlledByTeam()

virtual bool Battleground::IsAllNodesControlledByTeam ( uint32  ) const
inlinevirtual

Reimplemented in BattlegroundAB, BattlegroundEY, and BattlegroundIC.

Definition at line 268 of file Battleground.h.

◆ isArena()

bool Battleground::isArena ( ) const
inline

Definition at line 338 of file Battleground.h.

+ Here is the caller graph for this function:

◆ isBattleground()

bool Battleground::isBattleground ( ) const
inline

Definition at line 339 of file Battleground.h.

+ Here is the caller graph for this function:

◆ IsPlayerInBattleground()

bool Battleground::IsPlayerInBattleground ( ObjectGuid  guid) const

Definition at line 1729 of file Battleground.cpp.

+ Here is the caller graph for this function:

◆ IsRandom()

bool Battleground::IsRandom ( ) const
inline

Definition at line 297 of file Battleground.h.

+ Here is the caller graph for this function:

◆ isRated()

bool Battleground::isRated ( ) const
inline

Definition at line 340 of file Battleground.h.

+ Here is the caller graph for this function:

◆ IsSpellAllowed()

virtual bool Battleground::IsSpellAllowed ( uint32  ,
Player const *   
) const
inlinevirtual

Reimplemented in BattlegroundIC, and BattlegroundSA.

Definition at line 497 of file Battleground.h.

◆ ModifyStartDelayTime()

void Battleground::ModifyStartDelayTime ( int  diff)
inline

Definition at line 320 of file Battleground.h.

+ Here is the caller graph for this function:

◆ PlayerAddedToBGCheckIfBGIsRunning()

void Battleground::PlayerAddedToBGCheckIfBGIsRunning ( Player player)
protected

Definition at line 1737 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PlaySoundToAll()

void Battleground::PlaySoundToAll ( uint32  soundID)

Definition at line 614 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PlaySoundToTeam()

void Battleground::PlaySoundToTeam ( uint32  soundID,
uint32  teamID 
)

Definition at line 619 of file Battleground.cpp.

+ Here is the call graph for this function:

◆ PostUpdateImpl()

virtual void Battleground::PostUpdateImpl ( uint32  )
inlineprivatevirtual

Post-update hook.

Will be called after battleground update has passed. May be used to implement custom update effects in subclasses.

Parameters
diffa time difference between two worldserver update loops in milliseconds.
See also
Update(), PreUpdateImpl().

Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.

Definition at line 610 of file Battleground.h.

+ Here is the caller graph for this function:

◆ PreUpdateImpl()

virtual bool Battleground::PreUpdateImpl ( uint32  )
inlineprivatevirtual

Pre-update hook.

Will be called before battleground update is started. Depending on the result of this call actual update body may be skipped.

Parameters
diffa time difference between two worldserver update loops in milliseconds.
Returns
true if update must be performed, false otherwise.
See also
Update(), PostUpdateImpl().

Definition at line 597 of file Battleground.h.

+ Here is the caller graph for this function:

◆ ProcessEvent()

virtual void Battleground::ProcessEvent ( WorldObject ,
uint32  ,
WorldObject = nullptr 
)
inlinevirtual

Reimplemented in BattlegroundSA.

Definition at line 442 of file Battleground.h.

◆ PSendMessageToAll()

void Battleground::PSendMessageToAll ( uint32  entry,
ChatMsg  type,
Player const *  source,
  ... 
)

Definition at line 1612 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RelocateDeadPlayers()

void Battleground::RelocateDeadPlayers ( ObjectGuid  guideGuid)

Relocate all players in ReviveQueue to the closest graveyard.

Definition at line 1285 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveAuraOnTeam()

void Battleground::RemoveAuraOnTeam ( uint32  SpellID,
uint32  TeamID 
)

Definition at line 635 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveFromBGFreeSlotQueue()

void Battleground::RemoveFromBGFreeSlotQueue ( )

Definition at line 1133 of file Battleground.cpp.

+ Here is the caller graph for this function:

◆ RemoveFromBGFreeSlotQueueOnShutdown()

void Battleground::RemoveFromBGFreeSlotQueueOnShutdown ( )
inline

Definition at line 328 of file Battleground.h.

◆ RemoveObjectFromWorld()

bool Battleground::RemoveObjectFromWorld ( uint32  type)

Definition at line 1558 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemovePlayer()

virtual void Battleground::RemovePlayer ( Player ,
ObjectGuid  ,
uint32   
)
inlineprotectedvirtual

Reimplemented in Arena, BattlegroundAB, BattlegroundAV, BattlegroundEY, BattlegroundIC, BattlegroundSA, and BattlegroundWS.

Definition at line 537 of file Battleground.h.

+ Here is the caller graph for this function:

◆ RemovePlayerAtLeave()

void Battleground::RemovePlayerAtLeave ( ObjectGuid  guid,
bool  Transport,
bool  SendPacket 
)
virtual

Reimplemented in Arena.

Definition at line 834 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemovePlayerFromResurrectQueue()

void Battleground::RemovePlayerFromResurrectQueue ( ObjectGuid  player_guid)

Definition at line 1268 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Reset()

void Battleground::Reset ( )
virtual

Reimplemented in BattlegroundAB, BattlegroundEY, BattlegroundSA, and BattlegroundWS.

Definition at line 949 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ResetBGSubclass()

virtual void Battleground::ResetBGSubclass ( )
inlinevirtual

Reimplemented in BattlegroundAV.

Definition at line 263 of file Battleground.h.

+ Here is the caller graph for this function:

◆ RewardHonorToTeam()

void Battleground::RewardHonorToTeam ( uint32  Honor,
uint32  TeamID 
)

Definition at line 642 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RewardReputationToTeam()

void Battleground::RewardReputationToTeam ( uint32  faction_id,
uint32  Reputation,
uint32  TeamID 
)

Definition at line 649 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RewardXPAtKill()

void Battleground::RewardXPAtKill ( Player killer,
Player victim 
)

Definition at line 1813 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendBroadcastText()

void Battleground::SendBroadcastText ( uint32  id,
ChatMsg  msgType,
WorldObject const *  target = nullptr 
)

Definition at line 601 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendChatMessage()

void Battleground::SendChatMessage ( Creature source,
uint8  textId,
WorldObject target = nullptr 
)

Definition at line 596 of file Battleground.cpp.

+ Here is the caller graph for this function:

◆ SendMessageToAll()

void Battleground::SendMessageToAll ( uint32  entry,
ChatMsg  type,
Player const *  source = nullptr 
)

Definition at line 1602 of file Battleground.cpp.

+ Here is the call graph for this function:

◆ SendPacketToAll()

void Battleground::SendPacketToAll ( WorldPacket const *  packet) const

Definition at line 577 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPacketToTeam()

void Battleground::SendPacketToTeam ( uint32  TeamID,
WorldPacket const *  packet,
Player sender = nullptr,
bool  self = true 
) const

Definition at line 584 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendWarningToAll()

void Battleground::SendWarningToAll ( uint32  entry,
  ... 
)

◆ SetArenaMatchmakerRating()

void Battleground::SetArenaMatchmakerRating ( uint32  Team,
uint32  MMR 
)
inline

Definition at line 427 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetArenaorBGType()

void Battleground::SetArenaorBGType ( bool  _isArena)
inline

Definition at line 316 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetArenaTeamIdForTeam()

void Battleground::SetArenaTeamIdForTeam ( uint32  Team,
uint32  ArenaTeamId 
)
inline

Definition at line 424 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetArenaType()

void Battleground::SetArenaType ( uint8  type)
inline

Definition at line 315 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetBgMap()

void Battleground::SetBgMap ( BattlegroundMap map)
inline

Definition at line 367 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetBgRaid()

void Battleground::SetBgRaid ( uint32  TeamID,
Group bg_raid 
)

Definition at line 1785 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBracket()

void Battleground::SetBracket ( PvPDifficultyEntry const *  bracketEntry)

Definition at line 1807 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetClientInstanceID()

void Battleground::SetClientInstanceID ( uint32  InstanceID)
inline

Definition at line 307 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetDeleteThis()

void Battleground::SetDeleteThis ( )
inline

Definition at line 488 of file Battleground.h.

◆ SetDroppedFlagGUID()

virtual void Battleground::SetDroppedFlagGUID ( ObjectGuid  ,
int32  = -1 
)
inlinevirtual

Reimplemented in BattlegroundWS, and BattlegroundEY.

Definition at line 494 of file Battleground.h.

◆ SetEndTime()

void Battleground::SetEndTime ( uint32  Time)
inline

Definition at line 309 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetHoliday()

void Battleground::SetHoliday ( bool  is_holiday)

Definition at line 1770 of file Battleground.cpp.

◆ SetInstanceID()

void Battleground::SetInstanceID ( uint32  InstanceID)
inline

Definition at line 305 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetLastResurrectTime()

void Battleground::SetLastResurrectTime ( uint32  Time)
inline

Definition at line 310 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetLevelRange()

void Battleground::SetLevelRange ( uint32  min,
uint32  max 
)
inline

Definition at line 313 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetMapId()

void Battleground::SetMapId ( uint32  MapID)
inline

Definition at line 363 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetMaxPlayers()

void Battleground::SetMaxPlayers ( uint32  MaxPlayers)
inline

Definition at line 311 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetMaxPlayersPerTeam()

void Battleground::SetMaxPlayersPerTeam ( uint32  MaxPlayers)
inline

Definition at line 323 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetMinPlayers()

void Battleground::SetMinPlayers ( uint32  MinPlayers)
inline

Definition at line 312 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetMinPlayersPerTeam()

void Battleground::SetMinPlayersPerTeam ( uint32  MinPlayers)
inline

Definition at line 324 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetName()

void Battleground::SetName ( std::string const &  name)
inline

Definition at line 300 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetRandom()

void Battleground::SetRandom ( bool  isRandom)
inline

Definition at line 333 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetRandomTypeID()

void Battleground::SetRandomTypeID ( BattlegroundTypeId  TypeID)
inline

Definition at line 302 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetRated()

void Battleground::SetRated ( bool  state)
inline

Definition at line 314 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetScriptId()

void Battleground::SetScriptId ( uint32  scriptId)
inline

Definition at line 318 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetStartDelayTime()

void Battleground::SetStartDelayTime ( int  Time)
inline

Definition at line 321 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetStartMaxDist()

void Battleground::SetStartMaxDist ( float  startMaxDist)
inline

Definition at line 374 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetStartTime()

void Battleground::SetStartTime ( uint32  Time)
inline

Definition at line 308 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetStatus()

void Battleground::SetStatus ( BattlegroundStatus  Status)
inline

Definition at line 306 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetTeamStartPosition()

void Battleground::SetTeamStartPosition ( TeamId  teamId,
Position const &  pos 
)

Definition at line 565 of file Battleground.cpp.

+ Here is the caller graph for this function:

◆ SetTypeID()

void Battleground::SetTypeID ( BattlegroundTypeId  TypeID)
inline

Definition at line 301 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetupBattleground()

virtual bool Battleground::SetupBattleground ( )
inlinevirtual

Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.

Definition at line 256 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetWeakPtr()

void Battleground::SetWeakPtr ( Trinity::unique_weak_ptr< Battleground weakRef)
inline

Definition at line 515 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SetWinner()

void Battleground::SetWinner ( PvPTeamId  winnerTeamId)
inline

Definition at line 317 of file Battleground.h.

+ Here is the caller graph for this function:

◆ SpawnBGObject()

void Battleground::SpawnBGObject ( uint32  type,
uint32  respawntime 
)

Definition at line 1435 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ StartBattleground()

void Battleground::StartBattleground ( )

Definition at line 978 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ StartingEventCloseDoors()

virtual void Battleground::StartingEventCloseDoors ( )
inlinevirtual

Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundSA, and BattlegroundWS.

Definition at line 261 of file Battleground.h.

+ Here is the caller graph for this function:

◆ StartingEventOpenDoors()

virtual void Battleground::StartingEventOpenDoors ( )
inlinevirtual

Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundBE, BattlegroundDS, BattlegroundEY, BattlegroundIC, BattlegroundNA, BattlegroundRL, BattlegroundRV, BattlegroundSA, and BattlegroundWS.

Definition at line 262 of file Battleground.h.

+ Here is the caller graph for this function:

◆ StartTimedAchievement()

void Battleground::StartTimedAchievement ( AchievementCriteriaTimedTypes  type,
uint32  entry 
)

Definition at line 1800 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToBeDeleted()

bool Battleground::ToBeDeleted ( ) const
inline

Definition at line 487 of file Battleground.h.

+ Here is the caller graph for this function:

◆ Update()

void Battleground::Update ( uint32  diff)

Definition at line 173 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdatePlayerScore()

bool Battleground::UpdatePlayerScore ( Player player,
uint32  type,
uint32  value,
bool  doAddHonor = true 
)
virtual

Reimplemented in BattlegroundAB, BattlegroundAV, BattlegroundEY, and BattlegroundWS.

Definition at line 1243 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdatePlayersCountByTeam()

void Battleground::UpdatePlayersCountByTeam ( uint32  Team,
bool  remove 
)
inline

Definition at line 413 of file Battleground.h.

+ Here is the caller graph for this function:

◆ UpdateWorldState()

void Battleground::UpdateWorldState ( uint32  variable,
uint32  value 
)

Definition at line 668 of file Battleground.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _arenaTeamScores

ArenaTeamScore Battleground::_arenaTeamScores[PVP_TEAMS_COUNT]
protected

Definition at line 556 of file Battleground.h.

◆ _winnerTeamId

PvPTeamId Battleground::_winnerTeamId
private

Definition at line 575 of file Battleground.h.

◆ BgCreatures

GuidVector Battleground::BgCreatures

Definition at line 464 of file Battleground.h.

◆ BgObjects

GuidVector Battleground::BgObjects
Todo:
make this protected:

Definition at line 463 of file Battleground.h.

◆ m_ArenaTeamIds

uint32 Battleground::m_ArenaTeamIds[PVP_TEAMS_COUNT]
private

Definition at line 629 of file Battleground.h.

◆ m_ArenaTeamMMR

uint32 Battleground::m_ArenaTeamMMR[PVP_TEAMS_COUNT]
private

Definition at line 631 of file Battleground.h.

◆ m_ArenaType

uint8 Battleground::m_ArenaType
private

Definition at line 571 of file Battleground.h.

◆ m_BgRaids

Group* Battleground::m_BgRaids[PVP_TEAMS_COUNT]
private

Definition at line 623 of file Battleground.h.

◆ m_BracketId

BattlegroundBracketId Battleground::m_BracketId
private

Definition at line 570 of file Battleground.h.

◆ m_BuffChange

bool Battleground::m_BuffChange
protected

Definition at line 550 of file Battleground.h.

◆ m_ClientInstanceID

uint32 Battleground::m_ClientInstanceID
private

Definition at line 564 of file Battleground.h.

◆ m_EndTime

int32 Battleground::m_EndTime
private

Definition at line 568 of file Battleground.h.

◆ m_Events

uint8 Battleground::m_Events
protected

Definition at line 545 of file Battleground.h.

◆ m_HonorMode

BGHonorMode Battleground::m_HonorMode
protected

Definition at line 553 of file Battleground.h.

◆ m_InBGFreeSlotQueue

bool Battleground::m_InBGFreeSlotQueue
private

Definition at line 572 of file Battleground.h.

◆ m_InstanceID

uint32 Battleground::m_InstanceID
private

Definition at line 562 of file Battleground.h.

◆ m_InvitedAlliance

uint32 Battleground::m_InvitedAlliance
private

Definition at line 619 of file Battleground.h.

◆ m_InvitedHorde

uint32 Battleground::m_InvitedHorde
private

Definition at line 620 of file Battleground.h.

◆ m_IsArena

bool Battleground::m_IsArena
private

Definition at line 574 of file Battleground.h.

◆ m_IsRandom

bool Battleground::m_IsRandom
protected

Definition at line 551 of file Battleground.h.

◆ m_IsRated

bool Battleground::m_IsRated
private

Definition at line 577 of file Battleground.h.

◆ m_LastResurrectTime

uint32 Battleground::m_LastResurrectTime
private

Definition at line 569 of file Battleground.h.

◆ m_LevelMax

uint32 Battleground::m_LevelMax
private

Definition at line 635 of file Battleground.h.

◆ m_LevelMin

uint32 Battleground::m_LevelMin
private

Definition at line 634 of file Battleground.h.

◆ m_Map

BattlegroundMap* Battleground::m_Map
private

Definition at line 643 of file Battleground.h.

◆ m_MapId

uint32 Battleground::m_MapId
private

Definition at line 642 of file Battleground.h.

◆ m_MaxPlayers

uint32 Battleground::m_MaxPlayers
private

Definition at line 637 of file Battleground.h.

◆ m_MaxPlayersPerTeam

uint32 Battleground::m_MaxPlayersPerTeam
private

Definition at line 636 of file Battleground.h.

◆ m_MinPlayers

uint32 Battleground::m_MinPlayers
private

Definition at line 639 of file Battleground.h.

◆ m_MinPlayersPerTeam

uint32 Battleground::m_MinPlayersPerTeam
private

Definition at line 638 of file Battleground.h.

◆ m_Name

std::string Battleground::m_Name
private

Definition at line 580 of file Battleground.h.

◆ m_OfflineQueue

std::deque<ObjectGuid> Battleground::m_OfflineQueue
private

Definition at line 614 of file Battleground.h.

◆ m_Players

BattlegroundPlayerMap Battleground::m_Players
protected

Definition at line 540 of file Battleground.h.

◆ m_PlayersCount

uint32 Battleground::m_PlayersCount[PVP_TEAMS_COUNT]
private

Definition at line 626 of file Battleground.h.

◆ m_PrematureCountDown

bool Battleground::m_PrematureCountDown
private

Definition at line 578 of file Battleground.h.

◆ m_PrematureCountDownTimer

uint32 Battleground::m_PrematureCountDownTimer
private

Definition at line 579 of file Battleground.h.

◆ m_RandomTypeID

BattlegroundTypeId Battleground::m_RandomTypeID
private

Definition at line 561 of file Battleground.h.

◆ m_ResetStatTimer

uint32 Battleground::m_ResetStatTimer
private

Definition at line 566 of file Battleground.h.

◆ m_ResurrectQueue

GuidVector Battleground::m_ResurrectQueue
private

Definition at line 613 of file Battleground.h.

◆ m_ReviveQueue

std::map<ObjectGuid, GuidVector> Battleground::m_ReviveQueue
protected

Definition at line 542 of file Battleground.h.

◆ m_SetDeleteThis

bool Battleground::m_SetDeleteThis
private

Definition at line 573 of file Battleground.h.

◆ m_StartDelayTime

int32 Battleground::m_StartDelayTime
private

Definition at line 576 of file Battleground.h.

◆ m_StartMaxDist

float Battleground::m_StartMaxDist
private

Definition at line 645 of file Battleground.h.

◆ m_StartTime

uint32 Battleground::m_StartTime
private

Definition at line 565 of file Battleground.h.

◆ m_Status

BattlegroundStatus Battleground::m_Status
private

Definition at line 563 of file Battleground.h.

◆ m_TeamScores

int32 Battleground::m_TeamScores[PVP_TEAMS_COUNT]
protected

Definition at line 554 of file Battleground.h.

◆ m_TypeID

BattlegroundTypeId Battleground::m_TypeID
private

Definition at line 560 of file Battleground.h.

◆ m_ValidStartPositionTimer

uint32 Battleground::m_ValidStartPositionTimer
private

Definition at line 567 of file Battleground.h.

◆ m_weakRef

Trinity::unique_weak_ptr<Battleground> Battleground::m_weakRef
private

Definition at line 648 of file Battleground.h.

◆ PlayerScores

BattlegroundScoreMap Battleground::PlayerScores
protected

Definition at line 535 of file Battleground.h.

◆ ScriptId

uint32 Battleground::ScriptId
private

Definition at line 646 of file Battleground.h.

◆ StartDelayTimes

BattlegroundStartTimeIntervals Battleground::StartDelayTimes[BG_STARTING_EVENT_COUNT]
protected

Definition at line 546 of file Battleground.h.

◆ StartMessageIds

uint32 Battleground::StartMessageIds[BG_STARTING_EVENT_COUNT]
protected

Definition at line 548 of file Battleground.h.

◆ StartPosition

Position Battleground::StartPosition[PVP_TEAMS_COUNT]
private

Definition at line 644 of file Battleground.h.


The documentation for this class was generated from the following files: