Shkyera Engine
Easy to use, game engine for Python
Game.hpp
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include <memory>
10 #include <vector>
11 
12 #include "game/GameObject.hpp"
13 
14 namespace shkyera {
15 
21 class Game {
22  public:
26  Game() = default;
27 
31  ~Game() = default;
32 
38  std::vector<std::shared_ptr<GameObject>> getGameObjects();
39 
45  void addGameObject(std::shared_ptr<GameObject> object);
46 
47  private:
48  std::vector<std::shared_ptr<GameObject>> _gameObjects;
49 };
50 
51 } // namespace shkyera
Contains the declaration of the GameObject class, representing a game object in the system.
A class representing the game environment.
Definition: Game.hpp:21
~Game()=default
Default destructor for the Game class.
std::vector< std::shared_ptr< GameObject > > _gameObjects
The list of game objects within the game environment.
Definition: Game.hpp:48
void addGameObject(std::shared_ptr< GameObject > object)
Add a game object to the game environment.
Definition: Game.cpp:7
std::vector< std::shared_ptr< GameObject > > getGameObjects()
Get a vector of shared pointers to game objects in the game environment.
Definition: Game.cpp:5
Game()=default
Default constructor for the Game class.
Definition: Entity.cpp:3