blob: 94309993acf42678407515e3e63862e3b1217756 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "game_initializer.hpp"
#include <utility>
GameInitializer::GameInitializer(std::shared_ptr<IScene> scene,
std::shared_ptr<IInputHandler> input_handler,
std::shared_ptr<IGame> game)
: _scene(std::move(scene)),
_input_handler(std::move(input_handler)),
_game(std::move(game))
{
}
void GameInitializer::initialize()
{
_scene->enter();
_input_handler->enter_raw_mode();
_game->run(*_scene, *_input_handler);
}
|