TrinityCore
SummonList Class Reference

#include <ScriptedCreature.h>

Public Types

typedef GuidList StorageType
 
typedef StorageType::iterator iterator
 
typedef StorageType::const_iterator const_iterator
 
typedef StorageType::size_type size_type
 
typedef StorageType::value_type value_type
 

Public Member Functions

 SummonList (Creature *creature)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator i)
 
bool empty () const
 
size_type size () const
 
void clear ()
 
void Summon (Creature const *summon)
 
void Despawn (Creature const *summon)
 
void DespawnEntry (uint32 entry)
 
void DespawnAll ()
 
template<typename T >
void DespawnIf (T const &predicate)
 
template<class Predicate >
void DoAction (int32 info, Predicate &&predicate, uint16 max=0)
 
void DoZoneInCombat (uint32 entry=0)
 
void RemoveNotExisting ()
 
bool HasEntry (uint32 entry) const
 

Private Member Functions

void DoActionImpl (int32 action, StorageType &summons, uint16 max)
 

Private Attributes

Creature_me
 
StorageType _storage
 

Detailed Description

Definition at line 31 of file ScriptedCreature.h.

Member Typedef Documentation

◆ const_iterator

typedef StorageType::const_iterator SummonList::const_iterator

Definition at line 36 of file ScriptedCreature.h.

◆ iterator

typedef StorageType::iterator SummonList::iterator

Definition at line 35 of file ScriptedCreature.h.

◆ size_type

typedef StorageType::size_type SummonList::size_type

Definition at line 37 of file ScriptedCreature.h.

◆ StorageType

Definition at line 34 of file ScriptedCreature.h.

◆ value_type

typedef StorageType::value_type SummonList::value_type

Definition at line 38 of file ScriptedCreature.h.

Constructor & Destructor Documentation

◆ SummonList()

SummonList::SummonList ( Creature creature)
inlineexplicit

Definition at line 40 of file ScriptedCreature.h.

Member Function Documentation

◆ begin() [1/2]

iterator SummonList::begin ( )
inline

Definition at line 45 of file ScriptedCreature.h.

+ Here is the caller graph for this function:

◆ begin() [2/2]

const_iterator SummonList::begin ( ) const
inline

Definition at line 50 of file ScriptedCreature.h.

◆ clear()

void SummonList::clear ( )
inline

Definition at line 81 of file ScriptedCreature.h.

+ Here is the caller graph for this function:

◆ Despawn()

void SummonList::Despawn ( Creature const *  summon)

Definition at line 42 of file ScriptedCreature.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DespawnAll()

void SummonList::DespawnAll ( )

Definition at line 78 of file ScriptedCreature.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DespawnEntry()

void SummonList::DespawnEntry ( uint32  entry)

Definition at line 61 of file ScriptedCreature.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DespawnIf()

template<typename T >
void SummonList::DespawnIf ( T const &  predicate)
inline

Definition at line 92 of file ScriptedCreature.h.

+ Here is the caller graph for this function:

◆ DoAction()

template<class Predicate >
void SummonList::DoAction ( int32  info,
Predicate &&  predicate,
uint16  max = 0 
)
inline

Definition at line 98 of file ScriptedCreature.h.

+ Here is the caller graph for this function:

◆ DoActionImpl()

void SummonList::DoActionImpl ( int32  action,
StorageType summons,
uint16  max 
)
private

Definition at line 112 of file ScriptedCreature.cpp.

+ Here is the call graph for this function:

◆ DoZoneInCombat()

void SummonList::DoZoneInCombat ( uint32  entry = 0)

Definition at line 47 of file ScriptedCreature.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ empty()

bool SummonList::empty ( ) const
inline

Definition at line 70 of file ScriptedCreature.h.

+ Here is the caller graph for this function:

◆ end() [1/2]

iterator SummonList::end ( )
inline

Definition at line 55 of file ScriptedCreature.h.

+ Here is the caller graph for this function:

◆ end() [2/2]

const_iterator SummonList::end ( ) const
inline

Definition at line 60 of file ScriptedCreature.h.

◆ erase()

iterator SummonList::erase ( iterator  i)
inline

Definition at line 65 of file ScriptedCreature.h.

+ Here is the caller graph for this function:

◆ HasEntry()

bool SummonList::HasEntry ( uint32  entry) const

Definition at line 100 of file ScriptedCreature.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveNotExisting()

void SummonList::RemoveNotExisting ( )

Definition at line 89 of file ScriptedCreature.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ size()

size_type SummonList::size ( ) const
inline

Definition at line 75 of file ScriptedCreature.h.

+ Here is the caller graph for this function:

◆ Summon()

void SummonList::Summon ( Creature const *  summon)

Definition at line 37 of file ScriptedCreature.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _me

Creature* SummonList::_me
private

Definition at line 113 of file ScriptedCreature.h.

◆ _storage

StorageType SummonList::_storage
private

Definition at line 114 of file ScriptedCreature.h.


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