TrinityCore
CreatureAIFactory< REAL_AI, is_db_allowed > Struct Template Reference

#include <CreatureAIFactory.h>

+ Inheritance diagram for CreatureAIFactory< REAL_AI, is_db_allowed >:

Public Member Functions

 CreatureAIFactory (std::string const &name)
 
CreatureAICreate (Creature *c) const override
 Abstract Factory create method. More...
 
int32 Permit (Creature const *c) const override
 
- Public Member Functions inherited from SelectableAI< Creature, CreatureAI >
 SelectableAI (std::string const &name, uint32 scriptId, bool isDBAllowed)
 
bool IsScriptNameAllowedInDB () const final override
 
uint32 GetScriptId () const
 
- Public Member Functions inherited from FactoryHolder< CreatureAI, Creature >
 FactoryHolder (std::string const &k)
 
virtual ~FactoryHolder ()
 
void RegisterSelf ()
 
virtual CreatureAICreate (Creature *object=nullptr) const=0
 Abstract Factory create method. More...
 
- Public Member Functions inherited from Permissible< Creature >
virtual ~Permissible ()
 
virtual int32 Permit (Creature const *) const=0
 
- Public Member Functions inherited from DBPermit
virtual ~DBPermit ()
 
virtual bool IsScriptNameAllowedInDB () const =0
 

Additional Inherited Members

- Public Types inherited from FactoryHolder< CreatureAI, Creature >
typedef ObjectRegistry< FactoryHolder< CreatureAI, Creature, std::string >, std::string > FactoryHolderRegistry
 

Detailed Description

template<class REAL_AI, bool is_db_allowed = true>
struct CreatureAIFactory< REAL_AI, is_db_allowed >

Definition at line 29 of file CreatureAIFactory.h.

Constructor & Destructor Documentation

◆ CreatureAIFactory()

template<class REAL_AI , bool is_db_allowed = true>
CreatureAIFactory< REAL_AI, is_db_allowed >::CreatureAIFactory ( std::string const &  name)
inline

Definition at line 31 of file CreatureAIFactory.h.

Member Function Documentation

◆ Create()

template<class REAL_AI , bool is_db_allowed = true>
CreatureAI * CreatureAIFactory< REAL_AI, is_db_allowed >::Create ( Creature object) const
inlineoverridevirtual

Abstract Factory create method.

Implements FactoryHolder< CreatureAI, Creature >.

Definition at line 34 of file CreatureAIFactory.h.

+ Here is the call graph for this function:

◆ Permit()

template<class REAL_AI , bool is_db_allowed = true>
int32 CreatureAIFactory< REAL_AI, is_db_allowed >::Permit ( Creature const *  c) const
inlineoverridevirtual

Implements Permissible< Creature >.

Definition at line 39 of file CreatureAIFactory.h.


The documentation for this struct was generated from the following file: