#include <GameObject.hpp>
| GameObject::GameObject |
( |
std::string |
tag | ) |
|
| GameObject::~GameObject |
( |
| ) |
|
default deconstructor for deallocating components
template<typename T , typename... TArgs>
| void GameObject::AddComponent |
( |
TArgs &&... |
mArgs | ) |
|
template<typename C >
| C* GameObject::GetComponent |
( |
| ) |
const |
| std::string GameObject::GetTag |
( |
| ) |
|
return this game objects tag
| void GameObject::RemoveComponent |
( |
Component * |
c | ) |
|
| void GameObject::Render |
( |
SDL_Renderer * |
ren | ) |
|
|
virtual |
| void GameObject::Update |
( |
float |
deltaTime | ) |
|
|
virtual |
update this GameObject on a frame basis
| std::vector<Component*> GameObject::m_components |
|
protected |
| std::string GameObject::m_tag |
|
protected |
The documentation for this class was generated from the following files:
- D:/Ryan_Temp/GithubProjects/platformer-linux_gang/Game/game/include/component_system/GameObject.hpp
- D:/Ryan_Temp/GithubProjects/platformer-linux_gang/Game/game/src/component_system/GameObject.cpp