A base factory type for the creation of Debris objects. More...
#include <debris.h>
Public Member Functions | |
DebrisFactory () | |
Class constructor. | |
virtual | ~DebrisFactory () |
Class destructor. | |
virtual Debris * | CreateDebris (const String &Name, World *TheWorld, const NameValuePairMap &Params)=0 |
Creates a Debris of the type represented by this factory. More... | |
virtual Debris * | CreateDebris (const XML::Node &XMLNode, World *TheWorld)=0 |
Creates a Debris from XML. More... | |
virtual void | DestroyDebris (Debris *ToBeDestroyed)=0 |
Destroys a Debris created by this factory. More... | |
virtual String | GetTypeName () const =0 |
Gets the name of the Debris that is created by this factory. More... | |
|
pure virtual |
Creates a Debris of the type represented by this factory.
Name | The name to be given to this object. |
TheWorld | A pointer to the world this object belongs to. |
Params | A NameValuePairList containing the params to be applied during construction. |
Implemented in Mezzanine::RigidDebrisFactory, and Mezzanine::SoftDebrisFactory.
|
pure virtual |
XMLNode | The node of the xml document to construct from. |
TheWorld | A pointer to the world this object belongs to. |
Implemented in Mezzanine::RigidDebrisFactory, and Mezzanine::SoftDebrisFactory.
|
pure virtual |
Destroys a Debris created by this factory.
ToBeDestroyed | A pointer to the Debris to be destroyed. |
Implemented in Mezzanine::RigidDebrisFactory, and Mezzanine::SoftDebrisFactory.
|
pure virtual |
Gets the name of the Debris that is created by this factory.
Implemented in Mezzanine::RigidDebrisFactory, and Mezzanine::SoftDebrisFactory.