Mountain  1.0.0
Simple C++ 2D Game Framework
Mountain::Component Class Reference

Represents a behavior that can be attached to an Entity. More...

#include <component.hpp>

+ Inheritance diagram for Mountain::Component:
+ Collaboration diagram for Mountain::Component:

Public Member Functions

virtual void Added ()
 Called when the component is added to an Entity.
 
virtual void Removed ()
 Called when the component is removed from an Entity.
 
virtual void Update ()
 Updates the component.
 
virtual void Render ()
 Renders the component.
 
virtual void DebugRender ()
 
const EntityGetEntity () const
 Get the Entity on which this Component is attached.
 
EntityGetEntity ()
 Get the Entity on which this Component is attached.
 

Protected Attributes

Entitym_Entity = nullptr
 Entity bound to the component.
 

Friends

class Entity
 

Detailed Description

Represents a behavior that can be attached to an Entity.

Definition at line 10 of file component.hpp.


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