summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index 0855d04..9831c78 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -432,6 +432,12 @@ void GameController::CopyRegion(ui::Point point1, ui::Point point2)
gameModel->SetClipboard(newSave);
}
+void GameController::CutRegion(ui::Point point1, ui::Point point2)
+{
+ CopyRegion(point1, point2);
+ gameModel->GetSimulation()->clear_area(point1.X, point1.Y, point2.X-point1.X, point2.Y-point1.Y);
+}
+
bool GameController::MouseMove(int x, int y, int dx, int dy)
{
return commandInterface->OnMouseMove(x, y, dx, dy);