Diffstat (limited to 'noncore/games/kcheckers/kcheckers.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/kcheckers/kcheckers.h | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/noncore/games/kcheckers/kcheckers.h b/noncore/games/kcheckers/kcheckers.h index e86524f..ccf5bae 100644 --- a/noncore/games/kcheckers/kcheckers.h +++ b/noncore/games/kcheckers/kcheckers.h @@ -10,4 +10,5 @@ -#define WOOD 1 -#define MARBLE 2 +#define WOODEN 1 +#define GREEN 2 +#define MARBLE 3 @@ -18,6 +19,8 @@ #define NOVICE 4 -#define AVERAGE 5 -#define GOOD 6 -#define EXPERT 7 -#define MASTER 8 +#define AVERAGE 6 +#define GOOD 7 +#define EXPERT 8 +#define MASTER 9 + +class QToolButton; @@ -30,3 +33,8 @@ class KCheckers:public QMainWindow + protected: + void closeEvent(QCloseEvent*); + private slots: + + void help(); void about(); @@ -34,3 +42,5 @@ class KCheckers:public QMainWindow void newGame(); - void click(int); // Processes the mouse clics on fields + void undoMove(); + void click(int); + void showNumeration(); @@ -43,3 +53,4 @@ class KCheckers:public QMainWindow - void setPatternWood() {setPattern(WOOD);}; + void setPatternWooden() {setPattern(WOODEN);}; + void setPatternGreen() {setPattern(GREEN);}; void setPatternMarble() {setPattern(MARBLE);}; @@ -50,2 +61,3 @@ class KCheckers:public QMainWindow private: + void compGo(); @@ -53,4 +65,7 @@ class KCheckers:public QMainWindow - void drawBoard(); + void drawBoard(int); + void drawNumeration(); void colorChange(); + void unselect(); + void readConfig(); @@ -64,2 +79,7 @@ class KCheckers:public QMainWindow int pattern; + + int numID; // Show Numeration + int undoID; // Undo Move + int undoBoard[32]; + bool gameOver; @@ -77,2 +97,5 @@ class KCheckers:public QMainWindow QImage* imageWood3; + QImage* imageGreen1; + QImage* imageGreen2; + QImage* imageGreen3; QImage* imageMarble1; @@ -87,6 +110,11 @@ class KCheckers:public QMainWindow Checkers* game; + QPopupMenu* gameMenu; QPopupMenu* skillMenu; QPopupMenu* optionsMenu; + QToolButton* undoButton; QLabel* statusLabel; + static QString enNumeration; + static QString ruNumeration; + static const int t[32]; // Translate table |