Shkyera Engine
Easy to use, game engine for Python
|
A class representing a game object. More...
#include <GameObject.hpp>
Public Member Functions | |
GameObject (std::string name) | |
Constructor to create a game object with a specified name. More... | |
std::string | getName () const |
Get the name of the game object. More... | |
Public Member Functions inherited from shkyera::Entity | |
Entity () | |
Default constructor for an entity with identity position, orientation, and scale. More... | |
Entity (glm::vec3 position) | |
Constructor for an entity with the specified position and identity orientation and scale. More... | |
Entity (glm::vec3 position, glm::vec3 orientation) | |
Constructor for an entity with the specified position and orientation, and identity scale. More... | |
~Entity ()=default | |
Destructor for the Entity class. More... | |
glm::vec3 & | getPosition () |
Get the position of the entity. More... | |
glm::vec3 & | getOrientation () |
Get the orientation of the entity. More... | |
glm::vec3 & | getScale () |
Get the scale of the entity. More... | |
Private Attributes | |
std::string | _name |
The name of the game object. More... | |
A class representing a game object.
The GameObject
class is a fundamental entity within the game system and inherits from the Entity
class. It encapsulates data related to game objects, such as their names.
shkyera::GameObject::GameObject | ( | std::string | name | ) |
Constructor to create a game object with a specified name.
name | The name of the game object. |
std::string shkyera::GameObject::getName | ( | ) | const |
Get the name of the game object.
|
private |
The name of the game object.