diff options
author | HampusM <hampus@hampusmat.com> | 2022-02-27 15:24:07 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:53 +0200 |
commit | 2bcf699b9e11ccf848393882257fc3986bd28e45 (patch) | |
tree | a7ea1033984a857812297b0b41bd322c57a3b23f /src/game | |
parent | 5864e5abc43b201c3801fa39a2fcaf9e3a9e8914 (diff) |
add game & vector2
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/game.cpp | 9 | ||||
-rw-r--r-- | src/game/game.hpp | 16 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp new file mode 100644 index 0000000..e785e18 --- /dev/null +++ b/src/game/game.cpp @@ -0,0 +1,9 @@ +#include "game.hpp" + +#include <iostream> + +Game::Game(IVector2Factory vector2_factory) : _vector2_factory(std::move(vector2_factory)) +{ +} + +void Game::run() {} diff --git a/src/game/game.hpp b/src/game/game.hpp new file mode 100644 index 0000000..4c7e5e1 --- /dev/null +++ b/src/game/game.hpp @@ -0,0 +1,16 @@ +#pragma once + +#include "DI/auto_wirable.hpp" +#include "interfaces/game.hpp" +#include "interfaces/vector2.hpp" + +class Game : public IGame, public AutoWirable<IGame, Game, IVector2Factory> +{ +public: + explicit Game(IVector2Factory vector2_factory); + + void run() override; + +private: + IVector2Factory _vector2_factory; +}; |