#include <BattlefieldMgr.h>
BattlefieldMgr::BattlefieldMgr |
( |
| ) |
|
|
private |
uint32 _updateTimer
Definition: BattlefieldMgr.h:64
BattlefieldMgr::~BattlefieldMgr |
( |
| ) |
|
|
private |
BattlefieldMap _battlefieldMap
Definition: BattlefieldMgr.h:62
BattlefieldSet _battlefieldSet
Definition: BattlefieldMgr.h:59
BattlefieldMap _battlefieldMap
Definition: BattlefieldMgr.h:62
125 if ((*itr)->GetBattleId() == battleId)
BattlefieldSet _battlefieldSet
Definition: BattlefieldMgr.h:59
arena_t NULL
Definition: jemalloc_internal.h:624
134 if (bf->GetQueueId() == queueId)
BattlefieldSet _battlefieldSet
Definition: BattlefieldMgr.h:59
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: Battlefield.h:196
115 if (!itr->second->IsEnabled())
BattlefieldMap _battlefieldMap
Definition: BattlefieldMgr.h:62
arena_t NULL
Definition: jemalloc_internal.h:624
BattlefieldMap _battlefieldMap
Definition: BattlefieldMgr.h:62
arena_t NULL
Definition: jemalloc_internal.h:624
void BattlefieldMgr::HandlePlayerEnterZone |
( |
Player * |
player, |
|
|
uint32 |
zoneId |
|
) |
| |
89 TC_LOG_DEBUG(
"bg.battlefield",
"%s entered battlefield id %u", player->GetGUID().ToString().c_str(), bf->
GetTypeId());
BattlefieldMap _battlefieldMap
Definition: BattlefieldMgr.h:62
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
bool HasPlayer(Player *player) const
Definition: Battlefield.cpp:353
Definition: Battlefield.h:196
uint32 GetTypeId() const
Definition: Battlefield.h:234
void HandlePlayerEnterZone(Player *player, uint32 zone)
Called when player (player) enter in zone.
Definition: Battlefield.cpp:72
bool IsEnabled() const
Return if battlefield is enable.
Definition: Battlefield.h:248
void BattlefieldMgr::HandlePlayerLeaveZone |
( |
Player * |
player, |
|
|
uint32 |
zoneId |
|
) |
| |
99 if (!itr->second->HasPlayer(player))
102 itr->second->HandlePlayerLeaveZone(player, zoneId);
103 TC_LOG_DEBUG(
"bg.battlefield",
"Player %s left battlefield id %u", player->GetGUID().ToString().c_str(), itr->second->GetTypeId());
BattlefieldMap _battlefieldMap
Definition: BattlefieldMgr.h:62
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
void BattlefieldMgr::InitBattlefield |
( |
| ) |
|
47 TC_LOG_INFO(
"bg.battlefield",
"Battlefield: Wintergrasp init failed.");
53 TC_LOG_INFO(
"bg.battlefield",
"Battlefield: Wintergrasp successfully initiated.");
virtual bool SetupBattlefield()
Call this to init the Battlefield.
Definition: Battlefield.h:210
Definition: BattlefieldWG.h:269
BattlefieldSet _battlefieldSet
Definition: BattlefieldMgr.h:59
Definition: Battlefield.h:196
#define TC_LOG_INFO(filterType__,...)
Definition: Log.h:201
Definition: BattlefieldMgr.h:27
static BattlefieldMgr * instance()
Definition: BattlefieldMgr.cpp:35
void BattlefieldMgr::Update |
( |
uint32 |
diff | ) |
|
155 if ((*itr)->IsEnabled())
BattlefieldSet _battlefieldSet
Definition: BattlefieldMgr.h:59
Definition: Battlefield.h:65
uint32 _updateTimer
Definition: BattlefieldMgr.h:64
uint32 BattlefieldMgr::_updateTimer |
|
private |
The documentation for this class was generated from the following files: