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

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

Detailed Description

A class representing the game environment.

The Game class is responsible for managing game objects within the game environment.

Constructor & Destructor Documentation

◆ Game()

shkyera::Game::Game ( )
default

Default constructor for the Game class.

◆ ~Game()

shkyera::Game::~Game ( )
default

Default destructor for the Game class.

Member Function Documentation

◆ addGameObject()

void shkyera::Game::addGameObject ( std::shared_ptr< GameObject object)

Add a game object to the game environment.

Parameters
objectA shared pointer to the game object to add.

◆ getGameObjects()

std::vector< std::shared_ptr< GameObject > > shkyera::Game::getGameObjects ( )

Get a vector of shared pointers to game objects in the game environment.

Returns
A vector of shared pointers to game objects.

Member Data Documentation

◆ _gameObjects

std::vector<std::shared_ptr<GameObject> > shkyera::Game::_gameObjects
private

The list of game objects within the game environment.


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