|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BattlePetSpawnMgr.h>
Public Member Functions | |
| void | AddTemplate (BattlePetWildPoolTemplate const &spawnTemplate) |
| bool | IsReplacement (uint64 guid) const |
| void | OnCreatureAdded (Creature *creature) |
| void | OnCreatureRemoved (Creature *creature) |
| void | Populate () |
| bool | RemoveReplacement (Creature *replacement) |
Private Member Functions | |
| bool | RemoveReplacement (uint64 originalGuid, BattlePetWildPoolTemplate &spawnTemplate) |
| void | SpawnReplacement (uint64 originalGuid, BattlePetWildPoolTemplate &spawnTemplate) |
Private Attributes | |
| std::vector< BattlePetWildPoolTemplate > | _templates |
Definition at line 29 of file BattlePetSpawnMgr.h.
| void BattlePetWildZonePool::AddTemplate | ( | BattlePetWildPoolTemplate const & | spawnTemplate | ) |
Definition at line 246 of file BattlePetSpawnMgr.cpp.
References _templates, BattlePetWildPoolTemplate::Entry, and BattlePetWildPoolTemplate::Species.
| bool BattlePetWildZonePool::IsReplacement | ( | uint64 | guid | ) | const |
Definition at line 322 of file BattlePetSpawnMgr.cpp.
References _templates.
| void BattlePetWildZonePool::OnCreatureAdded | ( | Creature * | creature | ) |
Definition at line 274 of file BattlePetSpawnMgr.cpp.
References _templates, BattlePetWildPoolTemplate::Entry, Object::GetEntry(), Object::GetGUID(), and BattlePetWildPoolTemplate::ReadyForReplacement.
| void BattlePetWildZonePool::OnCreatureRemoved | ( | Creature * | creature | ) |
Definition at line 287 of file BattlePetSpawnMgr.cpp.
References _templates, Object::GetGUID(), BattlePetWildPoolTemplate::ReadyForReplacement, and RemoveReplacement().
| void BattlePetWildZonePool::Populate | ( | ) |
Definition at line 255 of file BattlePetSpawnMgr.cpp.
References _templates, BattlePetWildPoolTemplate::Max, BattlePetWildPoolTemplate::ReadyForReplacement, BattlePetWildPoolTemplate::Replacements, and SpawnReplacement().
| bool BattlePetWildZonePool::RemoveReplacement | ( | Creature * | replacement | ) |
Definition at line 300 of file BattlePetSpawnMgr.cpp.
References _templates, Object::GetGUID(), RemoveReplacement(), and BattlePetWildPoolTemplate::Replacements.
Referenced by OnCreatureRemoved(), and RemoveReplacement().
|
private |
Definition at line 388 of file BattlePetSpawnMgr.cpp.
References WorldObject::AddObjectToRemoveList(), ObjectAccessor::GetObjectInWorld(), BattlePetWildPoolTemplate::ReadyForReplacement, Creature::RemoveFromWorld(), and BattlePetWildPoolTemplate::Replacements.
|
private |
Definition at line 333 of file BattlePetSpawnMgr.cpp.
References Map::AddToMap(), Creature::Create(), Creature::DespawnOrUnsummon(), BattlePetWildPoolTemplate::Entry, Object::GetEntry(), Object::GetGUID(), WorldObject::GetMap(), ObjectAccessor::GetObjectInWorld(), Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), HIGHGUID_UNIT, Object::IsInWorld(), Creature::m_isTempWorldObject, BattlePetWildPoolTemplate::MaxLevel, BattlePetWildPoolTemplate::MinLevel, MONTH, BattlePetSpeciesEntry::NpcId, BattlePetWildPoolTemplate::ReadyForReplacement, Creature::RemoveCorpse(), BattlePetWildPoolTemplate::Replacements, sBattlePetSpeciesStore, Object::SetFlag(), Unit::SetLevel(), Creature::SetRespawnTime(), Object::SetUInt32Value(), sObjectMgr, BattlePetWildPoolTemplate::Species, UNIT_FIELD_FLAGS, UNIT_FIELD_NPC_FLAGS, UNIT_FIELD_WILD_BATTLE_PET_LEVEL, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, and UNIT_NPC_FLAG_WILDPET_CAPTURABLE.
Referenced by Populate().
|
private |
Definition at line 43 of file BattlePetSpawnMgr.h.
Referenced by AddTemplate(), IsReplacement(), OnCreatureAdded(), OnCreatureRemoved(), Populate(), and RemoveReplacement().