TrinityCore
SelectableAI< O, AI > Struct Template Reference

#include <SelectableAI.h>

+ Inheritance diagram for SelectableAI< O, AI >:

Public Member Functions

 SelectableAI (std::string const &name, uint32 scriptId, bool isDBAllowed)
 
bool IsScriptNameAllowedInDB () const final override
 
uint32 GetScriptId () const
 
- 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. More...
 
- Public Member Functions inherited from Permissible< O >
virtual ~Permissible ()
 
virtual int32 Permit (O const *) const=0
 
- Public Member Functions inherited from DBPermit
virtual ~DBPermit ()
 
virtual bool IsScriptNameAllowedInDB () const =0
 

Private Attributes

uint32 _scriptId
 
bool _isDBAllowed
 

Additional Inherited Members

- Public Types inherited from FactoryHolder< AI, O >
typedef ObjectRegistry< FactoryHolder< AI, O, std::string >, std::string > FactoryHolderRegistry
 

Detailed Description

template<class O, class AI>
struct SelectableAI< O, AI >

Definition at line 31 of file SelectableAI.h.

Constructor & Destructor Documentation

◆ SelectableAI()

template<class O , class AI >
SelectableAI< O, AI >::SelectableAI ( std::string const &  name,
uint32  scriptId,
bool  isDBAllowed 
)
inline

Definition at line 33 of file SelectableAI.h.

Member Function Documentation

◆ GetScriptId()

template<class O , class AI >
uint32 SelectableAI< O, AI >::GetScriptId ( ) const
inline

Definition at line 38 of file SelectableAI.h.

◆ IsScriptNameAllowedInDB()

template<class O , class AI >
bool SelectableAI< O, AI >::IsScriptNameAllowedInDB ( ) const
inlinefinaloverridevirtual

Implements DBPermit.

Definition at line 36 of file SelectableAI.h.

Member Data Documentation

◆ _isDBAllowed

template<class O , class AI >
bool SelectableAI< O, AI >::_isDBAllowed
private

Definition at line 42 of file SelectableAI.h.

◆ _scriptId

template<class O , class AI >
uint32 SelectableAI< O, AI >::_scriptId
private

Definition at line 41 of file SelectableAI.h.


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