#include "area.h"
#include "list.h"
Go to the source code of this file.
Functions | |
int | create_world (void) |
void | destroy_world (void) |
list_node * | get_adj_area_list (area_id aid) |
area_id | add_new_area (void) |
area_id | add_area (struct area *area) |
area * | get_area (area_id aid) |
int | add_area_link (area_id aid, area_id adj) |
int | del_area_link (area_id aid, area_id adj) |
|
adds an already created area to the world data structures |
|
add a link from an area to another area in the graph |
|
creates a new area and then adds it to the world |
|
allocates the world data structures. returns 0 on success, -1 on failiure |
|
delete a link from an area to another area in the graph |
|
deallocates the world data structures |
|
get a list with the adjacent areas of the specified area |
|
get a pointer to the area specified by the area id |