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.

Protected Attributes

EntitypParent
u32 mID
std::string mName

Friends

class ScriptedEntityComponent


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 60 of file EntityComponent.cpp.

const Entity * EntityComponent::getParent (  ) 

Gets the parent of this component.

Definition at line 66 of file EntityComponent.cpp.


Friends And Related Function Documentation

friend class ScriptedEntityComponent [friend]

Definition at line 32 of file EntityComponent.h.


Member Data Documentation

u32 EntityComponent::mID [protected]

Definition at line 57 of file EntityComponent.h.

std::string EntityComponent::mName [protected]

Definition at line 58 of file EntityComponent.h.

Definition at line 55 of file EntityComponent.h.


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

Generated on Sun Aug 30 14:17:13 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8