aboutsummaryrefslogtreecommitdiff
path: root/src/engine/engine.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-04-24 17:13:52 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commitdb6edcd473a684420e9a7611b24462df21165c1b (patch)
tree9646bdb4f5f6e339a0a01873b44e0b185476ce56 /src/engine/engine.hpp
parentb36d072ad7a7b9c6e30fcb25d6bbb001a8393468 (diff)
style: improve function and brace styling
Diffstat (limited to 'src/engine/engine.hpp')
-rw-r--r--src/engine/engine.hpp27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/engine/engine.hpp b/src/engine/engine.hpp
index 32afa56..c13245f 100644
--- a/src/engine/engine.hpp
+++ b/src/engine/engine.hpp
@@ -12,16 +12,24 @@
#include <memory>
#include <unordered_map>
-class CLIGameEngine
- : public ICLIGameEngine,
- public AutoWirable<ICLIGameEngine, CLIGameEngine, IGameFactory, ISceneFactory,
- IInputHandler, ICursorController, IWindow>
+class CLIGameEngine : public ICLIGameEngine,
+ public AutoWirable<
+ ICLIGameEngine,
+ CLIGameEngine,
+ IGameFactory,
+ ISceneFactory,
+ IInputHandler,
+ ICursorController,
+ IWindow>
{
public:
- 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;
+ 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;
void start() noexcept override;
@@ -34,5 +42,6 @@ private:
std::shared_ptr<IWindow> _window;
void _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;
};