SimplePhysicsEntityTypeFactory Class Reference

#include <SimplePhysicsEntityTypeFactory.h>

Inherits EntityTypeFactory.

Collaboration diagram for SimplePhysicsEntityTypeFactory:

List of all members.


Public Member Functions

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

Protected Attributes

oops::XMLLoaderxmlLoader

Detailed Description

Factory class for SimplePhysicsEntityType. This class is used as factory for the SimplePhysicsEntityType class. It creates a new SimplePhysicsEntityType instance and configures it in the parseXML-method.

Constructor & Destructor Documentation

SimplePhysicsEntityTypeFactory::SimplePhysicsEntityTypeFactory ( oops::XMLLoader xmlLoader  ) 


Member Function Documentation

EntityType * SimplePhysicsEntityTypeFactory::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

Reimplemented from EntityTypeFactory.

bool SimplePhysicsEntityTypeFactory::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 from EntityTypeFactory.


Member Data Documentation


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

Generated on Wed Oct 20 16:12:00 2010 for inVRs by doxygen 1.5.8