TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GameObjectAIFactory< REAL_GO_AI > Struct Template Reference

#include <CreatureAIFactory.h>

Public Member Functions

 GameObjectAIFactory (const char *name)
 
GameObjectAICreate (void *) const override
 Abstract Factory create method. More...
 
int Permit (const GameObject *g) const override
 
- Public Member Functions inherited from SelectableGameObjectAI
 SelectableGameObjectAI (const char *id)
 
- Public Member Functions inherited from FactoryHolder< GameObjectAI >
 FactoryHolder (Key k)
 
virtual ~FactoryHolder ()
 
Key key () const
 
void RegisterSelf (void)
 
void DeregisterSelf (void)
 
- Public Member Functions inherited from Permissible< GameObject >
virtual ~Permissible ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

template<class REAL_GO_AI >
GameObjectAIFactory< REAL_GO_AI >::GameObjectAIFactory ( const char *  name)
inline
64 : SelectableGameObjectAI(name) { }
SelectableGameObjectAI(const char *id)
Definition: CreatureAIFactory.h:58

Member Function Documentation

template<class REAL_GO_AI >
GameObjectAI * GameObjectAIFactory< REAL_GO_AI >::Create ( void *  data) const
inlineoverridevirtual

Abstract Factory create method.

Implements FactoryHolder< GameObjectAI >.

74 {
75  GameObject* go = reinterpret_cast<GameObject*>(data);
76  return (new REAL_GO_AI(go));
77 }
Definition: GameObject.h:880
template<class REAL_GO_AI >
int GameObjectAIFactory< REAL_GO_AI >::Permit ( const GameObject g) const
inlineoverridevirtual

Implements Permissible< GameObject >.

68 { return REAL_GO_AI::Permissible(g); }

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