summaryrefslogtreecommitdiff
path: root/square.cpp
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-09-02 11:47:15 +0930
committerdaniel-Jones <daniel@danieljon.es>2018-09-02 11:47:15 +0930
commit12f885b28b9740349dcee6a7c57d7b774017fd05 (patch)
treea1f19acd069ba42dd757c006783157013a53aed5 /square.cpp
parent34eab2a4cd9a20f7deae3b7225a11678c240ede9 (diff)
downloadqtminesweeper-12f885b28b9740349dcee6a7c57d7b774017fd05.tar.gz
qtminesweeper-12f885b28b9740349dcee6a7c57d7b774017fd05.zip
initial cell flag system setup
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);
}