#include "BattlefieldMgr.h"
◆ BattlefieldMap
◆ BattlefieldSet
◆ BattlefieldMgr()
| BattlefieldMgr::BattlefieldMgr |
( |
| ) |
|
23{
24}
uint32 _updateTimer
Definition BattlefieldMgr.h:73
◆ ~BattlefieldMgr()
| BattlefieldMgr::~BattlefieldMgr |
( |
| ) |
|
27{
29 delete bf;
30}
BattlefieldSet _battlefieldSet
Definition BattlefieldMgr.h:68
Definition Battlefield.h:208
References _battlefieldSet.
◆ AddZone()
63{
65}
BattlefieldMap _battlefieldMap
Definition BattlefieldMgr.h:71
References _battlefieldMap.
◆ CanTalkTo()
◆ GetBattlefieldByBattleId()
105{
107 if (bf->GetBattleId() == battleId)
108 return bf;
109
110 return nullptr;
111}
References _battlefieldSet.
◆ GetBattlefieldToZoneId()
94{
97 return nullptr;
98
99 if (!itr->second->IsEnabled())
100 return nullptr;
101 return itr->second;
102}
References _battlefieldMap.
◆ GetZoneScript()
125{
128 return itr->second;
129
130 return nullptr;
131}
References _battlefieldMap.
◆ HandleDropFlag()
| void BattlefieldMgr::HandleDropFlag |
( |
Player * |
player, |
|
|
uint32 |
spellId |
|
) |
| |
◆ HandleGossipOption()
◆ HandlePlayerEnterZone()
| void BattlefieldMgr::HandlePlayerEnterZone |
( |
Player * |
player, |
|
|
uint32 |
areaflag |
|
) |
| |
◆ HandlePlayerLeaveZone()
| void BattlefieldMgr::HandlePlayerLeaveZone |
( |
Player * |
player, |
|
|
uint32 |
areaflag |
|
) |
| |
◆ HandlePlayerResurrects()
| void BattlefieldMgr::HandlePlayerResurrects |
( |
Player * |
player, |
|
|
uint32 |
areaflag |
|
) |
| |
◆ InitBattlefield()
| void BattlefieldMgr::InitBattlefield |
( |
| ) |
|
39{
41 {
42 LOG_INFO(
"server.loading",
"Battlefield: Wintergrasp is disabled.");
44 return;
45 }
47
49 {
50 LOG_ERROR(
"server.loading",
"Battlefield: Wintergrasp init failed.");
52 delete bf;
53 }
54 else
55 {
57 LOG_INFO(
"server.loading",
"Battlefield: Wintergrasp successfully initiated.");
59 }
60}
#define LOG_INFO(filterType__,...)
Definition Log.h:166
#define LOG_ERROR(filterType__,...)
Definition Log.h:158
@ CONFIG_WINTERGRASP_ENABLE
Definition WorldConfig.h:284
Definition BattlefieldWG.h:253
virtual bool SetupBattlefield()
Call this to init the Battlefield.
Definition Battlefield.h:221
#define sWorld
Definition World.h:316
References _battlefieldSet, CONFIG_WINTERGRASP_ENABLE, LOG_ERROR, LOG_INFO, Battlefield::SetupBattlefield(), and sWorld.
◆ instance()
33{
36}
Definition BattlefieldMgr.h:31
static BattlefieldMgr * instance()
Definition BattlefieldMgr.cpp:32
References instance().
Referenced by instance().
◆ Update()
| void BattlefieldMgr::Update |
( |
uint32 |
diff | ) |
|
◆ _battlefieldMap
◆ _battlefieldSet
◆ _updateTimer
| uint32 BattlefieldMgr::_updateTimer |
|
private |
The documentation for this class was generated from the following files: