summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LevelEdge.h4
-rw-r--r--LevelVertex.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/LevelEdge.h b/LevelEdge.h
index 768f725..b2977f1 100644
--- a/LevelEdge.h
+++ b/LevelEdge.h
@@ -47,10 +47,14 @@ class LevelEdge : public LevelObject {
return "LevelEdge";
}
+ virtual bool canMove() const {return true;}
+
virtual void move(float x, float y) {
provider->moveEdge(id, x, y);
}
+ virtual bool canRotate() const {return true;}
+
virtual void rotate(Vertex m, float a) {
provider->rotateEdge(id, m, a);
}
diff --git a/LevelVertex.h b/LevelVertex.h
index 2203bf4..b409ecf 100644
--- a/LevelVertex.h
+++ b/LevelVertex.h
@@ -26,10 +26,14 @@ class LevelVertex : public LevelObject {
return 1000;
}
+ virtual bool canMove() const {return true;}
+
virtual void move(float x, float y) {
provider->moveVertex(id, x, y);
}
+ virtual bool canRotate() const {return true;}
+
virtual void rotate(Vertex m, float a) {
provider->rotateVertex(id, m, a);
}