gameplay.h (797B)
1 #ifndef GAMEPLAY_H 2 #define GAMEPLAY_H 3 4 #include "audio.h" 5 #include "main.h" 6 #include "navigation.h" 7 #include "outputs.h" 8 #include "wins.h" 9 10 #define BLANK ' ' 11 #define MINE '*' 12 #define ENTER '\n' 13 #define OPEN_LOWER 'o' 14 #define OPEN_UPPER 'O' 15 #define FLAG 'F' 16 #define FLAG_LOWER 'f' 17 #define FLAG_UPPER 'F' 18 #define DEFUSE_LOWER 'g' 19 #define DEFUSE_UPPER 'G' 20 #define DEFUSED 'D' 21 #define PAUSE_AUDIO 'p' 22 #define VOLUME_UP '+' 23 #define VOLUME_DOWN '-' 24 #define QUIT 'q' 25 26 void play (Board *b); 27 int open_cell (Board *b); 28 void handle_flags (Board *b); 29 void defuse_mine (Board *b); 30 void transfer (Board *b); 31 void reveal (const Board *b); 32 int is_defused (const Board *b); 33 void handle_menu (const Board *b); 34 void handle_gameover(const Board *b); 35 void handle_win (const Board *b); 36 37 #endif /* GAMEPLAY_H */