summaryrefslogtreecommitdiff
path: root/square.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'square.cpp')
-rw-r--r--square.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/square.cpp b/square.cpp
index 23e2e86..be0b32c 100644
--- a/square.cpp
+++ b/square.cpp
@@ -60,7 +60,15 @@ int square::getgridy()
return gridy;
}
+void square::movetorealpos(int x, int y)
+{
+ setrealx(x);
+ setrealy(y);
+}
+
void square::movetogridpos(int x, int y)
{
+ setgridx(x);
+ setgridy(y);
}