#include <ScriptedCreature.h>
SummonList::SummonList |
( |
Creature * |
creature | ) |
|
|
inlineexplicit |
Creature * me
Definition: ScriptedCreature.h:122
StorageType storage_
Definition: ScriptedCreature.h:123
StorageType storage_
Definition: ScriptedCreature.h:123
93 {
storage_.remove(summon->GetGUID()); }
StorageType storage_
Definition: ScriptedCreature.h:123
void SummonList::DespawnAll |
( |
| ) |
|
void DespawnOrUnsummon(uint32 msTimeToDespawn=0)
Definition: Creature.cpp:1774
Creature * me
Definition: ScriptedCreature.h:122
StorageType storage_
Definition: ScriptedCreature.h:123
Definition: Creature.h:467
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
void SummonList::DespawnEntry |
( |
uint32 |
entry | ) |
|
56 else if (summon->
GetEntry() == entry)
void DespawnOrUnsummon(uint32 msTimeToDespawn=0)
Definition: Creature.cpp:1774
Creature * me
Definition: ScriptedCreature.h:122
StorageType storage_
Definition: ScriptedCreature.h:123
Definition: Creature.h:467
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
uint32 GetEntry() const
Definition: Object.h:107
template<typename T >
void SummonList::DespawnIf |
( |
T const & |
predicate | ) |
|
|
inline |
StorageType storage_
Definition: ScriptedCreature.h:123
template<class Predicate >
void SummonList::DoAction |
( |
int32 |
info, |
|
|
Predicate & |
predicate, |
|
|
uint16 |
max = 0 |
|
) |
| |
|
inline |
108 Trinity::Containers::RandomResizeList<ObjectGuid, Predicate>(listCopy, predicate,
max);
109 for (StorageType::iterator i = listCopy.begin(); i != listCopy.end(); )
Creature * me
Definition: ScriptedCreature.h:122
StorageType storage_
Definition: ScriptedCreature.h:123
Definition: Creature.h:467
bool IsAIEnabled
Definition: Unit.h:2161
GuidList StorageType
Definition: ScriptedCreature.h:44
T max(const T &x, const T &y)
Definition: g3dmath.h:320
CreatureAI * AI() const
Definition: Creature.h:525
virtual void DoAction(int32)
Definition: UnitAI.h:138
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
void SummonList::DoZoneInCombat |
( |
uint32 |
entry = 0 | ) |
|
42 && (!entry || summon->
GetEntry() == entry))
Creature * me
Definition: ScriptedCreature.h:122
void DoZoneInCombat(Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
Definition: CreatureAI.cpp:47
StorageType storage_
Definition: ScriptedCreature.h:123
Definition: Creature.h:467
bool IsAIEnabled
Definition: Unit.h:2161
CreatureAI * AI() const
Definition: Creature.h:525
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
uint32 GetEntry() const
Definition: Object.h:107
bool SummonList::empty |
( |
| ) |
const |
|
inline |
StorageType storage_
Definition: ScriptedCreature.h:123
StorageType storage_
Definition: ScriptedCreature.h:123
StorageType storage_
Definition: ScriptedCreature.h:123
StorageType storage_
Definition: ScriptedCreature.h:123
90 for (StorageType::const_iterator i =
storage_.begin(); i !=
storage_.end(); ++i)
93 if (summon && summon->
GetEntry() == entry)
Creature * me
Definition: ScriptedCreature.h:122
StorageType storage_
Definition: ScriptedCreature.h:123
Definition: Creature.h:467
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
uint32 GetEntry() const
Definition: Object.h:107
void SummonList::RemoveNotExisting |
( |
| ) |
|
Creature * me
Definition: ScriptedCreature.h:122
StorageType storage_
Definition: ScriptedCreature.h:123
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
StorageType storage_
Definition: ScriptedCreature.h:123
92 {
storage_.push_back(summon->GetGUID()); }
StorageType storage_
Definition: ScriptedCreature.h:123
The documentation for this class was generated from the following files: