Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
PoolGroup< T > Class Template Reference

#include <PoolMgr.h>

Public Member Functions

void AddEntry (PoolObject &poolitem, uint32 maxentries)
bool CheckPool () const
void Despawn1Object (uint32 child_pool_id)
void Despawn1Object (uint32 guid)
void Despawn1Object (uint32 guid)
void Despawn1Object (uint32 guid)
void Despawn1Object (uint32 quest_id)
void DespawnObject (ActivePoolData &spawns, uint32 guid=0)
uint32 GetFirstEqualChancedObjectId ()
uint32 GetPoolId () const
bool isEmpty () const
 PoolGroup ()
void RemoveOneRelation (uint32 child_pool_id)
void RemoveOneRelation (uint32 child_pool_id)
void ReSpawn1Object (PoolObject *)
void ReSpawn1Object (PoolObject *)
void ReSpawn1Object (PoolObject *obj)
void ReSpawn1Object (PoolObject *obj)
void ReSpawn1Object (PoolObject *obj)
PoolObjectRollOne (ActivePoolData &spawns, uint32 triggerFrom)
void SetPoolId (uint32 pool_id)
void Spawn1Object (PoolObject *obj)
void Spawn1Object (PoolObject *obj)
void Spawn1Object (PoolObject *obj)
void Spawn1Object (PoolObject *obj)
void Spawn1Object (PoolObject *obj)
void SpawnObject (ActivePoolData &spawns, uint32 limit, uint32 triggerFrom)
void SpawnObject (ActivePoolData &spawns, uint32 limit, uint32 triggerFrom)
 ~PoolGroup ()

Private Types

typedef std::vector< PoolObjectPoolObjectList

Private Attributes

PoolObjectList EqualChanced
PoolObjectList ExplicitlyChanced
uint32 poolId

Detailed Description

template<class T>
class PoolGroup< T >

Definition at line 57 of file PoolMgr.h.

Member Typedef Documentation

◆ PoolObjectList

template<class T>
typedef std::vector<PoolObject> PoolGroup< T >::PoolObjectList
private

Definition at line 59 of file PoolMgr.h.

Constructor & Destructor Documentation

◆ PoolGroup()

template<class T>
PoolGroup< T >::PoolGroup ( )
inlineexplicit

Definition at line 61 of file PoolMgr.h.

References poolId.

◆ ~PoolGroup()

template<class T>
PoolGroup< T >::~PoolGroup ( )
inline

Definition at line 63 of file PoolMgr.h.

Member Function Documentation

◆ AddEntry()

template<class T>
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().

◆ CheckPool()

template<class T>
bool PoolGroup< T >::CheckPool ( ) const

Definition at line 129 of file PoolMgr.cpp.

References EqualChanced, and ExplicitlyChanced.

◆ Despawn1Object() [1/5]

void PoolGroup< Pool >::Despawn1Object ( uint32 child_pool_id)

Definition at line 231 of file PoolMgr.cpp.

References sPoolMgr.

◆ Despawn1Object() [2/5]

void PoolGroup< GameObject >::Despawn1Object ( uint32 guid)

◆ Despawn1Object() [3/5]

void PoolGroup< Creature >::Despawn1Object ( uint32 guid)

◆ Despawn1Object() [4/5]

template<class T>
void PoolGroup< T >::Despawn1Object ( uint32 guid)

Referenced by DespawnObject().

◆ Despawn1Object() [5/5]

void PoolGroup< Quest >::Despawn1Object ( uint32 quest_id)

Definition at line 238 of file PoolMgr.cpp.

References sObjectMgr, and sPoolMgr.

◆ DespawnObject()

template<class T>
void PoolGroup< T >::DespawnObject ( ActivePoolData & spawns,
uint32 guid = 0 )

◆ GetFirstEqualChancedObjectId()

template<class T>
uint32 PoolGroup< T >::GetFirstEqualChancedObjectId ( )
inline

Definition at line 75 of file PoolMgr.h.

References EqualChanced.

◆ GetPoolId()

template<class T>
uint32 PoolGroup< T >::GetPoolId ( ) const
inline

Definition at line 81 of file PoolMgr.h.

References poolId.

◆ isEmpty()

template<class T>
bool PoolGroup< T >::isEmpty ( ) const
inline

Definition at line 64 of file PoolMgr.h.

References EqualChanced, and ExplicitlyChanced.

◆ RemoveOneRelation() [1/2]

void PoolGroup< Pool >::RemoveOneRelation ( uint32 child_pool_id)

Definition at line 281 of file PoolMgr.cpp.

References EqualChanced, and ExplicitlyChanced.

◆ RemoveOneRelation() [2/2]

template<class T>
void PoolGroup< T >::RemoveOneRelation ( uint32 child_pool_id)

◆ ReSpawn1Object() [1/5]

void PoolGroup< Quest >::ReSpawn1Object ( PoolObject * )

Definition at line 519 of file PoolMgr.cpp.

◆ ReSpawn1Object() [2/5]

void PoolGroup< Pool >::ReSpawn1Object ( PoolObject * )

Definition at line 515 of file PoolMgr.cpp.

◆ ReSpawn1Object() [3/5]

void PoolGroup< GameObject >::ReSpawn1Object ( PoolObject * obj)

◆ ReSpawn1Object() [4/5]

void PoolGroup< Creature >::ReSpawn1Object ( PoolObject * obj)

◆ ReSpawn1Object() [5/5]

template<class T>
void PoolGroup< T >::ReSpawn1Object ( PoolObject * obj)

Referenced by SpawnObject().

◆ RollOne()

template<class T>
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().

◆ SetPoolId()

template<class T>
void PoolGroup< T >::SetPoolId ( uint32 pool_id)
inline

Definition at line 62 of file PoolMgr.h.

References poolId.

Referenced by PoolMgr::LoadFromDB().

◆ Spawn1Object() [1/5]

void PoolGroup< Quest >::Spawn1Object ( PoolObject * obj)

Definition at line 403 of file PoolMgr.cpp.

References PoolObject::guid, SF_LOG_DEBUG, sObjectMgr, and sPoolMgr.

◆ Spawn1Object() [2/5]

void PoolGroup< Pool >::Spawn1Object ( PoolObject * obj)

Definition at line 396 of file PoolMgr.cpp.

References PoolObject::guid, and sPoolMgr.

◆ Spawn1Object() [3/5]

◆ Spawn1Object() [4/5]

◆ Spawn1Object() [5/5]

template<class T>
void PoolGroup< T >::Spawn1Object ( PoolObject * obj)

Referenced by SpawnObject().

◆ SpawnObject() [1/2]

◆ SpawnObject() [2/2]

template<class T>
void PoolGroup< T >::SpawnObject ( ActivePoolData & spawns,
uint32 limit,
uint32 triggerFrom )

Member Data Documentation

◆ EqualChanced

template<class T>
PoolObjectList PoolGroup< T >::EqualChanced
private

◆ ExplicitlyChanced

template<class T>
PoolObjectList PoolGroup< T >::ExplicitlyChanced
private

Definition at line 84 of file PoolMgr.h.

Referenced by AddEntry(), CheckPool(), DespawnObject(), isEmpty(), RemoveOneRelation(), and RollOne().

◆ poolId

template<class T>
uint32 PoolGroup< T >::poolId
private

Definition at line 83 of file PoolMgr.h.

Referenced by DespawnObject(), GetPoolId(), PoolGroup(), SetPoolId(), and SpawnObject().


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