diff options
author | daniel-Jones <daniel@danieljon.es> | 2018-09-02 15:02:05 +0930 |
---|---|---|
committer | daniel-Jones <daniel@danieljon.es> | 2018-09-02 15:02:05 +0930 |
commit | fed9330a4a98906648306e7524882feac80980e4 (patch) | |
tree | 7d30af29b1a8a4fbe2fe34d8dffca4f9fc4445f5 /square.h | |
parent | 12f885b28b9740349dcee6a7c57d7b774017fd05 (diff) | |
download | qtminesweeper-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.h | 20 |
1 files changed, 7 insertions, 13 deletions
@@ -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 |