Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
BattlePetSpawnMgr Class Reference

#include <BattlePetSpawnMgr.h>

Public Member Functions

bool IsWildBattlePetReplacement (Creature const *creature) const
void LoadFromDB ()
void OnCreatureAdded (Creature *creature)
void OnCreatureRemoved (Creature *creature)
bool ResolveWildBattle (Creature *creature)
void Update (uint32 diff)

Static Public Member Functions

static BattlePetSpawnMgrinstance ()

Private Types

typedef std::map< uint32, BattlePetZonePoolMapBattlePetMapPoolMap
typedef std::map< uint32, BattlePetWildZonePoolBattlePetZonePoolMap

Private Member Functions

BattlePetWildZonePoolGetZonePool (Creature const *creature)
BattlePetWildZonePool const * GetZonePool (Creature const *creature) const

Private Attributes

BattlePetMapPoolMap _mapPools
uint32 _updateTimer = 0

Detailed Description

Definition at line 46 of file BattlePetSpawnMgr.h.

Member Typedef Documentation

◆ BattlePetMapPoolMap

Definition at line 60 of file BattlePetSpawnMgr.h.

◆ BattlePetZonePoolMap

Definition at line 59 of file BattlePetSpawnMgr.h.

Member Function Documentation

◆ GetZonePool() [1/2]

BattlePetWildZonePool * BattlePetSpawnMgr::GetZonePool ( Creature const * creature)
private

◆ GetZonePool() [2/2]

BattlePetWildZonePool const * BattlePetSpawnMgr::GetZonePool ( Creature const * creature) const
private

Definition at line 226 of file BattlePetSpawnMgr.cpp.

References _mapPools, and WorldLocation::GetMapId().

◆ instance()

BattlePetSpawnMgr * BattlePetSpawnMgr::instance ( )
static

Definition at line 83 of file BattlePetSpawnMgr.cpp.

References instance().

Referenced by instance().

◆ IsWildBattlePetReplacement()

bool BattlePetSpawnMgr::IsWildBattlePetReplacement ( Creature const * creature) const

Definition at line 195 of file BattlePetSpawnMgr.cpp.

References Object::GetGUID(), and GetZonePool().

◆ LoadFromDB()

◆ OnCreatureAdded()

void BattlePetSpawnMgr::OnCreatureAdded ( Creature * creature)

Definition at line 166 of file BattlePetSpawnMgr.cpp.

References GetZonePool(), and Creature::m_isTempWorldObject.

◆ OnCreatureRemoved()

void BattlePetSpawnMgr::OnCreatureRemoved ( Creature * creature)

Definition at line 175 of file BattlePetSpawnMgr.cpp.

References GetZonePool(), and Creature::m_isTempWorldObject.

◆ ResolveWildBattle()

bool BattlePetSpawnMgr::ResolveWildBattle ( Creature * creature)

Definition at line 184 of file BattlePetSpawnMgr.cpp.

References GetZonePool().

◆ Update()

void BattlePetSpawnMgr::Update ( uint32 diff)

Definition at line 154 of file BattlePetSpawnMgr.cpp.

References _mapPools, and _updateTimer.

Member Data Documentation

◆ _mapPools

BattlePetMapPoolMap BattlePetSpawnMgr::_mapPools
private

Definition at line 65 of file BattlePetSpawnMgr.h.

Referenced by GetZonePool(), GetZonePool(), LoadFromDB(), and Update().

◆ _updateTimer

uint32 BattlePetSpawnMgr::_updateTimer = 0
private

Definition at line 66 of file BattlePetSpawnMgr.h.

Referenced by LoadFromDB(), and Update().


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