19#include <vlutil/vlString.h>
24class DtReaderWriterRegistry;
87 const char* type,
const DtString& name, DtReaderWriterRegistry*
const parentRegistry = NULL);
virtual void addCreatorFcn(const std::string &type, DtProjectileCreatorFcn fcn)
Registers a projectile creation function with the factory.
DtProjectileFactory()
Default constructor.
const DtProjectileFactory & operator=(const DtProjectileFactory &orig)
Assignment operator.
DtProjectileFactory(const DtProjectileFactory &orig)
Copy constructor.
virtual DtProjectile * createProjectile(const char *type, const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL)
Creates a projectile instance of the specified type.
virtual ~DtProjectileFactory()
Virtual destructor.
std::map< std::string, DtProjectileCreatorFcn > myProjectileCreatorMap
Map of projectile types to their creator functions.
Definition projectileFactory.h:95
Class representing ballistic projectiles in simulations.
Definition projectile.h:42
Export macros for the VREngage Object Core library.
#define VREVRFOBJCORE_DLL
Platform-specific DLL export/import declaration.
Definition export.h:27
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
DtProjectile *(*)(const DtString &name, DtReaderWriterRegistry *const parentRegistry) DtProjectileCreatorFcn
Function pointer type for projectile creation functions.
Definition projectileFactory.h:34