![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "PoolMgr.h"
Public Member Functions | |
PoolGroup () | |
void | SetPoolId (uint32 pool_id) |
~PoolGroup () | |
bool | IsEmpty () const |
void | AddEntry (PoolObject &poolitem, uint32 maxentries) |
bool | CheckPool () const |
void | DespawnObject (ActivePoolData &spawns, ObjectGuid::LowType guid=0) |
void | Despawn1Object (ObjectGuid::LowType guid) |
void | SpawnObject (ActivePoolData &spawns, uint32 limit, uint32 triggerFrom) |
void | Spawn1Object (PoolObject *obj) |
void | ReSpawn1Object (PoolObject *obj) |
void | RemoveOneRelation (uint32 child_pool_id) |
uint32 | GetFirstEqualChancedObjectId () |
uint32 | GetPoolId () const |
Private Types | |
typedef std::vector< PoolObject > | PoolObjectList |
Private Attributes | |
uint32 | poolId |
PoolObjectList | ExplicitlyChanced |
PoolObjectList | EqualChanced |
|
private |
|
inlineexplicit |
void PoolGroup< T >::AddEntry | ( | PoolObject & | poolitem, |
uint32 | maxentries | ||
) |
References PoolObject::chance.
Referenced by PoolMgr::LoadFromDB().
bool PoolGroup< T >::CheckPool | ( | ) | const |
void PoolGroup< T >::Despawn1Object | ( | ObjectGuid::LowType | guid | ) |
void PoolGroup< T >::DespawnObject | ( | ActivePoolData & | spawns, |
ObjectGuid::LowType | guid = 0 |
||
) |
References ActivePoolData::IsActiveObject(), and ActivePoolData::RemoveObject().
References PoolGroup< T >::EqualChanced.
References PoolGroup< T >::poolId.
|
inline |
References PoolGroup< T >::EqualChanced, and PoolGroup< T >::ExplicitlyChanced.
void PoolGroup< T >::ReSpawn1Object | ( | PoolObject * | obj | ) |
void PoolGroup< T >::Spawn1Object | ( | PoolObject * | obj | ) |
void PoolGroup< T >::SpawnObject | ( | ActivePoolData & | spawns, |
uint32 | limit, | ||
uint32 | triggerFrom | ||
) |
References ActivePoolData::ActivateObject(), ActivePoolData::GetActiveObjectCount(), ActivePoolData::IsActiveObject(), rand_chance(), and Acore::Containers::RandomResize().
|
private |
Referenced by PoolGroup< T >::GetFirstEqualChancedObjectId(), and PoolGroup< T >::IsEmpty().
|
private |
Referenced by PoolGroup< T >::IsEmpty().
Referenced by PoolGroup< T >::GetPoolId(), and PoolGroup< T >::SetPoolId().