|
Level H Engine
|
A class that handles the components. More...
#include <Component.h>


Public Member Functions | |
| virtual | ~Component () |
| A virtual destructor. More... | |
| std::weak_ptr< GameObject > | getGameObject () |
| A function to get the game object linked with the component. More... | |
| virtual void | onAwake () |
| A virtual function for the componets awake. More... | |
| virtual void | onUpdate () |
| A virtual function for the componets update. More... | |
| virtual void | onRender () |
| A virtual function for the componets render. More... | |
| virtual void | onDestroy () |
| A virtual function for the componets destroy. More... | |
| void | setDestroyed (bool inDestroyed) |
| A function to set the componets destroyed boolean. More... | |
| bool | getDestroyed () |
| A function to get the componets destroyed boolean. More... | |
| std::string | getID () |
| A function to set the components type ID. More... | |
Protected Attributes | |
| std::string | id |
| The ID of the component type. More... | |
Private Attributes | |
| std::weak_ptr< GameObject > | gameObject |
| A weak pointer to the linked game object. More... | |
| bool | destroyed |
| A boolean for if the component has been destroyed. More... | |
Friends | |
| class | GameObject |
| Declare the game object as a friend. More... | |
A class that handles the components.
|
virtual |
A virtual destructor.
|
inline |
A function to get the componets destroyed boolean.
| std::weak_ptr< GameObject > Component::getGameObject | ( | ) |
A function to get the game object linked with the component.

|
inline |
A function to set the components type ID.
| id | The components type ID. |
|
virtual |
A virtual function for the componets awake.
Reimplemented in ModelComponent, TransformComponent, BoundingBoxComponent, BoundingSphereComponent, CameraComponent, CameraControlComponent, AimBallComponent, and CannonControllerComponent.
|
virtual |
A virtual function for the componets destroy.
Reimplemented in ModelComponent, TransformComponent, BoundingBoxComponent, BoundingSphereComponent, CameraComponent, CameraControlComponent, AimBallComponent, and CannonControllerComponent.
|
virtual |
A virtual function for the componets render.
Reimplemented in ModelComponent.
|
virtual |
A virtual function for the componets update.
|
inline |
A function to set the componets destroyed boolean.
| inDestroyed | A boolean for the state of destroyed. |
|
friend |
Declare the game object as a friend.
|
private |
A boolean for if the component has been destroyed.
|
private |
A weak pointer to the linked game object.
|
protected |
The ID of the component type.
1.8.13