aboutsummaryrefslogtreecommitdiff
path: root/src/engine/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/engine.cpp')
-rw-r--r--src/engine/engine.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp
index 3bf8503..4ac6a37 100644
--- a/src/engine/engine.cpp
+++ b/src/engine/engine.cpp
@@ -10,8 +10,7 @@ CLIGameEngine::CLIGameEngine(
ISceneFactory scene_factory,
std::shared_ptr<IInputHandler> input_handler,
std::shared_ptr<ICursorController> cursor_controller,
- std::shared_ptr<IWindow> window
-) noexcept
+ std::shared_ptr<IWindow> window) noexcept
: _game_factory(std::move(game_factory)),
_scene_factory(std::move(scene_factory)),
_input_handler(std::move(input_handler)),
@@ -38,8 +37,7 @@ void CLIGameEngine::start() noexcept
_input_handler->leave_raw_mode();
game->on_exit();
- }
- ));
+ }));
_configure_input(game->get_input_config());
@@ -47,8 +45,7 @@ void CLIGameEngine::start() noexcept
[this]()
{
_input_handler->listen();
- }
- ));
+ }));
while (true)
{
@@ -57,8 +54,7 @@ void CLIGameEngine::start() noexcept
}
void CLIGameEngine::_configure_input(
- const std::unordered_map<char, std::shared_ptr<ICommand>> &input_config
-) noexcept
+ const std::unordered_map<char, std::shared_ptr<ICommand>> &input_config) noexcept
{
for (const auto &config_pair : input_config)
{