From 78f5d8cf644383adf20933ad64c160c07c2c54fb Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 20 Mar 2022 13:17:16 +0100 Subject: refactor: improve input configuring structure --- src/commands/insert_cell.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/commands/insert_cell.hpp (limited to 'src/commands/insert_cell.hpp') 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 + +class InsertCellCommand : public ICommand +{ +public: + InsertCellCommand(const std::shared_ptr &cursor_controller, + const std::shared_ptr &scene) noexcept; + + void execute() noexcept override; + +private: + const std::shared_ptr &_cursor_controller; + const std::shared_ptr &_scene; +}; -- cgit v1.2.3-18-g5258