aboutsummaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-10 19:12:31 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:55 +0200
commit38f14606c78c119d452f302f17329455e29a9a6f (patch)
tree03f6dfd9d3576e87260f7cb3bc436ad076b629c5 /src/game/game.hpp
parent09848ad31af6a1c70d64fccee711e231afb5a77f (diff)
refactor: rename game initializer & move input config
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index ea8145a..2111026 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -2,19 +2,11 @@
#include "DI/auto_wirable.hpp"
#include "interfaces/game.hpp"
-#include "interfaces/input.hpp"
-#include "interfaces/input_configurator.hpp"
-#include "interfaces/scene.hpp"
-#include <memory>
-
-class Game : public IGame, public AutoWirable<IGame, Game, IInputConfigurator>
+class Game : public IGame, public AutoWirable<IGame, Game>
{
public:
- explicit Game(std::shared_ptr<IInputConfigurator> input_configurator);
-
- void run(IScene &scene, IInputHandler &input_handler) override;
+ Game() = default;
-private:
- std::shared_ptr<IInputConfigurator> _input_configurator;
+ void run() override;
};