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

#include <MovementGenerator.h>

Public Member Functions

 MovementGeneratorFactory (MovementGeneratorType mgt)
 
MovementGeneratorCreate (void *) const override
 Abstract Factory create method. More...
 
- Public Member Functions inherited from SelectableMovement
 SelectableMovement (MovementGeneratorType mgt)
 
- Public Member Functions inherited from FactoryHolder< MovementGenerator, MovementGeneratorType >
 FactoryHolder (MovementGeneratorTypek)
 
virtual ~FactoryHolder ()
 
MovementGeneratorType key () const
 
void RegisterSelf (void)
 
void DeregisterSelf (void)
 

Additional Inherited Members

- Public Types inherited from FactoryHolder< MovementGenerator, MovementGeneratorType >
typedef ObjectRegistry
< FactoryHolder
< MovementGenerator,
MovementGeneratorType >
, MovementGeneratorType
FactoryHolderRegistry
 

Constructor & Destructor Documentation

template<class REAL_MOVEMENT >
MovementGeneratorFactory< REAL_MOVEMENT >::MovementGeneratorFactory ( MovementGeneratorType  mgt)
inline
87 : SelectableMovement(mgt) { }
SelectableMovement(MovementGeneratorType mgt)
Definition: MovementGenerator.h:81

Member Function Documentation

template<class MOVEMENT_GEN >
MovementGenerator * MovementGeneratorFactory< MOVEMENT_GEN >::Create ( void *  data) const
inlineoverridevirtual

Abstract Factory create method.

Implements FactoryHolder< MovementGenerator, MovementGeneratorType >.

27 {
28  return (new MOVEMENT_GEN());
29 }

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