Atrinik Server 2.5
Data Fields
regiondef Struct Reference

#include <map.h>

Data Fields

struct regiondefnext
struct regiondefparent
char * name
char * parent_name
char * longname
char * msg
char * jailmap
char * map_first
char * map_bg
sint16 jailx
sint16 jaily

Detailed Description

This is a game region.

Each map is in a given region of the game world and links to a region definition.

Definition at line 477 of file map.h.


Field Documentation

Where a player that is arrested in this region should be imprisoned.

Definition at line 508 of file map.h.

X coodinate in jailmap to which the player should be sent.

Definition at line 517 of file map.h.

Y coodinate in jailmap to which the player should be sent.

Definition at line 520 of file map.h.

Official title of the region, this might be defined to be the same as name

Definition at line 502 of file map.h.

Client map background to use: if not set, will use transparency.

Definition at line 514 of file map.h.

One of the maps in the region.

Definition at line 511 of file map.h.

The description of the region.

Definition at line 505 of file map.h.

Shortened name of the region as maps refer to it

Definition at line 489 of file map.h.

Pointer to next region, NULL for the last one

Definition at line 480 of file map.h.

Pointer to the region that is a parent of the current region, if a value isn't defined in the current region we traverse this series of pointers until it is.

Definition at line 486 of file map.h.

So that parent and child regions can be defined in any order, we keep hold of the parent_name during initialization, and the children get assigned to their parents later. (before runtime on the server though) nothing outside the init code should ever use this value.

Definition at line 497 of file map.h.


The documentation for this struct was generated from the following file: