EntityComponent Class Reference

Abstraction base class for adding new functionalities to entities. More...

Inheritance diagram for EntityComponent:

Inheritance graph
[legend]
Collaboration diagram for EntityComponent:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 EntityComponent (Entity *parent)
 Constructor.
virtual ~EntityComponent ()
 Deconstructor.
u32 getID () const
 Gets the ID of this component.
const std::string & getName () const
 Gets the name of this component.
const EntitygetParent ()
 Gets the parent of this component.
void setName (const std::string &name)
 Sets the name of this component.

Protected Attributes

EntitypParent
u32 mID
std::string mName


Detailed Description

Abstraction base class for adding new functionalities to entities.

Definition at line 30 of file EntityComponent.h.


Constructor & Destructor Documentation

EntityComponent::EntityComponent ( Entity parent  ) 

Constructor.

Parameters:
parent Pointer to parent Entity.

Definition at line 26 of file EntityComponent.cpp.

EntityComponent::~EntityComponent (  )  [virtual]

Deconstructor.

Definition at line 47 of file EntityComponent.cpp.


Member Function Documentation

u32 EntityComponent::getID (  )  const

Gets the ID of this component.

Definition at line 54 of file EntityComponent.cpp.

const std::string & EntityComponent::getName (  )  const

Gets the name of this component.

Definition at line 66 of file EntityComponent.cpp.

const Entity * EntityComponent::getParent (  ) 

Gets the parent of this component.

Definition at line 72 of file EntityComponent.cpp.

void EntityComponent::setName ( const std::string &  name  ) 

Sets the name of this component.

Definition at line 60 of file EntityComponent.cpp.


Member Data Documentation

u32 EntityComponent::mID [protected]

Definition at line 58 of file EntityComponent.h.

std::string EntityComponent::mName [protected]

Definition at line 59 of file EntityComponent.h.

Definition at line 56 of file EntityComponent.h.


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

Generated on Fri Aug 21 23:55:13 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8