AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MovementGeneratorFactory< Movement > Struct Template Reference

#include "MovementGenerator.h"

Inheritance diagram for MovementGeneratorFactory< Movement >:
FactoryHolder< T, O, Key >

Public Member Functions

 MovementGeneratorFactory (MovementGeneratorType movementGeneratorType)
 
MovementGeneratorCreate (Unit *) const
 
- Public Member Functions inherited from FactoryHolder< T, O, Key >
 FactoryHolder (Key const &k)
 
virtual ~FactoryHolder ()
 
void RegisterSelf ()
 
virtual T * Create (O *object=nullptr) const =0
 Abstract Factory create method. More...
 

Additional Inherited Members

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

Detailed Description

template<class Movement>
struct MovementGeneratorFactory< Movement >

Constructor & Destructor Documentation

◆ MovementGeneratorFactory()

template<class Movement >
MovementGeneratorFactory< Movement >::MovementGeneratorFactory ( MovementGeneratorType  movementGeneratorType)
inline
90: MovementGeneratorCreator(movementGeneratorType) { }
FactoryHolder< MovementGenerator, Unit, MovementGeneratorType > MovementGeneratorCreator
Definition: MovementGenerator.h:85

Member Function Documentation

◆ Create()

template<class Movement >
MovementGenerator * MovementGeneratorFactory< Movement >::Create ( Unit ) const
inline
93 {
94 return new Movement();
95 }
Definition: Unit.h:257