diff options
Diffstat (limited to 'src/engine/engine.cpp')
-rw-r--r-- | src/engine/engine.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 8b55d88..fda1fc2 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -9,24 +9,22 @@ CLIGameEngine::CLIGameEngine( IGameFactory game_factory, ISceneFactory scene_factory, std::shared_ptr<IInputHandler> input_handler, - std::shared_ptr<ICursorController> cursor_controller, - std::shared_ptr<IWindow> window) noexcept + std::shared_ptr<ICursorController> cursor_controller) noexcept : _game_factory(std::move(game_factory)), _scene_factory(std::move(scene_factory)), _input_handler(std::move(input_handler)), - _cursor_controller(std::move(cursor_controller)), - _window(std::move(window)) + _cursor_controller(std::move(cursor_controller)) { } void CLIGameEngine::start() noexcept { - std::shared_ptr<IScene> scene = _scene_factory(_cursor_controller, _window); + std::shared_ptr<IScene> scene = _scene_factory(_cursor_controller); scene->enter(); _input_handler->enter_raw_mode(); - auto game = _game_factory(_window, scene, _cursor_controller); + auto game = _game_factory(scene, _cursor_controller); game->on_start(); |