SimplePhysicsEntityType Class Reference

#include <SimplePhysicsEntityType.h>

Inherits EntityType.

Collaboration diagram for SimplePhysicsEntityType:

List of all members.


Public Member Functions

 SimplePhysicsEntityType (unsigned short entType)
virtual ~SimplePhysicsEntityType ()
oops::RigidBodygetRigidBody ()
void setRigidBody (oops::RigidBody *rigidBody)

Protected Member Functions

virtual EntitycreateInstanceAtLoadTime (unsigned short idOfEnv, unsigned short idInEnv)
virtual EntitycreateInstanceUnchecked (unsigned short instId, unsigned short idOfEnv, unsigned short idInEnv)

Protected Attributes

oops::RigidBodyrigidBody
 Physical representation used for Entities.

Friends

class SimplePhysicsEntity
class LinkedPhysicsEntityType
class SimplePhysicsEntityTypeFactory

Detailed Description

EntityType-class for SimplePhysicsEntity. This class is the EntityType managing the creation and destruction of SimplePhysicsEntities.

Constructor & Destructor Documentation

SimplePhysicsEntityType::SimplePhysicsEntityType ( unsigned short  entType  ) 

Constructor initializes the EntityType.

SimplePhysicsEntityType::~SimplePhysicsEntityType (  )  [virtual]

Empty Destructor


Member Function Documentation

Entity * SimplePhysicsEntityType::createInstanceAtLoadTime ( unsigned short  idOfEnv,
unsigned short  idInEnv 
) [protected, virtual]

Creates a new instance of itself at load time. The method creates a new SimplePhysicsEntityEntity instance where the instanceId is requested from the loadTimeEntityIdPool. The physical representation is cloned and stored in the new SimplePhysicsEntity.

Parameters:
idOfEnv ID of the destination Environment
idInEnv ID of the Entity in the Environment
Returns:
new Entity instance of the current EntityType

Reimplemented from EntityType.

Entity * SimplePhysicsEntityType::createInstanceUnchecked ( unsigned short  instId,
unsigned short  idOfEnv,
unsigned short  idInEnv 
) [protected, virtual]

Creates a new instance of itself with the passed IDs. The method creates a new Entity instance with the passed IDs. The physical representation is cloned and stored in the new SimplePhysicsEntity.

Parameters:
instId ID of the Entity instance
idOfEnv ID of the destination Environment
idInEnv ID of the Entity in the Environment
Returns:
new Entity instance of the current EntityType

Reimplemented from EntityType.

RigidBody * SimplePhysicsEntityType::getRigidBody (  ) 

void SimplePhysicsEntityType::setRigidBody ( oops::RigidBody rigidBody  ) 


Friends And Related Function Documentation

friend class LinkedPhysicsEntityType [friend]

friend class SimplePhysicsEntity [friend]

friend class SimplePhysicsEntityTypeFactory [friend]


Member Data Documentation

Physical representation used for Entities.


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