TrinityCore
Loading...
Searching...
No Matches
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
 
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< T, O, Key >
 FactoryHolder (Key const &k)
 
virtual ~FactoryHolder ()
 
void RegisterSelf ()
 
virtual T * Create (O *object=nullptr) const =0
 Abstract Factory create method.
 
- Public Member Functions inherited from Permissible< T >
virtual ~Permissible ()
 
virtual int32 Permit (T const *) const =0
 
- Public Member Functions inherited from DBPermit
virtual ~DBPermit ()
 

Additional Inherited Members

- Public Types inherited from FactoryHolder< T, O, Key >
typedef ObjectRegistry< FactoryHolder< T, O, Key >, Key > FactoryHolderRegistry
 

Detailed Description

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

Definition at line 28 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 30 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 c) const
inlineoverride

Definition at line 33 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
inlineoverride

Definition at line 38 of file CreatureAIFactory.h.


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