TrinityCore
GameObjectAIFactory< REAL_GO_AI, is_db_allowed > Struct Template Reference

#include <GameObjectAIFactory.h>

+ Inheritance diagram for GameObjectAIFactory< REAL_GO_AI, is_db_allowed >:

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from FactoryHolder< GameObjectAI, GameObject >
typedef ObjectRegistry< FactoryHolder< GameObjectAI, GameObject, std::string >, std::string > FactoryHolderRegistry
 

Detailed Description

template<class REAL_GO_AI, bool is_db_allowed = true>
struct GameObjectAIFactory< REAL_GO_AI, is_db_allowed >

Definition at line 27 of file GameObjectAIFactory.h.

Constructor & Destructor Documentation

◆ GameObjectAIFactory()

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

Definition at line 29 of file GameObjectAIFactory.h.

Member Function Documentation

◆ Create()

template<class REAL_GO_AI , bool is_db_allowed = true>
GameObjectAI * GameObjectAIFactory< REAL_GO_AI, is_db_allowed >::Create ( GameObject object) const
inlineoverridevirtual

Abstract Factory create method.

Implements FactoryHolder< GameObjectAI, GameObject >.

Definition at line 32 of file GameObjectAIFactory.h.

+ Here is the call graph for this function:

◆ Permit()

template<class REAL_GO_AI , bool is_db_allowed = true>
int32 GameObjectAIFactory< REAL_GO_AI, is_db_allowed >::Permit ( GameObject const *  go) const
inlineoverridevirtual

Implements Permissible< GameObject >.

Definition at line 37 of file GameObjectAIFactory.h.


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