aboutsummaryrefslogtreecommitdiff
path: root/src/commands/insert_cell.hpp
blob: 9d547368a7b457136c92d6041010eba42e1e8914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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;
};