|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <PoolMgr.h>
Private Types | |
| typedef std::vector< PoolObject > | PoolObjectList |
Private Attributes | |
| PoolObjectList | EqualChanced |
| PoolObjectList | ExplicitlyChanced |
| uint32 | poolId |
|
private |
|
inlineexplicit |
| void PoolGroup< T >::AddEntry | ( | PoolObject & | poolitem, |
| uint32 | maxentries ) |
Definition at line 119 of file PoolMgr.cpp.
References PoolObject::chance, EqualChanced, and ExplicitlyChanced.
Referenced by PoolMgr::LoadFromDB().
| bool PoolGroup< T >::CheckPool | ( | ) | const |
Definition at line 129 of file PoolMgr.cpp.
References EqualChanced, and ExplicitlyChanced.
Definition at line 231 of file PoolMgr.cpp.
References sPoolMgr.
| void PoolGroup< GameObject >::Despawn1Object | ( | uint32 | guid | ) |
Definition at line 218 of file PoolMgr.cpp.
References ObjectAccessor::GetObjectInWorld(), HIGHGUID_GAMEOBJECT, MAKE_NEW_GUID(), and sObjectMgr.
Definition at line 205 of file PoolMgr.cpp.
References ObjectAccessor::GetObjectInWorld(), HIGHGUID_UNIT, MAKE_NEW_GUID(), and sObjectMgr.
Referenced by DespawnObject().
Definition at line 238 of file PoolMgr.cpp.
References sObjectMgr, and sPoolMgr.
| void PoolGroup< T >::DespawnObject | ( | ActivePoolData & | spawns, |
| uint32 | guid = 0 ) |
Definition at line 174 of file PoolMgr.cpp.
References Despawn1Object(), EqualChanced, ExplicitlyChanced, ActivePoolData::IsActiveObject(), poolId, and ActivePoolData::RemoveObject().
Referenced by SpawnObject().
Definition at line 75 of file PoolMgr.h.
References EqualChanced.
|
inline |
Definition at line 64 of file PoolMgr.h.
References EqualChanced, and ExplicitlyChanced.
Definition at line 281 of file PoolMgr.cpp.
References EqualChanced, and ExplicitlyChanced.
| void PoolGroup< Quest >::ReSpawn1Object | ( | PoolObject * | ) |
Definition at line 519 of file PoolMgr.cpp.
| void PoolGroup< Pool >::ReSpawn1Object | ( | PoolObject * | ) |
Definition at line 515 of file PoolMgr.cpp.
| void PoolGroup< GameObject >::ReSpawn1Object | ( | PoolObject * | obj | ) |
Definition at line 506 of file PoolMgr.cpp.
References ObjectAccessor::GetObjectInWorld(), PoolObject::guid, HIGHGUID_GAMEOBJECT, MAKE_NEW_GUID(), and sObjectMgr.
| void PoolGroup< Creature >::ReSpawn1Object | ( | PoolObject * | obj | ) |
Definition at line 497 of file PoolMgr.cpp.
References ObjectAccessor::GetObjectInWorld(), PoolObject::guid, HIGHGUID_UNIT, MAKE_NEW_GUID(), and sObjectMgr.
| void PoolGroup< T >::ReSpawn1Object | ( | PoolObject * | obj | ) |
Referenced by SpawnObject().
| PoolObject * PoolGroup< T >::RollOne | ( | ActivePoolData & | spawns, |
| uint32 | triggerFrom ) |
Definition at line 143 of file PoolMgr.cpp.
References EqualChanced, ExplicitlyChanced, ActivePoolData::IsActiveObject(), and rand_chance().
Referenced by SpawnObject().
| void PoolGroup< Quest >::Spawn1Object | ( | PoolObject * | obj | ) |
Definition at line 403 of file PoolMgr.cpp.
References PoolObject::guid, SF_LOG_DEBUG, sObjectMgr, and sPoolMgr.
| void PoolGroup< Pool >::Spawn1Object | ( | PoolObject * | obj | ) |
Definition at line 396 of file PoolMgr.cpp.
References PoolObject::guid, and sPoolMgr.
| void PoolGroup< GameObject >::Spawn1Object | ( | PoolObject * | obj | ) |
Definition at line 367 of file PoolMgr.cpp.
References Map::AddToMap(), PoolObject::guid, Map::Instanceable(), Map::IsGridLoaded(), GameObject::isSpawnedByDefault(), GameObject::LoadGameObjectFromDB(), sMapMgr, and sObjectMgr.
| void PoolGroup< Creature >::Spawn1Object | ( | PoolObject * | obj | ) |
Definition at line 343 of file PoolMgr.cpp.
References PoolObject::guid, Map::Instanceable(), Map::IsGridLoaded(), Creature::LoadCreatureFromDB(), sMapMgr, and sObjectMgr.
| void PoolGroup< T >::Spawn1Object | ( | PoolObject * | obj | ) |
Referenced by SpawnObject().
| void PoolGroup< Quest >::SpawnObject | ( | ActivePoolData & | spawns, |
| uint32 | limit, | ||
| uint32 | triggerFrom ) |
Definition at line 425 of file PoolMgr.cpp.
References ActivePoolData::ActivateObject(), CHAR_SEL_POOL_QUEST_SAVE, CharacterDatabase, DespawnObject(), EqualChanced, ActivePoolData::GetActiveQuests(), ActivePoolData::IsActiveObject(), poolId, Skyfire::Containers::SelectRandomContainerElement(), PreparedStatement::setUInt32(), SF_LOG_DEBUG, Spawn1Object(), and sPoolMgr.
| void PoolGroup< T >::SpawnObject | ( | ActivePoolData & | spawns, |
| uint32 | limit, | ||
| uint32 | triggerFrom ) |
Definition at line 302 of file PoolMgr.cpp.
References ActivePoolData::ActivateObject(), DespawnObject(), ActivePoolData::GetActiveObjectCount(), PoolObject::guid, poolId, ReSpawn1Object(), RollOne(), and Spawn1Object().
|
private |
Definition at line 85 of file PoolMgr.h.
Referenced by AddEntry(), CheckPool(), DespawnObject(), GetFirstEqualChancedObjectId(), isEmpty(), RemoveOneRelation(), RollOne(), and SpawnObject().
|
private |
Definition at line 84 of file PoolMgr.h.
Referenced by AddEntry(), CheckPool(), DespawnObject(), isEmpty(), RemoveOneRelation(), and RollOne().
Definition at line 83 of file PoolMgr.h.
Referenced by DespawnObject(), GetPoolId(), PoolGroup(), SetPoolId(), and SpawnObject().