|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| static region * | get_region_struct () |
| static void | assign_region_parents () |
| region * | get_region_by_name (const char *region_name) |
| char * | get_region_longname (const region *r) |
| char * | get_region_msg (const region *r) |
| object * | get_jail_exit (object *op) |
| void | init_regions () |
| void | free_regions () |
Variables | |
| region * | first_region = NULL |
Region management.
A region is a group of maps. It includes a "parent" region.
Definition in file region.c.
| static void assign_region_parents | ( | ) | [static] |
Returns an object which is an exit through which the player represented by op should be sent in order to be imprisoned. If there is no suitable place to which an exit can be constructed, then NULL will be returned.
| op | Object we want to jail. Must be a player. |
| region* get_region_by_name | ( | const char * | region_name | ) |
Gets a region by name.
Used by the map parsing code.
| region_name | Name of region. |
| char* get_region_longname | ( | const region * | r | ) |
Gets the longname of a region.
The longname of a region is not a required field, any given region may want to not set it and use the parent's one instead.
| r | Region we're searching the longname. |
| char* get_region_msg | ( | const region * | r | ) |
| static region * get_region_struct | ( | ) | [static] |
| void init_regions | ( | ) |
| region* first_region = NULL |
1.7.4