Crossfire Server, Branch 1.12
R12190
|
This file contains basic map-related structures and macros. More...
Go to the source code of this file.
Data Structures | |
struct | mapdef |
This is a game-map. More... | |
struct | MapSpace |
This structure contains all information related to one map square. More... | |
struct | regiondef |
This is a game region. More... | |
struct | rv_vector |
This is used by get_rangevector to determine where the other creature is. More... | |
struct | shopitem |
Shop-related information for a map. More... | |
Defines | |
#define | AB_NO_PASS 0x04 |
#define | GET_MAP_FACE_OBJ(M, X, Y, L) ((M)->spaces[(X)+(M)->width*(Y)].faces_obj[L]) |
Gets the layer face of specified square. | |
#define | GET_MAP_FACE_OBJS(M, X, Y) ((M)->spaces[(X)+(M)->width*(Y)].faces_obj) |
Returns the layers array so update_position can just copy the entire array over. | |
#define | GET_MAP_FLAGS(M, X, Y) ((M)->spaces[(X)+(M)->width*(Y)].flags) |
Gets map flags. | |
#define | GET_MAP_LIGHT(M, X, Y) ((M)->spaces[(X)+(M)->width*(Y)].light) |
Gets map light. | |
#define | GET_MAP_MOVE_BLOCK(M, X, Y) ((M)->spaces[(X)+(M)->width*(Y)].move_block) |
Gets the blocking state of a square. | |
#define | GET_MAP_MOVE_OFF(M, X, Y) ((M)->spaces[(X)+(M)->width*(Y)].move_off) |
Gets the move_off state of a square. | |
#define | GET_MAP_MOVE_ON(M, X, Y) ((M)->spaces[(X)+(M)->width*(Y)].move_on) |
Gets the move_on state of a square. | |
#define | GET_MAP_MOVE_SLOW(M, X, Y) ((M)->spaces[(X)+(M)->width*(Y)].move_slow) |
Gets the slowing state of a square. | |
#define | GET_MAP_OB(M, X, Y) ((M)->spaces[(X)+(M)->width*(Y)].bottom) |
Gets the bottom object on a map. | |
#define | GET_MAP_PLAYER(M, X, Y) ((M)->spaces[(X)+(M)->width*(Y)].pl) |
#define | GET_MAP_TOP(M, X, Y) ((M)->spaces[(X)+(M)->width*(Y)].top) |
Gets the top object on a map. | |
#define | MAGIC_MAP_HALF MAGIC_MAP_SIZE/2 |
#define | MAGIC_MAP_SIZE 50 |
#define | MAP_BLOCK 0x4 |
Unused. | |
#define | MAP_DARKNESS(m) (m)->darkness |
Map darkness used to enforce the MAX_DARKNESS value. | |
#define | MAP_DIFFICULTY(m) ((m)->difficulty) |
#define | MAP_ENTER_X(m) (m)->enter_x |
Default X coordinate for map enter. | |
#define | MAP_ENTER_Y(m) (m)->enter_y |
Default Y coordinate for map enter. | |
#define | MAP_FLUSH 0x1 |
Always load map from the map directory, and don't do unique items or the like. | |
#define | MAP_HEIGHT(m) (m)->height |
Map height. | |
#define | MAP_IN_MEMORY 1 |
Map is fully loaded. | |
#define | MAP_LAYER_FLOOR 0 |
#define | MAP_LAYER_FLY1 8 |
Flying objects - creatures, spells. | |
#define | MAP_LAYER_FLY2 9 |
Arrows, etc. | |
#define | MAP_LAYER_ITEM1 3 |
Items that can be picked up. | |
#define | MAP_LAYER_ITEM2 4 |
#define | MAP_LAYER_ITEM3 5 |
#define | MAP_LAYER_LIVING1 6 |
Living creatures. | |
#define | MAP_LAYER_LIVING2 7 |
#define | MAP_LAYER_NO_PICK1 1 |
Non pickable ground objects. | |
#define | MAP_LAYER_NO_PICK2 2 |
Non pickable ground objects. | |
#define | MAP_LAYERS 10 |
#define | MAP_LOADING 3 |
This map is being loaded. | |
#define | MAP_NOSMOOTH(m) (m)->nosmooth |
#define | MAP_OUTDOORS(m) ((m)->outdoor) |
#define | MAP_OVERLAY 0x10 |
Map to load is an overlay. | |
#define | MAP_PLAYER_UNIQUE 0x2 |
This map is player-specific. | |
#define | MAP_RESET_TIMEOUT(m) ((m)->reset_timeout) |
#define | MAP_SAVING 4 |
Map being saved. | |
#define | MAP_SIZE(m) ((m)->width*(m)->height) |
Convenient function - total number of spaces is used in many places. | |
#define | MAP_STYLE 0x8 |
Active objects shouldn't be put on active list. | |
#define | MAP_SWAP_TIME(m) ((m)->swap_time) |
#define | MAP_SWAPPED 2 |
Map spaces have been saved to disk. | |
#define | MAP_TIMEOUT(m) ((m)->timeout) |
#define | MAP_WHEN_RESET(m) ((m)->reset_time) |
This is when the map will reset. | |
#define | MAP_WIDTH(m) (m)->width |
Map width. | |
#define | OUT_OF_REAL_MAP(M, X, Y) ((X) < 0 || (Y) < 0 || (X) >= (M)->width || (Y) >= (M)->height) |
Checks if a square is out of the map. | |
#define | P_BLOCKSVIEW 0x01 |
This spot blocks the player's view. | |
#define | P_IS_ALIVE 0x10 |
Something alive is on this space. | |
#define | P_NEED_UPDATE 0x40 |
This space is out of date. | |
#define | P_NEW_MAP 0x200 |
Coordinates passed result in a new tiled map. | |
#define | P_NO_CLERIC 0x20 |
No clerical spells cast here. | |
#define | P_NO_ERROR 0x80 |
Purely temporary - if set, update_position does not complain if the flags are different. | |
#define | P_NO_MAGIC 0x02 |
Spells (some) can't pass this object. | |
#define | P_OUT_OF_MAP 0x100 |
This space is outside the map. | |
#define | P_PLAYER 0x08 |
There is a player on this space. | |
#define | SAVE_ERROR_CLOSE -6 |
Close error for regular file. | |
#define | SAVE_ERROR_NO_PATH -4 |
Map had no path set. | |
#define | SAVE_ERROR_NOT_IN_MEMORY -10 |
Map to swap isn't in memory. | |
#define | SAVE_ERROR_OK 0 |
No error. | |
#define | SAVE_ERROR_PLAYER -11 |
Player on map to save. | |
#define | SAVE_ERROR_RCREATION -1 |
Couldn't create the regular save file. | |
#define | SAVE_ERROR_RRENAME -7 |
Couldn't rename regular temporary file. | |
#define | SAVE_ERROR_UCREATION -2 |
Couldn't create the file for unique objects. | |
#define | SAVE_ERROR_URENAME -5 |
Couldn't rename unique temporary file. | |
#define | SAVE_ERROR_WRITE -3 |
Write error. | |
#define | SAVE_FLAG_NO_REMOVE 2 |
If set, objects are not removed while saving. | |
#define | SAVE_FLAG_SAVE_UNPAID 1 |
If set, unpaid items will be saved. | |
#define | SAVE_MODE_INPLACE 1 |
Map is saved from where it was loaded. | |
#define | SAVE_MODE_NORMAL 0 |
No special handling. | |
#define | SAVE_MODE_OVERLAY 2 |
Map is persisted as an overlay. | |
#define | SET_MAP_FACE_OBJ(M, X, Y, C, L) ((M)->spaces[(X)+(M)->width*(Y)].faces_obj[L] = C) |
Sets the layer face of specified square. | |
#define | SET_MAP_FLAGS(M, X, Y, C) ((M)->spaces[(X)+(M)->width*(Y)].flags = C) |
Sets map flags. | |
#define | SET_MAP_LIGHT(M, X, Y, L) ((M)->spaces[(X)+(M)->width*(Y)].light = L) |
Sets map lighe. | |
#define | SET_MAP_MOVE_BLOCK(M, X, Y, C) ((M)->spaces[(X)+(M)->width*(Y)].move_block = C) |
Sets the blocking state of a square. | |
#define | SET_MAP_MOVE_OFF(M, X, Y, C) ((M)->spaces[(X)+(M)->width*(Y)].move_off = C) |
Sets the move_off state of a square. | |
#define | SET_MAP_MOVE_ON(M, X, Y, C) ((M)->spaces[(X)+(M)->width*(Y)].move_on = C) |
Sets the move_on state of a square. | |
#define | SET_MAP_MOVE_SLOW(M, X, Y, C) ((M)->spaces[(X)+(M)->width*(Y)].move_slow = C) |
Sets the slowing state of a square. | |
#define | SET_MAP_OB(M, X, Y, tmp) ((M)->spaces[(X)+(M)->width*(Y)].bottom = (tmp)) |
Sets the bottom object on a map. | |
#define | SET_MAP_PLAYER(M, X, Y, C) ((M)->spaces[(X)+(M)->width*(Y)].pl = C) |
#define | SET_MAP_TOP(M, X, Y, tmp) ((M)->spaces[(X)+(M)->width*(Y)].top = (tmp)) |
Sets the top object on a map. | |
Typedefs | |
typedef struct MapSpace | MapSpace |
This structure contains all information related to one map square. | |
typedef struct mapdef | mapstruct |
This is a game-map. | |
typedef struct regiondef | region |
This is a game region. | |
typedef struct rv_vector | rv_vector |
This is used by get_rangevector to determine where the other creature is. | |
typedef struct shopitem | shopitems |
Shop-related information for a map. | |
Variables | |
const char * | map_layer_name [MAP_LAYERS] |
These correspond to the layer names in map.h - since some of the types can be on multiple layers, names are duplicated to correspond to that layer. |
This file contains basic map-related structures and macros.
Definition in file map.h.
#define GET_MAP_FACE_OBJ | ( | M, | |
X, | |||
Y, | |||
L | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].faces_obj[L]) |
Gets the layer face of specified square.
Not multitile aware.
Definition at line 205 of file map.h.
Referenced by draw_client_map2(), magic_mapping_mark(), and magic_mapping_mark_recursive().
#define GET_MAP_FACE_OBJS | ( | M, | |
X, | |||
Y | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].faces_obj) |
Returns the layers array so update_position can just copy the entire array over.
Definition at line 210 of file map.h.
Referenced by update_position().
#define GET_MAP_FLAGS | ( | M, | |
X, | |||
Y | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].flags) |
Gets map flags.
Not multitile aware.
Definition at line 182 of file map.h.
Referenced by find_closest_monster(), find_monster_in_room_recursive(), move_to(), update_object(), and update_position().
#define GET_MAP_LIGHT | ( | M, | |
X, | |||
Y | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].light) |
Gets map light.
Not multitile aware.
Definition at line 186 of file map.h.
Referenced by expand_lighted_sight(), and stand_in_light().
#define GET_MAP_MOVE_BLOCK | ( | M, | |
X, | |||
Y | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].move_block) |
Gets the blocking state of a square.
Not multitile aware.
Definition at line 213 of file map.h.
Referenced by alchemy(), animate_weapon(), attempt_jump(), blocked_link(), cast_cause_disease(), cast_cone(), cast_create_obj(), cast_earth_to_dust(), cast_light(), cast_polymorph(), check_bullet(), check_move_on(), common_process_projectile(), create_bomb(), dimension_door(), do_throw(), find_dir(), fire_arch_from_position(), fire_bolt(), fire_bow(), fire_bullet(), forklightning(), free_object2(), get_pointed_target(), magic_wall(), monster_use_bow(), move_aura(), move_ball_spell(), move_bolt(), move_bullet(), move_missile(), ob_blocked(), ok_to_put_more(), path_to_player(), pet_move(), pick_arrow_target(), roll_ob(), skill_attack(), stand_near_hostile(), steal(), surround_flag3(), teleport(), update_object(), and wall_blocked().
#define GET_MAP_MOVE_OFF | ( | M, | |
X, | |||
Y | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].move_off) |
Gets the move_off state of a square.
Not multitile aware.
Definition at line 228 of file map.h.
Referenced by update_object().
#define GET_MAP_MOVE_ON | ( | M, | |
X, | |||
Y | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].move_on) |
Gets the move_on state of a square.
Not multitile aware.
Definition at line 223 of file map.h.
Referenced by check_move_on(), and update_object().
#define GET_MAP_MOVE_SLOW | ( | M, | |
X, | |||
Y | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].move_slow) |
Gets the slowing state of a square.
Not multitile aware.
Definition at line 218 of file map.h.
Referenced by check_move_on(), and update_object().
#define GET_MAP_OB | ( | M, | |
X, | |||
Y | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].bottom) |
Gets the bottom object on a map.
Not multitile aware.
Definition at line 193 of file map.h.
Referenced by add_exits_to_map(), alchemy(), apply_builder_floor(), apply_builder_item(), apply_builder_remove(), apply_map_builder(), attack_message(), attempt_jump(), blocked_link(), calculate_difficulty(), can_build_over(), cast_cause_disease(), cast_destruction(), cast_detection(), cast_earth_to_dust(), cast_identify(), cast_light(), cast_polymorph(), cast_raise_dead_spell(), cast_transfer(), cfapi_map_get_object_at(), check_bullet(), check_doors(), check_earthwalls(), check_hp(), check_infection(), check_move_on(), check_spell_knockback(), command_style_map_info(), common_process_projectile(), communicate(), coords_in_shop(), counterspell(), decay_objects(), decrease_ob_nr(), delete_unique_items(), dispel_rune(), do_auto_apply(), do_exit_map(), do_harvest(), do_mood_floor(), do_skill_detect_curse(), do_skill_detect_magic(), do_skill_ident(), door_in_square(), esrv_draw_look(), esrv_get_ob_from_count(), find_by_name(), find_closest_monster(), find_dir(), find_monster_in_room_recursive(), find_nearest_living_creature(), find_target_for_friendly_spell(), find_traps(), fix_auto_apply(), free_all_objects(), generate_monster(), get_connection_rune(), get_msg_book(), get_pet_enemy(), get_pointed_target(), get_wall(), hit_map(), include_map_in_map(), increase_ob_nr(), insert_ob_in_map(), is_legal_2ways_exit(), kill_player(), link_multipart_objects(), load_objects(), look_at(), make_map_floor(), merge_spell(), mood_change(), move_detector(), move_golem(), move_marker(), move_player_attack(), move_player_mover(), move_to(), npc_call_help(), nuke_map_region(), obj_count_in_map(), ok_to_put_more(), peacemaker_type_process(), pet_move(), pick_arrow_target(), pick_lock(), pick_random_object(), place_exits(), present(), present_arch(), probe(), process_map(), put_floor(), reflwall(), remove_adjacent_doors(), remove_marking_runes(), remove_monsters(), remove_ob(), remove_trap(), replace_insert_ob_in_map(), retrofit_joined_wall(), roll_ob(), save_objects(), shop_inventory_type_apply(), singing(), skill_attack(), spell_find_dir(), stand_near_hostile(), START_TEST(), steal(), teleport(), try_fit(), unblock_exits(), update_position(), use_alchemy(), use_oratory(), and write_rune().
#define GET_MAP_PLAYER | ( | M, | |
X, | |||
Y | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].pl) |
Definition at line 189 of file map.h.
Referenced by update_object().
#define GET_MAP_TOP | ( | M, | |
X, | |||
Y | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].top) |
Gets the top object on a map.
Not multitile aware.
Definition at line 195 of file map.h.
Referenced by insert_ob_in_map().
#define MAGIC_MAP_HALF MAGIC_MAP_SIZE/2 |
Definition at line 53 of file map.h.
Referenced by draw_magic_map(), magic_mapping_mark(), and magic_mapping_mark_recursive().
#define MAGIC_MAP_SIZE 50 |
Definition at line 52 of file map.h.
Referenced by draw_magic_map(), magic_mapping_mark(), and magic_mapping_mark_recursive().
#define MAP_DARKNESS | ( | m | ) | (m)->darkness |
Map darkness used to enforce the MAX_DARKNESS value.
but IMO, if it is beyond max value, that should be fixed on the map or in the code.
Definition at line 94 of file map.h.
Referenced by expand_lighted_sight(), expand_sight(), insert_ob_in_map(), and insert_ob_in_ob().
#define MAP_DIFFICULTY | ( | m | ) | ((m)->difficulty) |
Definition at line 84 of file map.h.
Referenced by calculate_difficulty(), and load_original_map().
#define MAP_ENTER_X | ( | m | ) | (m)->enter_x |
Default X coordinate for map enter.
Definition at line 104 of file map.h.
Referenced by current_map_info(), dump_map(), enter_exit(), enter_map(), enter_random_map(), enter_random_template_map(), get_linked_map(), and place_exits().
#define MAP_ENTER_Y | ( | m | ) | (m)->enter_y |
Default Y coordinate for map enter.
Definition at line 106 of file map.h.
Referenced by current_map_info(), dump_map(), enter_exit(), enter_map(), enter_random_map(), enter_random_template_map(), get_linked_map(), and place_exits().
#define MAP_HEIGHT | ( | m | ) | (m)->height |
Map height.
Definition at line 99 of file map.h.
Referenced by add_exits_to_map(), adjacent_map(), allocate_map(), apply_map_builder(), calculate_difficulty(), command_style_map_info(), current_map_info(), decay_objects(), delete_unique_items(), do_auto_apply(), do_exit_map(), dump_map(), enter_map(), find_multi_free_spot_around(), find_spot_for_submap(), fix_auto_apply(), fix_walls(), free_all_objects(), generate_monster(), get_linked_map(), get_map_from_coord(), include_map_in_map(), link_multipart_objects(), malloc_info(), out_of_map(), pick_random_object(), place_fountain_with_specials(), place_monsters(), place_special_exit(), place_specials_in_map(), process_map(), save_objects(), shop_inventory_type_apply(), update_all_los(), and update_object().
#define MAP_LAYERS 10 |
Definition at line 60 of file map.h.
Referenced by check_space_for_heads(), draw_client_map2(), magic_mapping_mark(), magic_mapping_mark_recursive(), map2_add_ob(), and update_position().
#define MAP_NOSMOOTH | ( | m | ) | (m)->nosmooth |
Definition at line 108 of file map.h.
Referenced by map2_add_ob().
#define MAP_OUTDOORS | ( | m | ) | ((m)->outdoor) |
#define MAP_RESET_TIMEOUT | ( | m | ) | ((m)->reset_timeout) |
Definition at line 83 of file map.h.
Referenced by get_linked_map(), and set_map_reset_time().
#define MAP_SIZE | ( | m | ) | ((m)->width*(m)->height) |
#define MAP_SWAP_TIME | ( | m | ) | ((m)->swap_time) |
Definition at line 86 of file map.h.
Referenced by apply_savebed().
#define MAP_TIMEOUT | ( | m | ) | ((m)->timeout) |
Definition at line 85 of file map.h.
Referenced by apply_savebed(), command_kick(), current_map_info(), get_linked_map(), leave(), and set_map_timeout().
#define MAP_WHEN_RESET | ( | m | ) | ((m)->reset_time) |
This is when the map will reset.
Definition at line 81 of file map.h.
Referenced by map_info(), and set_map_reset_time().
#define MAP_WIDTH | ( | m | ) | (m)->width |
Map width.
Definition at line 97 of file map.h.
Referenced by add_exits_to_map(), adjacent_map(), allocate_map(), apply_map_builder(), calculate_difficulty(), command_style_map_info(), current_map_info(), decay_objects(), delete_unique_items(), do_auto_apply(), do_exit_map(), draw_magic_map(), dump_map(), enter_map(), find_multi_free_spot_around(), find_spot_for_submap(), fix_auto_apply(), fix_walls(), free_all_objects(), generate_monster(), get_linked_map(), get_map_from_coord(), include_map_in_map(), link_multipart_objects(), malloc_info(), out_of_map(), pick_random_object(), place_fountain_with_specials(), place_monsters(), place_special_exit(), place_specials_in_map(), process_map(), save_objects(), shop_inventory_type_apply(), update_all_los(), and update_object().
#define OUT_OF_REAL_MAP | ( | M, | |
X, | |||
Y | |||
) | ((X) < 0 || (Y) < 0 || (X) >= (M)->width || (Y) >= (M)->height) |
Checks if a square is out of the map.
You should really know what you are doing before using this - you should almost always be using out_of_map() instead, which takes into account map tiling.
Definition at line 238 of file map.h.
Referenced by apply_builder_floor(), apply_builder_wall(), blocked_link(), compute_path(), follow_owner(), insert_ob_in_map(), move_player_attack(), reflwall(), teleport(), and wall_blocked().
#define SET_MAP_FACE_OBJ | ( | M, | |
X, | |||
Y, | |||
C, | |||
L | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].faces_obj[L] = C) |
#define SET_MAP_FLAGS | ( | M, | |
X, | |||
Y, | |||
C | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].flags = C) |
Sets map flags.
Not multitile aware.
Definition at line 184 of file map.h.
Referenced by cfapi_object_set_property(), do_turn(), insert_ob_in_ob(), remove_ob(), update_object(), and update_position().
#define SET_MAP_LIGHT | ( | M, | |
X, | |||
Y, | |||
L | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].light = L) |
Sets map lighe.
Not multitile aware.
Definition at line 188 of file map.h.
Referenced by update_position().
#define SET_MAP_MOVE_BLOCK | ( | M, | |
X, | |||
Y, | |||
C | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].move_block = C) |
Sets the blocking state of a square.
Not multitile aware.
Definition at line 215 of file map.h.
Referenced by update_position().
#define SET_MAP_MOVE_OFF | ( | M, | |
X, | |||
Y, | |||
C | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].move_off = C) |
Sets the move_off state of a square.
Not multitile aware.
Definition at line 230 of file map.h.
Referenced by update_position().
#define SET_MAP_MOVE_ON | ( | M, | |
X, | |||
Y, | |||
C | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].move_on = C) |
Sets the move_on state of a square.
Not multitile aware.
Definition at line 225 of file map.h.
Referenced by update_position().
#define SET_MAP_MOVE_SLOW | ( | M, | |
X, | |||
Y, | |||
C | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].move_slow = C) |
Sets the slowing state of a square.
Not multitile aware.
Definition at line 220 of file map.h.
Referenced by update_position().
#define SET_MAP_OB | ( | M, | |
X, | |||
Y, | |||
tmp | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].bottom = (tmp)) |
Sets the bottom object on a map.
Not multitile aware.
Definition at line 198 of file map.h.
Referenced by insert_ob_in_map(), and remove_ob().
#define SET_MAP_PLAYER | ( | M, | |
X, | |||
Y, | |||
C | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].pl = C) |
Definition at line 190 of file map.h.
Referenced by update_position().
#define SET_MAP_TOP | ( | M, | |
X, | |||
Y, | |||
tmp | |||
) | ((M)->spaces[(X)+(M)->width*(Y)].top = (tmp)) |
Sets the top object on a map.
Not multitile aware.
Definition at line 200 of file map.h.
Referenced by insert_ob_in_map(), and remove_ob().
This is a game-map.
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.
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
This is used by get_rangevector to determine where the other creature is.
get_rangevector takes into account map tiling, so you just can not look the the map coordinates and get the righte value. distance_x/y are distance away, which can be negativbe. direction is the crossfire direction scheme that the creature should head. part is the part of the monster that is closest. Note: distance should be always >=0. I changed it to UINT. MT
Shop-related information for a map.
This is one item type the shop will deal in, and the price-chance.
const char* map_layer_name[MAP_LAYERS] |