TrinityCore
SpawnedPoolData Class Reference

#include <PoolMgr.h>

Public Member Functions

 SpawnedPoolData (Map *owner)
 
 ~SpawnedPoolData ()
 
 SpawnedPoolData (SpawnedPoolData const &right)=delete
 
 SpawnedPoolData (SpawnedPoolData &&right)=delete
 
SpawnedPoolDataoperator= (SpawnedPoolData const &right)=delete
 
SpawnedPoolDataoperator= (SpawnedPoolData &&right)=delete
 
MapGetMap () const
 
template<typename T >
bool IsSpawnedObject (uint64 db_guid_or_pool_id) const
 
bool IsSpawnedObject (SpawnObjectType type, uint64 db_guid_or_pool_id) const
 
uint32 GetSpawnedObjects (uint32 pool_id) const
 
template<typename T >
void AddSpawn (uint64 db_guid_or_pool_id, uint32 pool_id)
 
template<typename T >
void RemoveSpawn (uint64 db_guid_or_pool_id, uint32 pool_id)
 
template<>
TC_GAME_API bool IsSpawnedObject (uint64 db_guid) const
 
template<>
TC_GAME_API bool IsSpawnedObject (uint64 db_guid) const
 
template<>
TC_GAME_API bool IsSpawnedObject (uint64 sub_pool_id) const
 
template<>
void AddSpawn (uint64 db_guid, uint32 pool_id)
 
template<>
void AddSpawn (uint64 db_guid, uint32 pool_id)
 
template<>
void AddSpawn (uint64 sub_pool_id, uint32 pool_id)
 
template<>
void RemoveSpawn (uint64 db_guid, uint32 pool_id)
 
template<>
void RemoveSpawn (uint64 db_guid, uint32 pool_id)
 
template<>
void RemoveSpawn (uint64 sub_pool_id, uint32 pool_id)
 

Private Attributes

MapmOwner
 
SpawnedPoolObjects mSpawnedCreatures
 
SpawnedPoolObjects mSpawnedGameobjects
 
SpawnedPoolPools mSpawnedPools
 

Detailed Description

Definition at line 54 of file PoolMgr.h.

Constructor & Destructor Documentation

◆ SpawnedPoolData() [1/3]

SpawnedPoolData::SpawnedPoolData ( Map owner)
explicit

Definition at line 35 of file PoolMgr.cpp.

◆ ~SpawnedPoolData()

SpawnedPoolData::~SpawnedPoolData ( )
default

◆ SpawnedPoolData() [2/3]

SpawnedPoolData::SpawnedPoolData ( SpawnedPoolData const &  right)
delete

◆ SpawnedPoolData() [3/3]

SpawnedPoolData::SpawnedPoolData ( SpawnedPoolData &&  right)
delete

Member Function Documentation

◆ AddSpawn() [1/4]

template<>
void SpawnedPoolData::AddSpawn ( uint64  db_guid,
uint32  pool_id 
)

Definition at line 80 of file PoolMgr.cpp.

◆ AddSpawn() [2/4]

template<>
void SpawnedPoolData::AddSpawn ( uint64  db_guid,
uint32  pool_id 
)

Definition at line 87 of file PoolMgr.cpp.

◆ AddSpawn() [3/4]

template<typename T >
void SpawnedPoolData::AddSpawn ( uint64  db_guid_or_pool_id,
uint32  pool_id 
)
+ Here is the caller graph for this function:

◆ AddSpawn() [4/4]

template<>
void SpawnedPoolData::AddSpawn ( uint64  sub_pool_id,
uint32  pool_id 
)

Definition at line 94 of file PoolMgr.cpp.

◆ GetMap()

Map * SpawnedPoolData::GetMap ( ) const
inline

Definition at line 65 of file PoolMgr.h.

◆ GetSpawnedObjects()

uint32 SpawnedPoolData::GetSpawnedObjects ( uint32  pool_id) const

Definition at line 39 of file PoolMgr.cpp.

+ Here is the caller graph for this function:

◆ IsSpawnedObject() [1/5]

bool SpawnedPoolData::IsSpawnedObject ( SpawnObjectType  type,
uint64  db_guid_or_pool_id 
) const

Definition at line 66 of file PoolMgr.cpp.

◆ IsSpawnedObject() [2/5]

template<>
TC_GAME_API bool SpawnedPoolData::IsSpawnedObject ( uint64  db_guid) const

Definition at line 47 of file PoolMgr.cpp.

◆ IsSpawnedObject() [3/5]

template<>
TC_GAME_API bool SpawnedPoolData::IsSpawnedObject ( uint64  db_guid) const

Definition at line 54 of file PoolMgr.cpp.

◆ IsSpawnedObject() [4/5]

template<typename T >
bool SpawnedPoolData::IsSpawnedObject ( uint64  db_guid_or_pool_id) const
+ Here is the caller graph for this function:

◆ IsSpawnedObject() [5/5]

template<>
TC_GAME_API bool SpawnedPoolData::IsSpawnedObject ( uint64  sub_pool_id) const

Definition at line 61 of file PoolMgr.cpp.

◆ operator=() [1/2]

SpawnedPoolData & SpawnedPoolData::operator= ( SpawnedPoolData &&  right)
delete

◆ operator=() [2/2]

SpawnedPoolData & SpawnedPoolData::operator= ( SpawnedPoolData const &  right)
delete

◆ RemoveSpawn() [1/4]

template<>
void SpawnedPoolData::RemoveSpawn ( uint64  db_guid,
uint32  pool_id 
)

Definition at line 101 of file PoolMgr.cpp.

◆ RemoveSpawn() [2/4]

template<>
void SpawnedPoolData::RemoveSpawn ( uint64  db_guid,
uint32  pool_id 
)

Definition at line 110 of file PoolMgr.cpp.

◆ RemoveSpawn() [3/4]

template<typename T >
void SpawnedPoolData::RemoveSpawn ( uint64  db_guid_or_pool_id,
uint32  pool_id 
)
+ Here is the caller graph for this function:

◆ RemoveSpawn() [4/4]

template<>
void SpawnedPoolData::RemoveSpawn ( uint64  sub_pool_id,
uint32  pool_id 
)

Definition at line 119 of file PoolMgr.cpp.

Member Data Documentation

◆ mOwner

Map* SpawnedPoolData::mOwner
private

Definition at line 80 of file PoolMgr.h.

◆ mSpawnedCreatures

SpawnedPoolObjects SpawnedPoolData::mSpawnedCreatures
private

Definition at line 81 of file PoolMgr.h.

◆ mSpawnedGameobjects

SpawnedPoolObjects SpawnedPoolData::mSpawnedGameobjects
private

Definition at line 82 of file PoolMgr.h.

◆ mSpawnedPools

SpawnedPoolPools SpawnedPoolData::mSpawnedPools
private

Definition at line 83 of file PoolMgr.h.


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