#include "insert_cell.hpp" #include InsertCellCommand::InsertCellCommand( const std::shared_ptr &cursor_controller, const std::shared_ptr &scene ) noexcept : _cursor_controller(cursor_controller), _scene(scene) { } void InsertCellCommand::execute() noexcept { const auto position = _cursor_controller->where(); std::cout.put('x'); std::cout.flush(); _cursor_controller->move_to(position); auto matrix = _scene->get_matrix(); matrix->set(position - Vector2({.x = 0U, .y = 1U}), "#"); }