34 if (creature->
IsPet())
44 if (!ai_factory && !ainame.empty())
56 else if (creature->IsGuard())
60 else if (creature->IsTotem())
62 else if (creature->IsTrigger())
64 if (creature->m_spells[0])
77 typedef CreatureAIRegistry::RegistryMapType RMT;
79 for (RMT::const_iterator iter = l.begin(); iter != l.end(); ++iter)
84 int val = p->
Permit(creature);
94 ainame = (ai_factory ==
NULL) ?
"NullCreatureAI" : ai_factory->
key();
96 TC_LOG_DEBUG(
"scripts",
"Creature %s (%s DB GUID: " UI64FMTD ") is using AI type: %s.", creature->GetName().c_str(), creature->GetGUID().ToString().c_str(), creature->GetSpawnId(), ainame.c_str());
virtual T * Create(void *data=NULL) const =0
Abstract Factory create method.
Definition: TemporarySummon.h:83
Definition: CreatureAIFactory.h:27
bool IsVehicle() const
Definition: Unit.h:1406
#define sCreatureAIRegistry
Definition: CreatureAIFactory.h:53
arena_t NULL
Definition: jemalloc_internal.h:624
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
#define UI64FMTD
Definition: Define.h:137
Definition: CreatureAI.h:68
bool IsPet() const
Definition: Unit.h:1403
virtual int Permit(const T *) const =0
Definition: ObjectGuid.h:33
uint32 HasUnitTypeMask(uint32 mask) const
Definition: Unit.h:1399
#define ASSERT
Definition: Errors.h:55
Definition: UpdateFields.h:135
#define sScriptMgr
Definition: ScriptMgr.h:837
Definition: PassiveAI.h:52
std::string GetAIName() const
Definition: Creature.cpp:2417
Key key() const
Definition: FactoryHolder.h:36