Represents an in-game entity.
More...
|
|
bool | mActive = true |
| | Whether the GameObject is active or not.
|
| |
Represents an in-game entity.
Each GameObject has components (IComponent) and scripts (ComponentScript) that implement specific behaviors.
- See also
- IComponent
-
ComponentScript
◆ this()
| GameObject::this |
( |
string | name | ) |
|
|
inline |
◆ AddComponent()
| void GameObject::AddComponent |
( |
ComponentType | T | ) |
|
|
inline |
◆ AddScript()
| void GameObject::AddScript |
( |
ScriptType | T | ) |
|
|
inline |
◆ GetComponent()
| IComponent GameObject::GetComponent |
( |
ComponentType | type | ) |
|
|
inline |
◆ GetID()
| size_t GameObject::GetID |
( |
| ) |
const |
|
inline |
◆ GetName()
| string GameObject::GetName |
( |
| ) |
const |
|
inline |
◆ GetScript()
◆ IsActive()
| bool GameObject::IsActive |
( |
| ) |
|
|
inline |
Whether the GameObject is active.
- Returns
true if active, false otherwise.
◆ IsEnabled()
| bool GameObject::IsEnabled |
( |
| ) |
|
|
inline |
Whether the GameObject is enabled.
- Returns
true if enabled, false otherwise.
◆ Render()
| void GameObject::Render |
( |
SDL_Renderer * | renderer, |
|
|
SDL_Rect * | camera ) |
|
inline |
◆ SetActive()
| void GameObject::SetActive |
( |
bool | active | ) |
|
|
inline |
Set whether the GameObject is active or not.
- Parameters
-
| active | whether the GameObject should be active or not. |
◆ SetEnabled()
| void GameObject::SetEnabled |
( |
bool | enabled | ) |
|
|
inline |
Set whether the GameObject is enabled or not.
- Parameters
-
| enabled | whether the GameObject should be enabled or not. |
◆ Update()
| void GameObject::Update |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- Engine/source/gameobject.d