|
A-maze-D documentation 1.0.0
|
#include "../include/amazed.h"Functions | |
| robot_t * | create_robots_list (room_t *start, int nb_robots) |
| Create a list of robots. | |
| void | remove_robots_at_end (room_t *end, robot_t **robots) |
| Remove the robots at the end of the maze. | |
| robot_path_t * | create_robot_path (room_t *rooms_list, robot_t *robot, room_t *end) |
| room_t * | get_next_robot_room (room_t *rooms_list, robot_t *robot, room_t *end) |
| Get the next room of the robot. | |
| void | move_robots (maze_t *maze) |
| Move the robots. | |
The robots.c.
Create a list of robots.
| start | The room where the robots start |
| nb_robots | The number of robots |
Get the next room of the robot.
| rooms_list | The list of rooms |
| robot | The robot |
| end | The end room |
| void move_robots | ( | maze_t * | maze | ) |
Move the robots.
| maze | The maze |