![]() |
HeadBall
1.0
A game
|
Class where game loop is processed. More...
#include <Game.hpp>

Public Member Functions | |
| Game (int width, int height, std::string title) | |
| Construct a new Game object. More... | |
Private Member Functions | |
| void | run () |
| Run the game loop. More... | |
Private Attributes | |
| const float | dt = 1.0f / 60.0f |
| The delta time for framerate management. More... | |
| sf::Clock | _clock |
| The clock for getting ti. More... | |
| GameDataRef | _data = std::make_shared <GameData> ( ) |
| The shared pointer of game data. More... | |
Class where game loop is processed.
| HeadBall::Game::Game | ( | int | width, |
| int | height, | ||
| std::string | title | ||
| ) |
Construct a new Game object.
| width | |
| height | |
| title |
|
private |
Run the game loop.
|
private |
The clock for getting ti.
|
private |
The shared pointer of game data.
|
private |
The delta time for framerate management.