-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu_utilities.h
70 lines (63 loc) · 1.9 KB
/
menu_utilities.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/**
* @file menu_utilities.h
* @author Petr Kucera (kucerp28@fel.cvut.cz)
* @brief Module for drawing menu, setting game settings and starting the game
* @version 0.1
* @date 2021-05-04
*
* @copyright Copyright (c) 2021
*
*/
#include <stdbool.h>
#include "data_structures.h"
#include "font_types.h"
#ifndef MENU_UTILITIES_H
#define MENU_UTILITIES_H
/**
* @brief Calls other menu functions which set the game parameters or runs the game if user pressed the s key. Quits program if user pressed the q key.
*
* @param frame_buff
* @param lcd_mem_base
* @param font
* @param peripherals
*/
void run_init_game_menu(fb_data *frame_buff, unsigned char *lcd_mem_base, font_descriptor_t *font, peripherals_data_t peripherals);
/**
* @brief Function to drow menu with settings to fb_data
*
* @param frame_buff
* @param font
* @param game_data
*/
void draw_menu(fb_data *frame_buff, font_descriptor_t *font, game_init_data_t game_data);
/**
* @brief Displays current amount of lives and lets the user change
*
* @param frame_buff
* @param lcd_mem_base
* @param font
* @param game_data
* @return game_init_data_t
*/
game_init_data_t sub_menu_lives(fb_data *frame_buff, unsigned char *lcd_mem_base, font_descriptor_t *font, game_init_data_t game_data);
/**
* @brief Displays current map and lets the user change it
*
* @param frame_buff
* @param lcd_mem_base
* @param font
* @param game_data
* @return game_init_data_t
*/
game_init_data_t sub_menu_map(fb_data *frame_buff, unsigned char *lcd_mem_base, font_descriptor_t *font, game_init_data_t game_data);
/**
* @brief Displays current amount of ghosts and lets the user change
*
* @param frame_buff
* @param lcd_mem_base
* @param font
* @param game_data
* @return game_init_data_t
*/
game_init_data_t sub_menu_ghosts(fb_data *frame_buff, unsigned char *lcd_mem_base, font_descriptor_t *font, game_init_data_t game_data);
#endif