Diffstat (limited to 'noncore/games/sfcave/sfcave.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/sfcave/sfcave.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/noncore/games/sfcave/sfcave.h b/noncore/games/sfcave/sfcave.h index 238a615..65e5ae4 100644 --- a/noncore/games/sfcave/sfcave.h +++ b/noncore/games/sfcave/sfcave.h | |||
@@ -13,5 +13,6 @@ | |||
13 | #define TRAILSIZE 30 | 13 | #define TRAILSIZE 30 |
14 | 14 | ||
15 | 15 | #define NR_MENUS 3 | |
16 | #define MAX_MENU_OPTIONS 8 | ||
16 | 17 | ||
17 | class SFCave : public QMainWindow | 18 | class SFCave : public QMainWindow |
@@ -54,8 +55,8 @@ public: | |||
54 | int lastGateBottomY; | 55 | int lastGateBottomY; |
55 | 56 | ||
56 | static QString menuOptions[2][5]; | 57 | static QString menuOptions[NR_MENUS][MAX_MENU_OPTIONS]; |
57 | int currentMenuNr; | 58 | int currentMenuNr; |
58 | static int nrMenuOptions[2]; | 59 | static int nrMenuOptions[NR_MENUS]; |
59 | static int currentMenuOption[2]; | 60 | static int currentMenuOption[NR_MENUS]; |
60 | 61 | ||
61 | static QString dificultyOption[3]; | 62 | static QString dificultyOption[3]; |
@@ -108,4 +109,5 @@ public: | |||
108 | void handleKeys(); | 109 | void handleKeys(); |
109 | 110 | ||
111 | void handleMenuKeys( QKeyEvent * e ); | ||
110 | void displayMenu(); | 112 | void displayMenu(); |
111 | void dealWithMenuSelection(); | 113 | void dealWithMenuSelection(); |