diff options
| author | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-16 18:58:34 +0300 |
|---|---|---|
| committer | Kirill Petrashin <kirill8201@yandex.ru> | 2026-03-16 18:58:34 +0300 |
| commit | c524f660a79c33213f873b8246e0f65eb058331f (patch) | |
| tree | 6f72f7305f35b97abab669f20c61b67da68ef80a /map.h | |
| parent | 76067d0625f35f85f0bf775f83c12447d5d12a21 (diff) | |
Change comments to use /* asdf */ syntax
Diffstat (limited to 'map.h')
| -rw-r--r-- | map.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -18,23 +18,23 @@ enum Colors_e { START_COLOR = 4, }; -// A map is a 2D array of MapTiles. -// Use as map[row][column] +/* A map is a 2D array of MapTiles. + * Use as map[row][column] */ typedef MapTile** Map; -// Returns an empty map of given size +/* Returns an empty map of given size */ Map empty_map(size_t width, size_t height); -// Stores all the existing neighbours of pos in neighbour_array and returns their amount +/* Stores all the existing neighbours of pos in neighbour_array and returns their amount */ unsigned int neighbours(Position neighbour_array[], Position pos, size_t width, size_t height, \ char visited[height][width]); -// https://en.wikipedia.org/wiki/Maze_generation_algorithm#Randomized_depth-first_search -// WARNING: width and height are not the width and height of the returned map! -// TODO: formula for actual size +/* https://en.wikipedia.org/wiki/Maze_generation_algorithm#Randomized_depth-first_search + * WARNING: width and height are not the width and height of the returned map! + * TODO: formula for actual size */ Map rbt_maze_map(size_t width, size_t height, unsigned int seed); -// Draw the map. Bet you didn't expect that. +/* Draw the map. Bet you didn't expect that. */ void draw_map(Map map, size_t width, size_t height, Position start, Position goal); -#endif //MAP_H_ +#endif /*MAP_H_ */ |
