Crossfire Server, Trunk
|
#include <map.h>
Data Fields | |
uint32_t | counter |
int8_t | fallback |
char * | jailmap |
int16_t | jailx |
int16_t | jaily |
char * | longname |
char * | msg |
char * | name |
struct regiondef * | next |
struct regiondef * | parent |
This is a game region. Each map is in a given region of the game world and links to a region definiton, so they have to appear here in the headers, before the mapdef
uint32_t regiondef::counter |
A generic counter for holding temporary data.
Definition at line 286 of file map.h.
Referenced by command_whereabouts().
int8_t regiondef::fallback |
Whether, in the event of a region not existing, this should be the one we fall back on as the default.
Definition at line 287 of file map.h.
Referenced by get_name_of_region_for_map(), get_region_by_name(), init_regions(), main(), and START_TEST().
char* regiondef::jailmap |
Where a player that is arrested in this region should be imprisoned.
Definition at line 289 of file map.h.
Referenced by cfapi_region_get_property(), free_globals(), get_jail_exit(), init_regions(), and RegionWrapper::jailPath().
int16_t regiondef::jailx |
Definition at line 290 of file map.h.
Referenced by cfapi_region_get_property(), get_jail_exit(), init_regions(), and RegionWrapper::jailX().
int16_t regiondef::jaily |
The coodinates in jailmap to which the player should be sent.
Definition at line 290 of file map.h.
Referenced by cfapi_region_get_property(), get_jail_exit(), init_regions(), and RegionWrapper::jailY().
char* regiondef::longname |
Official title of the region, this might be defined to be the same as name
Definition at line 283 of file map.h.
Referenced by cfapi_region_get_property(), command_whereabouts(), RegionWrapper::displayName(), fill_json(), free_globals(), get_region_from_string(), init_regions(), list_players(), and main().
char* regiondef::msg |
The description of the region
Definition at line 285 of file map.h.
Referenced by cfapi_region_get_property(), fill_json(), free_globals(), and init_regions().
char* regiondef::name |
Shortend name of the region as maps refer to it
Definition at line 277 of file map.h.
Referenced by cfapi_region_get_property(), command_whereabouts(), do_region(), fill_json(), fix_tiled_map(), free_globals(), get_jail_exit(), get_name_of_region_for_map(), get_region_by_name(), get_region_from_string(), get_region_id(), init_regions(), list_players(), main(), RegionWrapper::mapAdded(), region_is_child_of_region(), ring_bell(), RegionWrapper::shortName(), and START_TEST().
struct regiondef* regiondef::next |
Pointer to next region, NULL for the last one
Definition at line 276 of file map.h.
Referenced by cfapi_region_get_property(), command_whereabouts(), free_globals(), get_name_of_region_for_map(), get_region_by_name(), get_region_from_string(), init_regions(), main(), and RegionsWrapper::RegionsWrapper().
struct regiondef* regiondef::parent |
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 278 of file map.h.
Referenced by cfapi_region_get_property(), command_whereabouts(), get_jail_exit(), get_region_from_string(), RegionWrapper::jailPath(), RegionWrapper::jailX(), RegionWrapper::jailY(), region_is_child_of_region(), and START_TEST().