#include "BattlefieldMgr.h"
◆ BattlefieldMap
◆ BattlefieldSet
◆ BattlefieldMgr()
| BattlefieldMgr::BattlefieldMgr |
( |
| ) |
|
24{
25}
uint32 _updateTimer
Definition BattlefieldMgr.h:76
◆ ~BattlefieldMgr()
| BattlefieldMgr::~BattlefieldMgr |
( |
| ) |
|
28{
30 delete bf;
31}
BattlefieldSet _battlefieldSet
Definition BattlefieldMgr.h:71
Definition Battlefield.h:196
References _battlefieldSet.
◆ AddZone()
64{
66}
BattlefieldMap _battlefieldMap
Definition BattlefieldMgr.h:74
References _battlefieldMap.
◆ CanTalkTo()
◆ GetBattlefieldByBattleId()
◆ GetBattlefieldToZoneId()
96{
99 return nullptr;
100
101 if (!itr->second->IsEnabled())
102 return nullptr;
103 return itr->second;
104}
References _battlefieldMap.
◆ GetZoneScript()
134{
137 return itr->second;
138
139 return nullptr;
140}
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 |
( |
| ) |
|
40{
42 {
43 LOG_INFO(
"server.loading",
"Battlefield: Wintergrasp is disabled.");
45 return;
46 }
48
50 {
51 LOG_ERROR(
"server.loading",
"Battlefield: Wintergrasp init failed.");
53 delete bf;
54 }
55 else
56 {
58 LOG_INFO(
"server.loading",
"Battlefield: Wintergrasp successfully initiated.");
60 }
61}
#define LOG_INFO(filterType__,...)
Definition Log.h:153
#define LOG_ERROR(filterType__,...)
Definition Log.h:145
@ CONFIG_WINTERGRASP_ENABLE
Definition WorldConfig.h:284
Definition BattlefieldWG.h:252
virtual bool SetupBattlefield()
Call this to init the Battlefield.
Definition Battlefield.h:209
#define sWorld
Definition World.h:317
References _battlefieldSet, CONFIG_WINTERGRASP_ENABLE, LOG_ERROR, LOG_INFO, Battlefield::SetupBattlefield(), and sWorld.
◆ instance()
34{
37}
Definition BattlefieldMgr.h:31
static BattlefieldMgr * instance()
Definition BattlefieldMgr.cpp:33
References instance().
Referenced by instance().
◆ IsWintergraspAttackerVictory()
| bool BattlefieldMgr::IsWintergraspAttackerVictory |
( |
| ) |
|
116{
118 return static_cast<BattlefieldWG*
>(bf)->IsLastBattleAttackerVictory();
119 return false;
120}
@ BATTLEFIELD_BATTLEID_WG
Definition Battlefield.h:36
Battlefield * GetBattlefieldByBattleId(uint32 battleId)
Definition BattlefieldMgr.cpp:106
References BATTLEFIELD_BATTLEID_WG, and GetBattlefieldByBattleId().
◆ Update()
| void BattlefieldMgr::Update |
( |
uint32 |
diff | ) |
|
◆ _battlefieldMap
◆ _battlefieldSet
◆ _updateTimer
| uint32 BattlefieldMgr::_updateTimer |
|
private |
The documentation for this class was generated from the following files: