42_so_long/includes/utils/map.h
mcolonna 9e81a59a7e feat: loots of things!!! *
Added features:
- Check if the room is valid
- Pathfinding
- Firsk
- Camera
Changes:
- Borders
Dev:
- new test rooms
- ber.vim plugin
2024-04-15 19:46:35 +02:00

27 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* map.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/12 19:14:26 by mcolonna #+# #+# */
/* Updated: 2024/04/15 16:36:45 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MAP_H
# define MAP_H
typedef struct s_map
{
t_point dim;
void **cases;
} t_map;
t_map map_init(t_memclass mc, t_point dim);
void **map_at(t_map *map, t_point p);
void map_foreach(t_map *map, void (*f)(t_point p, void **el, void *arg),
void *arg);
#endif