Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
SummonList Class Reference

#include <ScriptedCreature.h>

Collaboration diagram for SummonList:

Public Types

typedef StorageType::const_iterator const_iterator
typedef StorageType::iterator iterator
typedef StorageType::size_type size_type
typedef std::list< uint64StorageType
typedef StorageType::value_type value_type

Public Member Functions

iterator begin ()
const_iterator begin () const
void Despawn (Creature const *summon)
void DespawnAll ()
void DespawnEntry (uint32 entry)
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)
bool empty () const
iterator end ()
const_iterator end () const
iterator erase (iterator i)
bool HasEntry (uint32 entry) const
void RemoveNotExisting ()
size_type size () const
void Summon (Creature const *summon)
 SummonList (Creature *creature)

Private Attributes

Creatureme
StorageType storage_

Detailed Description

Definition at line 18 of file ScriptedCreature.h.

Member Typedef Documentation

◆ const_iterator

typedef StorageType::const_iterator SummonList::const_iterator

Definition at line 23 of file ScriptedCreature.h.

◆ iterator

typedef StorageType::iterator SummonList::iterator

Definition at line 22 of file ScriptedCreature.h.

◆ size_type

typedef StorageType::size_type SummonList::size_type

Definition at line 24 of file ScriptedCreature.h.

◆ StorageType

typedef std::list<uint64> SummonList::StorageType

Definition at line 21 of file ScriptedCreature.h.

◆ value_type

typedef StorageType::value_type SummonList::value_type

Definition at line 25 of file ScriptedCreature.h.

Constructor & Destructor Documentation

◆ SummonList()

SummonList::SummonList ( Creature * creature)
inlineexplicit

Definition at line 27 of file ScriptedCreature.h.

References me.

Member Function Documentation

◆ begin() [1/2]

iterator SummonList::begin ( )
inline

Definition at line 34 of file ScriptedCreature.h.

References storage_.

◆ begin() [2/2]

const_iterator SummonList::begin ( ) const
inline

Definition at line 39 of file ScriptedCreature.h.

References storage_.

◆ Despawn()

void SummonList::Despawn ( Creature const * summon)
inline

Definition at line 73 of file ScriptedCreature.h.

References Object::GetGUID(), and storage_.

◆ DespawnAll()

void SummonList::DespawnAll ( )

Definition at line 51 of file ScriptedCreature.cpp.

References Creature::DespawnOrUnsummon(), Unit::GetCreature(), me, and storage_.

◆ DespawnEntry()

void SummonList::DespawnEntry ( uint32 entry)

◆ DespawnIf()

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

Definition at line 81 of file ScriptedCreature.h.

References storage_.

◆ DoAction()

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

◆ DoZoneInCombat()

void SummonList::DoZoneInCombat ( uint32 entry = 0)

◆ empty()

bool SummonList::empty ( ) const
inline

Definition at line 59 of file ScriptedCreature.h.

References storage_.

◆ end() [1/2]

iterator SummonList::end ( )
inline

Definition at line 44 of file ScriptedCreature.h.

References storage_.

◆ end() [2/2]

const_iterator SummonList::end ( ) const
inline

Definition at line 49 of file ScriptedCreature.h.

References storage_.

◆ erase()

iterator SummonList::erase ( iterator i)
inline

Definition at line 54 of file ScriptedCreature.h.

References storage_.

◆ HasEntry()

bool SummonList::HasEntry ( uint32 entry) const

Definition at line 73 of file ScriptedCreature.cpp.

References Unit::GetCreature(), Object::GetEntry(), me, and storage_.

◆ RemoveNotExisting()

void SummonList::RemoveNotExisting ( )

Definition at line 62 of file ScriptedCreature.cpp.

References Unit::GetCreature(), me, and storage_.

◆ size()

size_type SummonList::size ( ) const
inline

Definition at line 64 of file ScriptedCreature.h.

References storage_.

◆ Summon()

void SummonList::Summon ( Creature const * summon)
inline

Definition at line 69 of file ScriptedCreature.h.

References Object::GetGUID(), and storage_.

Referenced by at_kelthuzad_center::OnTrigger().

Member Data Documentation

◆ me

Creature* SummonList::me
private

◆ storage_


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