|
Mountain
1.0.0
Simple C++ 2D Game Framework
|
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 Entity * | GetEntity () const |
| Get the Entity on which this Component is attached. | |
| Entity * | GetEntity () |
| Get the Entity on which this Component is attached. | |
Protected Attributes | |
| Entity * | m_Entity = nullptr |
| Entity bound to the component. | |
Friends | |
| class | Entity |
Represents a behavior that can be attached to an Entity.
Definition at line 10 of file component.hpp.