|
Atrinik Server 2.5
|
#include <map.h>
Data Fields | |
| struct mapdef * | previous |
| struct mapdef * | next |
| struct mapdef * | tile_map [TILED_MAPS] |
| char * | name |
| char * | bg_music |
| char * | weather |
| char * | tmpname |
| char * | msg |
| shstr * | path |
| shstr * | tile_path [TILED_MAPS] |
| MapSpace * | spaces |
| MapSpace * | first_light |
| struct regiondef * | region |
| struct map_event * | events |
| objectlink * | buttons |
| object * | player_first |
| uint32 * | bitmap |
| uint32 | pathfinding_id |
| uint32 | map_flags |
| uint32 | reset_time |
| uint32 | reset_timeout |
| sint32 | timeout |
| uint32 | swap_time |
| uint32 | in_memory |
| uint32 | traversed |
| int | darkness |
| int | light_value |
| int | difficulty |
| int | height |
| int | width |
| int | enter_x |
| int | enter_y |
| int | compressed |
In general, code should always use the macros above (or functions in map.c) to access many of the values in the map structure. Failure to do this will almost certainly break various features.
You may think it is safe to look at width and height values directly (or even through the macros), but doing so will completely break map tiling.
| char* mapdef::bg_music |
| int mapdef::darkness |
Indicates the base light value on this map.
This value is only used when the map is not marked as outdoor.
| int mapdef::enter_x |
Used to indicate the X position of where to put the player when he logs in to the map if the map has flag MAP_FLAG_FIXED_LOGIN set.
Also used by exits as the default X location if the exit doesn't have one set.
| int mapdef::enter_y |
Used to indicate the Y position of where to put the player when he logs in to the map if the map has flag MAP_FLAG_FIXED_LOGIN set.
Also used by exits as the default Y location if the exit doesn't have one set.
| struct map_event* mapdef::events |
| int mapdef::height |
| char* mapdef::msg |
| char* mapdef::name |
| struct mapdef* mapdef::next |
For which traversal is mapstruct::bitmap valid.
| struct mapdef* mapdef::previous |
| struct regiondef* mapdef::region |
| struct mapdef* mapdef::tile_map[TILED_MAPS] |
| shstr* mapdef::tile_path[TILED_MAPS] |
| char* mapdef::tmpname |
Used by relative_tile_position() to mark visited maps
| char* mapdef::weather |
| int mapdef::width |
1.7.4