Game for Project 2
Dependencies: 4DGL-uLCD-SE SDFileSystem mbed wave_player
map_public.h File Reference
Go to the source code of this file.
Data Structures | |
struct | GRID |
The structure to store the information of a grid. More... | |
Enumerations | |
enum | GRID_STATUS { , GRID_CANDY } |
The enum define the status of a grid on the map. More... | |
Functions | |
void | map_init (void) |
Call map_init() once at the begining of your code. | |
bool | map_eat_candy (int grid_x, int grid_y) |
Remove the cookie/super-cookie from map. | |
GRID | map_get_grid_status (int grid_x, int grid_y) |
Get the information about the grid. | |
void | map_draw_grid (unsigned grid_x, unsigned grid_y) |
Draw the grid. | |
int | map_remaining_candy (void) |
Get the number of remaining cookie. |
Detailed Description
Definition in file map_public.h.
Enumeration Type Documentation
enum GRID_STATUS |
The enum define the status of a grid on the map.
Definition at line 27 of file map_public.h.
Function Documentation
void map_draw_grid | ( | unsigned | grid_x, |
unsigned | grid_y | ||
) |
bool map_eat_candy | ( | int | grid_x, |
int | grid_y | ||
) |
GRID map_get_grid_status | ( | int | grid_x, |
int | grid_y | ||
) |
void map_init | ( | void | ) |
Call map_init() once at the begining of your code.
It initialize the map structure and draw the map.
Generated on Tue Aug 2 2022 11:28:12 by 1.7.2