EntityTypeFactory Class Reference

#include <EntityTypeFactory.h>

Inherits ClassFactory< EntityType, unsigned short >.

Inherited by ArticulatedPhysicsEntityTypeFactory, Physics2DEntityTypeFactory, and SimplePhysicsEntityTypeFactory.

Collaboration diagram for EntityTypeFactory:

List of all members.


Public Member Functions

virtual EntityTypecreate (std::string className, unsigned short id)
virtual bool parseXML (EntityType *entType, const XmlElement *element)

Member Function Documentation

EntityType * EntityTypeFactory::create ( std::string  className,
unsigned short  id 
) [virtual]

Creates a new object of class type EntityType if the passed className is EntityType.

Parameters:
className className of the desired object
args arguments passed to the factory
Returns:
new EntityType object if matching to className, NULL otherwise

Implements ClassFactory< EntityType, unsigned short >.

Reimplemented in SimplePhysicsEntityTypeFactory.

bool EntityTypeFactory::parseXML ( EntityType entType,
const XmlElement element 
) [virtual]

Parses the implementationClass-section in the XML-configuration file. This can be used to parse EntityType specific information.

Parameters:
entType EntityType that should be configured
xml IrrXMLReader to read from
Returns:
true if no error occured

Reimplemented in SimplePhysicsEntityTypeFactory.


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

Generated on Wed Oct 20 16:11:56 2010 for inVRs by doxygen 1.5.8