Shkyera Engine
Easy to use, game engine for Python
|
A class representing the game environment. More...
#include <Game.hpp>
Public Member Functions | |
Game ()=default | |
Default constructor for the Game class. More... | |
~Game ()=default | |
Default destructor for the Game class. More... | |
std::vector< std::shared_ptr< GameObject > > | getGameObjects () |
Get a vector of shared pointers to game objects in the game environment. More... | |
void | addGameObject (std::shared_ptr< GameObject > object) |
Add a game object to the game environment. More... | |
Private Attributes | |
std::vector< std::shared_ptr< GameObject > > | _gameObjects |
The list of game objects within the game environment. More... | |
A class representing the game environment.
The Game
class is responsible for managing game objects within the game environment.
|
default |
Default constructor for the Game
class.
|
default |
Default destructor for the Game
class.
void shkyera::Game::addGameObject | ( | std::shared_ptr< GameObject > | object | ) |
Add a game object to the game environment.
object | A shared pointer to the game object to add. |
std::vector< std::shared_ptr< GameObject > > shkyera::Game::getGameObjects | ( | ) |
Get a vector of shared pointers to game objects in the game environment.
|
private |
The list of game objects within the game environment.