GameObject is composed of components that define its behavior.
More...
#include <GameObject.hpp>
GameObject is composed of components that define its behavior.
template<class T >
T* ae3d::GameObject::GetComponent |
( |
| ) |
const |
|
inline |
- Returns
- The first component of type T or null if there is no such component.
unsigned ae3d::GameObject::GetLayer |
( |
| ) |
const |
|
inline |
const std::string& ae3d::GameObject::GetName |
( |
| ) |
const |
|
inline |
- Returns
- Game Object's name.
std::string ae3d::GameObject::GetSerialized |
( |
| ) |
const |
- Returns
- Game Object's contents excluding components
bool ae3d::GameObject::IsEnabled |
( |
| ) |
const |
- Returns
- True if this game object and all its parents are enabled.
void ae3d::GameObject::SetEnabled |
( |
bool |
enabled | ) |
|
|
inline |
- Parameters
-
enabled | True if the game object should be rendered, false otherwise. |
void ae3d::GameObject::SetLayer |
( |
unsigned |
aLayer | ) |
|
|
inline |
- Parameters
-
aLayer | Layer for controlling camera visibility etc. Must be power of two (2, 4, 8 etc.) |
void ae3d::GameObject::SetName |
( |
const char * |
aName | ) |
|
|
inline |
The documentation for this class was generated from the following file: