diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-20 13:17:16 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:56 +0200 |
commit | 78f5d8cf644383adf20933ad64c160c07c2c54fb (patch) | |
tree | 2a348d90f8f150665c379bf2f3741731999dd679 /src/commands/insert_cell.hpp | |
parent | b6061eff99907495de282f611e8389e6468a1fb0 (diff) |
refactor: improve input configuring structure
Diffstat (limited to 'src/commands/insert_cell.hpp')
-rw-r--r-- | src/commands/insert_cell.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/commands/insert_cell.hpp b/src/commands/insert_cell.hpp new file mode 100644 index 0000000..cf04203 --- /dev/null +++ b/src/commands/insert_cell.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include "interfaces/command.hpp" +#include "interfaces/cursor.hpp" +#include "interfaces/scene.hpp" + +#include <memory> + +class InsertCellCommand : public ICommand +{ +public: + InsertCellCommand(const std::shared_ptr<ICursorController> &cursor_controller, + const std::shared_ptr<IScene> &scene) noexcept; + + void execute() noexcept override; + +private: + const std::shared_ptr<ICursorController> &_cursor_controller; + const std::shared_ptr<IScene> &_scene; +}; |