TrinityCore
Loading...
Searching...
No Matches
PoolGroup< T > Class Template Reference

#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, bool alwaysDeleteRespawnTime=false)
 
void DespawnAllObjects (ActivePoolData &spawns, bool alwaysDeleteRespawnTime=false)
 
void Despawn1Object (ObjectGuid::LowType guid, bool alwaysDeleteRespawnTime=false, bool saveRespawnTime=true)
 
void SpawnObject (ActivePoolData &spawns, uint32 limit, uint32 triggerFrom)
 
void RemoveRespawnTimeFromDB (ObjectGuid::LowType guid)
 
void Spawn1Object (PoolObject *obj)
 
void RemoveOneRelation (uint32 child_pool_id)
 
uint32 GetFirstEqualChancedObjectId ()
 
uint32 GetPoolId () const
 

Private Types

typedef std::vector< PoolObjectPoolObjectList
 

Private Attributes

uint32 poolId
 
PoolObjectList ExplicitlyChanced
 
PoolObjectList EqualChanced
 

Detailed Description

template<class T>
class PoolGroup< T >

Definition at line 65 of file PoolMgr.h.

Member Typedef Documentation

◆ PoolObjectList

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

Definition at line 67 of file PoolMgr.h.

Constructor & Destructor Documentation

◆ PoolGroup()

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

Definition at line 69 of file PoolMgr.h.

◆ ~PoolGroup()

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

Definition at line 71 of file PoolMgr.h.

Member Function Documentation

◆ AddEntry()

template<class T >
void PoolGroup< T >::AddEntry ( PoolObject poolitem,
uint32  maxentries 
)

Definition at line 109 of file PoolMgr.cpp.

+ Here is the caller graph for this function:

◆ CheckPool()

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

Definition at line 119 of file PoolMgr.cpp.

◆ Despawn1Object()

template<class T >
void PoolGroup< T >::Despawn1Object ( ObjectGuid::LowType  guid,
bool  alwaysDeleteRespawnTime = false,
bool  saveRespawnTime = true 
)

◆ DespawnAllObjects()

template<class T >
void PoolGroup< T >::DespawnAllObjects ( ActivePoolData spawns,
bool  alwaysDeleteRespawnTime = false 
)

Definition at line 147 of file PoolMgr.cpp.

◆ DespawnObject()

template<class T >
void PoolGroup< T >::DespawnObject ( ActivePoolData spawns,
ObjectGuid::LowType  guid,
bool  alwaysDeleteRespawnTime = false 
)

Definition at line 134 of file PoolMgr.cpp.

+ Here is the call graph for this function:

◆ GetFirstEqualChancedObjectId()

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

Definition at line 83 of file PoolMgr.h.

◆ GetPoolId()

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

Definition at line 89 of file PoolMgr.h.

◆ isEmpty()

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

Definition at line 72 of file PoolMgr.h.

◆ RemoveOneRelation()

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

◆ RemoveRespawnTimeFromDB()

template<class T >
void PoolGroup< T >::RemoveRespawnTimeFromDB ( ObjectGuid::LowType  guid)

◆ SetPoolId()

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

Definition at line 70 of file PoolMgr.h.

+ Here is the caller graph for this function:

◆ Spawn1Object()

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

◆ SpawnObject()

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

Definition at line 243 of file PoolMgr.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ EqualChanced

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

Definition at line 93 of file PoolMgr.h.

◆ ExplicitlyChanced

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

Definition at line 92 of file PoolMgr.h.

◆ poolId

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

Definition at line 91 of file PoolMgr.h.


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