summaryrefslogtreecommitdiff
path: root/square.h
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-09-02 15:02:05 +0930
committerdaniel-Jones <daniel@danieljon.es>2018-09-02 15:02:05 +0930
commitfed9330a4a98906648306e7524882feac80980e4 (patch)
tree7d30af29b1a8a4fbe2fe34d8dffca4f9fc4445f5 /square.h
parent12f885b28b9740349dcee6a7c57d7b774017fd05 (diff)
downloadqtminesweeper-fed9330a4a98906648306e7524882feac80980e4.tar.gz
qtminesweeper-fed9330a4a98906648306e7524882feac80980e4.zip
added constants files, moved around some classes, beginning of drawing functions etc
Diffstat (limited to 'square.h')
-rw-r--r--square.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/square.h b/square.h
index fd37b58..46a513b 100644
--- a/square.h
+++ b/square.h
@@ -17,11 +17,18 @@
#ifndef SQUARE_H
#define SQUARE_H
+#include "constants.h"
+
class square
{
public:
explicit square(); /* init function */
+ int getgridx();
+ int getgridy();
+ int getrealx();
+ int getrealy();
+ void movetogridpos(int x, int y);
private:
/*
@@ -34,22 +41,9 @@ class square
int gridx;
int gridy;
- void setrealx(int x);
- void setrealy(int y);
-
- void setgridx(int x);
- void setgridy(int y);
-
void movetorealpos(int x, int y);
- int getrealx();
- int getrealy();
-
protected:
- int getgridx();
- int getgridy();
-
- void movetogridpos(int x, int y);
};
#endif