Shkyera Engine
Easy to use, game engine for Python
shkyera::GameObject Class Reference

A class representing a game object. More...

#include <GameObject.hpp>

Inheritance diagram for shkyera::GameObject:
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GameObject()

shkyera::GameObject::GameObject ( std::string  name)

Constructor to create a game object with a specified name.

Parameters
nameThe name of the game object.

Member Function Documentation

◆ getName()

std::string shkyera::GameObject::getName ( ) const

Get the name of the game object.

Returns
A string containing the name of the game object.

Member Data Documentation

◆ _name

std::string shkyera::GameObject::_name
private

The name of the game object.


The documentation for this class was generated from the following files: