VisualComponent Class Reference

Inherits BaseComponent.

Collaboration diagram for VisualComponent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DEFAULT_COMPONENT_CONSTRUCTOR (BaseComponent, VisualComponent,,,)
template<class T >
T * CreateVisual (const std::string &type, const std::string &name)
template<class T >
T * GetVisual (const std::string &name)
void RemoveVisual (const std::string &name)
void Render (AbstractRenderer *pRenderer, const int nDelta)
virtual void Update (const int nDelta)
 Can be overridden to implement logic that is called on every game update.
virtual void ToStream (std::ostream &stream) const
 Empty implementation.
virtual void FromStream (std::istream &stream)
 Empty implementation.
virtual bool FromAttribute (const Attribute *pRoot)
 Can be overriden to implement custom loading functionality from an AttributeTree.

Member Function Documentation

bool VisualComponent::FromAttribute ( const Attribute pRoot  )  [virtual]

Can be overriden to implement custom loading functionality from an AttributeTree.

Parameters:
pRoot A pointer to the root of the attribute tree for this component.
Returns:
If false is returned then loading was a failure and the component will not be added to the game entity.

Implements AbstractComponent.

virtual void VisualComponent::Update ( const int  nDelta  )  [inline, virtual]

Can be overridden to implement logic that is called on every game update.

Parameters:
nDelta The time between this frame and last (in ms).

Implements AbstractComponent.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on Fri Nov 20 15:29:21 2009 for PhysTank by  doxygen 1.6.1