Main Page | Data Structures | File List | Globals

world.h File Reference

#include "area.h"
#include "list.h"

Go to the source code of this file.

Functions

int create_world (void)
void destroy_world (void)
list_nodeget_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)


Detailed Description


Function Documentation

area_id add_area struct area *  area  ) 
 

adds an already created area to the world data structures

int add_area_link area_id  aid,
area_id  adj
 

add a link from an area to another area in the graph

area_id add_new_area void   ) 
 

creates a new area and then adds it to the world

int create_world void   ) 
 

allocates the world data structures. returns 0 on success, -1 on failiure

int del_area_link area_id  aid,
area_id  adj
 

delete a link from an area to another area in the graph

void destroy_world void   ) 
 

deallocates the world data structures

struct list_node* get_adj_area_list area_id  aid  ) 
 

get a list with the adjacent areas of the specified area

struct area* get_area area_id  aid  ) 
 

get a pointer to the area specified by the area id


Generated on Thu Sep 9 00:52:33 2004 for MUD by doxygen 1.3.8