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< O, AI, is_db_allowed >
 SelectableAI (std::string const &name)
 
bool IsScriptNameAllowedInDB () const final override
 
- Public Member Functions inherited from FactoryHolder< AI, O >
 FactoryHolder (std::string const &k)
 
virtual ~FactoryHolder ()
 
void RegisterSelf ()
 
virtual AI * Create (O *object=nullptr) const=0
 Abstract Factory create method.
 
- Public Member Functions inherited from Permissible< O >
virtual ~Permissible ()
 
virtual int32 Permit (O const *) const=0
 
- Public Member Functions inherited from DBPermit
virtual ~DBPermit ()
 

Additional Inherited Members

- Public Types inherited from FactoryHolder< AI, O >
typedef ObjectRegistry< FactoryHolder< AI, O, 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 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 32 of file CreatureAIFactory.h.

◆ 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 37 of file CreatureAIFactory.h.


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