|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#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 BattlePetSpawnMgr * | instance () |
Private Types | |
| typedef std::map< uint32, BattlePetZonePoolMap > | BattlePetMapPoolMap |
| typedef std::map< uint32, BattlePetWildZonePool > | BattlePetZonePoolMap |
Private Member Functions | |
| BattlePetWildZonePool * | GetZonePool (Creature const *creature) |
| BattlePetWildZonePool const * | GetZonePool (Creature const *creature) const |
Private Attributes | |
| BattlePetMapPoolMap | _mapPools |
| uint32 | _updateTimer = 0 |
Definition at line 46 of file BattlePetSpawnMgr.h.
|
private |
Definition at line 60 of file BattlePetSpawnMgr.h.
|
private |
Definition at line 59 of file BattlePetSpawnMgr.h.
|
private |
Definition at line 206 of file BattlePetSpawnMgr.cpp.
References _mapPools, and WorldLocation::GetMapId().
Referenced by IsWildBattlePetReplacement(), OnCreatureAdded(), OnCreatureRemoved(), and ResolveWildBattle().
|
private |
Definition at line 226 of file BattlePetSpawnMgr.cpp.
References _mapPools, and WorldLocation::GetMapId().
|
static |
Definition at line 83 of file BattlePetSpawnMgr.cpp.
References instance().
Referenced by instance().
| bool BattlePetSpawnMgr::IsWildBattlePetReplacement | ( | Creature const * | creature | ) | const |
Definition at line 195 of file BattlePetSpawnMgr.cpp.
References Object::GetGUID(), and GetZonePool().
| void BattlePetSpawnMgr::LoadFromDB | ( | ) |
Definition at line 89 of file BattlePetSpawnMgr.cpp.
References _mapPools, _updateTimer, BattlePetWildPoolTemplate::Entry, getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), BattlePetWildPoolTemplate::Max, BattlePetWildPoolTemplate::MaxLevel, BattlePetWildPoolTemplate::MinLevel, BattlePetSpeciesEntry::NpcId, sBattlePetSpeciesStore, SF_LOG_ERROR, SF_LOG_INFO, sObjectMgr, BattlePetWildPoolTemplate::Species, and WorldDatabase.
| void BattlePetSpawnMgr::OnCreatureAdded | ( | Creature * | creature | ) |
Definition at line 166 of file BattlePetSpawnMgr.cpp.
References GetZonePool(), and Creature::m_isTempWorldObject.
| void BattlePetSpawnMgr::OnCreatureRemoved | ( | Creature * | creature | ) |
Definition at line 175 of file BattlePetSpawnMgr.cpp.
References GetZonePool(), and Creature::m_isTempWorldObject.
| bool BattlePetSpawnMgr::ResolveWildBattle | ( | Creature * | creature | ) |
Definition at line 184 of file BattlePetSpawnMgr.cpp.
References GetZonePool().
| void BattlePetSpawnMgr::Update | ( | uint32 | diff | ) |
Definition at line 154 of file BattlePetSpawnMgr.cpp.
References _mapPools, and _updateTimer.
|
private |
Definition at line 65 of file BattlePetSpawnMgr.h.
Referenced by GetZonePool(), GetZonePool(), LoadFromDB(), and Update().
|
private |
Definition at line 66 of file BattlePetSpawnMgr.h.
Referenced by LoadFromDB(), and Update().