Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

mapdesc Struct Reference

#include <map.h>


Detailed Description

Description of a level in the game world.

This structure appears in the constant data file in data/maps.m4 and data/maps.m4h. The definition given here must remain synchronized with the one there.

See also:
world::current_map world::current_map_link world::level

Definition at line 50 of file map.h.

Data Fields

filelink name
 (Ref to string) Map name

filelink monstertab
 Evaluates to map_gen_method.

filelink genmethod
 Function to call when map is created.

filelink genfunction
 Function to call when map is entered.

filelink enterfunction
uint mapindex
 Map's index into the maps table.

uint flags
 Special properties of this level.

uint difficulty
 How difficult this map is. Affects jump tables (thus, monster types) and the number of points awarded for reaching it.

range num_items
 Number of items on this map.

uint initial_population
 Number of monsters on the map.

uint numspecial
 Number of additional properties this map has.

spec_descriptor ext [1]


Field Documentation

uint mapdesc::difficulty
 

How difficult this map is. Affects jump tables (thus, monster types) and the number of points awarded for reaching it.

Definition at line 72 of file map.h.

struct filelink mapdesc::enterfunction
 

Definition at line 61 of file map.h.

spec_descriptor mapdesc::ext[1]
 

Definition at line 78 of file map.h.

uint mapdesc::flags
 

Special properties of this level.

Possible values are in Map Flags.

Definition at line 68 of file map.h.

Referenced by follow_connection().

struct filelink mapdesc::genfunction
 

Function to call when map is entered.

Definition at line 59 of file map.h.

struct filelink mapdesc::genmethod
 

Function to call when map is created.

Definition at line 57 of file map.h.

uint mapdesc::initial_population
 

Number of monsters on the map.

Definition at line 75 of file map.h.

uint mapdesc::mapindex
 

Map's index into the maps table.

Definition at line 63 of file map.h.

Referenced by follow_connection(), and main_menu().

struct filelink mapdesc::monstertab
 

Evaluates to map_gen_method.

Definition at line 55 of file map.h.

struct filelink mapdesc::name
 

(Ref to string) Map name

Definition at line 53 of file map.h.

Referenced by auto_follow_connection().

struct range mapdesc::num_items
 

Number of items on this map.

Definition at line 74 of file map.h.

uint mapdesc::numspecial
 

Number of additional properties this map has.

Definition at line 76 of file map.h.


The documentation for this struct was generated from the following file:
Generated on Thu May 20 13:12:14 2004 for CalcRogue by doxygen 1.3.6