Crossfire Server, Trunk
|
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include "global.h"
#include "sproto.h"
#include "image.h"
#include "quest.h"
#include <gd.h>
#include <gdfonts.h>
#include <gdfontl.h>
#include <gdfontg.h>
Go to the source code of this file.
Data Structures | |
struct | struct_equipment |
struct | struct_map_in_quest |
struct | struct_map_in_quest_list |
struct | struct_map_info |
struct | struct_map_list |
struct | struct_npc_info |
struct | struct_npc_list |
struct | struct_quest |
struct | struct_race |
struct | struct_race_list |
struct | struct_region_info |
struct | struct_slaying_info |
Macros | |
#define | S_CONNECT 4 |
#define | S_CONTAINER 2 |
#define | S_DETECTOR 3 |
#define | S_DOOR 0 |
#define | S_KEY 1 |
#define | S_MAX 5 |
#define | SIZE 50 |
#define | size_large sizes[0] |
#define | size_small sizes[1] |
#define | VARSADD 6 |
Typedefs | |
typedef struct struct_equipment | struct_equipment |
typedef struct struct_map_in_quest | struct_map_in_quest |
typedef struct struct_map_info | struct_map_info |
typedef struct struct_npc_info | struct_npc_info |
typedef struct struct_npc_list | struct_npc_list |
typedef struct struct_quest | struct_quest |
typedef struct struct_race | struct_race |
typedef struct struct_race_list | struct_race_list |
typedef struct struct_region_info | struct_region_info |
Enumerations | |
enum | output_format_type { OF_PNG = 0, OF_JPG = 1 } |
Functions | |
void | account_char_free (Account_Char *chars) |
Account_Char * | account_char_load (const char *account_name) |
void | account_char_save (const char *account, Account_Char *chars) |
static void | add_map (struct_map_info *info, struct_map_list *list) |
static void | add_map_to_quest (struct_map_info *map, const char *name, const char *description) |
static void | add_map_to_region (struct_map_info *map, region *reg) |
static void | add_map_to_slaying (struct_slaying_info *info, int item, struct_map_info *map) |
static void | add_monster (object *monster, struct_map_info *map) |
static void | add_npc_to_map (struct_npc_list *list, const object *npc) |
static void | add_one_item (object *item, struct_map_info *map) |
static void | add_race_to_list (struct_race *race, struct_race_list *list, int check) |
static void | add_region_link (mapstruct *source, mapstruct *dest, const char *linkname) |
static void | add_slaying (struct_map_info *map, object *item) |
static void | add_to_struct_map_in_quest_list (struct_map_in_quest_list *list, struct_map_in_quest *item) |
int | apply_auto (object *op) |
void | apply_auto_fix (mapstruct *m) |
static char * | cat_template (char *source, char *add) |
static void | check_equipment (object *item, struct_map_info *map) |
static void | check_slaying_inventory (struct_map_info *map, object *item) |
void | clean_tmp_files (void) |
void | command_help (object *ob, const char *params) |
static int | compare_map_info (const struct_map_info *left, const struct_map_info *right) |
static void | create_destination (void) |
static struct_map_info * | create_map_info (void) |
static struct_npc_info * | create_npc_info (const object *npc) |
static struct_map_info * | create_tiled_map (void) |
static void | define_quest (const char *name, struct_map_info *mainmap, const char *description) |
void | do_auto_apply (mapstruct *m) |
static void | do_exit_map (mapstruct *map) |
static void | do_help (const char *program) |
static char * | do_map_index (const char *dest, struct_map_list *maps_list, const char *template_page, const char *template_letter, const char *template_map, const char **vars, const char **values) |
static void | do_parameters (int argc, char **argv) |
static void | do_quest_item (const quest_definition *quest, FILE *file) |
static char * | do_template (const char *template, const char **vars, const char **values) |
static void | do_tiled_map_picture (struct_map_info *map) |
void | dragon_ability_gain (object *ob, int x, int y) |
void | draw_ext_info (int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *txt) |
void | draw_ext_info_format (int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) |
static void | dump_unused_maps (void) |
void | emergency_save (int x) |
static struct_equipment * | ensure_unique (struct_equipment *item) |
void | esrv_del_item (player *pl, object *ob) |
void | esrv_send_item (object *ob, object *obx) |
void | esrv_update_item (int flags, object *pl, object *op) |
void | esrv_update_spells (player *pl) |
void | ext_info_map (int color, const mapstruct *map, uint8_t type, uint8_t subtype, const char *str1) |
static void | find_maps (const char *from) |
player * | find_player_partial_name (const char *name) |
static struct_quest * | find_quest_info (const char *name) |
object * | find_skill_by_number (object *who, int skillno) |
static void | fix_exits_for_map (struct_map_info *current, struct_map_list *from, int is_from) |
static void | fix_exits_to_tiled_maps (void) |
static void | fix_map_names (void) |
static void | fix_tiled_map (void) |
static void | fix_tiled_map_monsters (void) |
static void | free_equipment (struct_equipment *equip) |
static int | get_elevation_color (int elevation, gdImagePtr elevationmap) |
static struct_equipment * | get_equipment (void) |
static struct_map_info * | get_map_info (const char *path) |
static struct_quest * | get_quest_info (const char *name) |
static struct_race * | get_race (const char *name) |
static struct_slaying_info * | get_slaying_struct (const char *slaying) |
static void | init_map_list (struct_map_list *list) |
static void | init_npc_list (struct_npc_list *list) |
static void | init_race_list (struct_race_list *list) |
static void | init_struct_map_in_quest_list (struct_map_in_quest_list *list) |
static int | is_blocking (object *item) |
static int | is_road (object *item) |
static int | is_slaying (object *item) |
static int | is_special_equipment (object *item) |
static void | list_map (const char *path) |
int | main (int argc, char **argv) |
static void | merge_tiled_maps (struct_map_info *map, int tile, struct_map_info *tiled_map) |
void | move_firewall (object *ob) |
SockList * | player_get_delayed_buffer (player *pl) |
static void | process_map (struct_map_info *info) |
static void | process_map_lore (struct_map_info *map) |
static void | quest_callback (const quest_definition *quest, void *user) |
static void | read_template (const char *name, char **buffer) |
static void | relative_path (const char *from, const char *to, char *result) |
void | rod_adjust (object *rod) |
static void | save_picture (FILE *file, gdImagePtr pic) |
void | set_darkness_map (mapstruct *m) |
static int | sort_equipment (const void *a, const void *b) |
static int | sort_map_info (const void *left, const void *right) |
static int | sort_map_info_by_level (const void *left, const void *right) |
static int | sort_mapname (const void *left, const void *right) |
static int | sort_race (const void *a, const void *b) |
static int | sort_region (const void *left, const void *right) |
static int | sort_slaying (const void *left, const void *right) |
static int | sort_struct_map_in_quest (const void *left, const void *right) |
static int | sort_system_quest (const void *a, const void *b) |
static int | sort_system_quest_step (const void *a, const void *b) |
static int | sortbyname (const void *a, const void *b) |
static int | tiled_map_need_pic (struct_map_info *map) |
static void | write_all_maps (void) |
static void | write_all_regions (void) |
static void | write_equipment_index (void) |
static void | write_map_page (struct_map_info *map) |
static void | write_maps_by_level (void) |
static void | write_maps_index (void) |
static void | write_npc_list (void) |
static void | write_one_slaying_info (FILE *file, struct_slaying_info *info, int item, const char *with, const char *without) |
static void | write_quests_list (void) |
static void | write_quests_page (void) |
static void | write_race_index (void) |
static void | write_readable_list (void) |
static void | write_region_index (void) |
static void | write_region_page (struct_region_info *reg) |
static void | write_regions_link (void) |
static void | write_slaying_info (void) |
static void | write_slaying_map_name (FILE *file, struct_map_info *map) |
static void | write_tiled_map_page (struct_map_info *map) |
static void | write_tiled_maps (void) |
static void | write_world_info (void) |
static void | write_world_map (void) |
static const char * | yesno (int value) |
This program generates map browsing web pages.
Quick run: without arguments, will make sensible choices.
For help, try the -help option.
The following information is generated:
Since this program browses maps from the first map, only maps linked from there will be processed.
Maps are generated as the server sees them, that is with weather effects, treasures instead of markers, and things like that.
For maps, 2 pictures are generated, one real size and one small-size.
Three maps are generated for the world: raw world map, world map with region information, region information only.
Maps are always sorted, by the map name (part after the last /).
Files are generated based on templates, where tags are replaced by their runtime value.
Templates are recursively included. Here is the list:
Tags must be in the form #TAG#
. To have a # in the code, please put ##. Valid tags are:
To build this program, add the '–enable-mapper' flag to 'configure' then run 'make' at the server root.
Definition in file mapper.c.
#define SIZE 50 |
#define VARSADD 6 |
typedef struct struct_equipment struct_equipment |
One special item (weapon, shield, ...).
typedef struct struct_map_in_quest struct_map_in_quest |
Link between a quest and a map.
typedef struct struct_map_info struct_map_info |
Map information.
typedef struct struct_npc_info struct_npc_info |
Information about a NPC with a custom message.
typedef struct struct_npc_list struct_npc_list |
List of NPCs with a custom message.
typedef struct struct_quest struct_quest |
One quest.
typedef struct struct_race struct_race |
One monster race in the maps.
typedef struct struct_race_list struct_race_list |
Collection of races.
typedef struct struct_region_info struct_region_info |
Region information.
enum output_format_type |
void account_char_free | ( | Account_Char * | chars | ) |
This frees all data associated with the character information.
chars | Data to free. The caller should make sure it no longer uses any data in this list. |
Definition at line 4158 of file mapper.c.
Referenced by account_add_player_cmd(), free_newsocket(), key_confirm_quit(), and START_TEST().
Account_Char* account_char_load | ( | const char * | account_name | ) |
For a given account name, load the character information and return it. It is the responsibility of the caller to call account_char_free() on the returned value to free it.
account_name | Name of the account. The name should be validated before this routine is called (eg, passed checks for legitimate characters and logged in) |
Definition at line 4151 of file mapper.c.
Referenced by account_add_player_cmd(), send_account_players(), and START_TEST().
void account_char_save | ( | const char * | account, |
Account_Char * | chars | ||
) |
Saves the character information for the given account.
account | account name to save data for. |
chars | previously loaded/generated list of character information for this account. |
Definition at line 4155 of file mapper.c.
Referenced by account_add_player_cmd(), free_newsocket(), key_confirm_quit(), save_player(), and START_TEST().
|
static |
Adds a map to specified array, if it isn't already.
info | map to add. |
list | list to add to. |
Definition at line 1547 of file mapper.c.
References guildoracle::list, and disinfect::map.
Referenced by add_map_to_region(), add_map_to_slaying(), add_monster(), add_one_item(), CREMapInformationManager::checkItem(), create_tiled_map(), do_parameters(), fix_exits_for_map(), fix_exits_to_tiled_maps(), fix_tiled_map_monsters(), get_map_info(), merge_tiled_maps(), and process_map().
|
static |
Links a map to a quest.
map | map to link. |
name | quest name. |
description | associated link description. Must not be NULL. |
Definition at line 1275 of file mapper.c.
References add_to_struct_map_in_quest_list(), struct_map_in_quest::description, get_quest_info(), disinfect::map, struct_map_in_quest::map, give::name, and struct_map_in_quest::quest.
Referenced by process_map_lore().
|
static |
Links a map to a region.
Will not readd the map if already linked.
map | map name. |
reg | region to link the map to. |
Definition at line 1693 of file mapper.c.
References add_map(), struct_region_info::is_world, disinfect::map, maps_list, struct_region_info::reg, region_allocated, region_count, regions, struct_region_info::sum, struct_region_info::sum_x, struct_region_info::sum_y, diamondslots::x, and diamondslots::y.
Referenced by process_map().
|
static |
Adds the specified map to the slaying information if not already present.
info | structure to add to. |
item | one of the S_xxx values specifying what type of slaying this is. |
map | map to add. |
Definition at line 1826 of file mapper.c.
References add_map(), disinfect::map, and struct_slaying_info::maps.
Referenced by add_slaying().
|
static |
Adds a monster to the monster list.
monster | monster to add. Can be any part. |
map | map to add the monster to. |
Definition at line 746 of file mapper.c.
References add_map(), add_race_to_list(), get_race(), disinfect::map, MAX, MIN, and struct_race::origin.
Referenced by process_map().
|
static |
Add the specified NPC to the list.
list | where to add the NPC. |
npc | NPC to add. Must have a name and message. |
Definition at line 1525 of file mapper.c.
References create_npc_info(), guildoracle::list, and npc_dialog::npc.
Referenced by process_map().
|
static |
Adds an item to the list of special items.
item | item to add. |
map | map it is on. |
Definition at line 608 of file mapper.c.
References add_map(), arch_to_object(), calc_item_power(), struct_equipment::calc_power, struct_equipment::diff, ensure_unique(), find_artifact(), FLAG_IDENTIFIED, FLAG_UNPAID, free_equipment(), get_equipment(), get_ob_diff(), give_artifact_abilities(), artifactstruct::item, llevError, LOG(), disinfect::map, give::name, struct_equipment::name, object_free(), object_give_identified_properties(), struct_equipment::origin, struct_equipment::power, QUERY_FLAG, SET_FLAG, sstring, stringbuffer_finish(), stringbuffer_new(), diamondslots::x, and diamondslots::y.
Referenced by check_equipment().
|
static |
Appends a race to a race list.
race | race to add. |
list | list to add to. |
check | if 0, don't check if race is already on the list ; else don't make duplicated entries. |
Definition at line 347 of file mapper.c.
References reputation_trigger_connect::check(), and guildoracle::list.
Referenced by add_monster(), fix_tiled_map_monsters(), and get_race().
Creates a link between two maps if they are on different regions.
source | map from. |
dest | map to. |
linkname | name of the link as it should appear. Unused. |
Definition at line 1743 of file mapper.c.
References convert::dest, get_region_by_map(), regiondef::name, regions_link, regions_link_allocated, and regions_link_count.
Referenced by CREMapInformationManager::checkItem(), and process_map().
|
static |
Adds the item's information to the map.
map | map containing the item. |
item | item which slaying field we're considering. |
Definition at line 1838 of file mapper.c.
References add_map_to_slaying(), get_slaying_struct(), disinfect::map, S_CONNECT, S_CONTAINER, S_DOOR, and S_KEY.
Referenced by check_slaying_inventory(), and process_map().
|
static |
Definition at line 1216 of file mapper.c.
References say::item, and guildoracle::list.
Referenced by add_map_to_quest().
int apply_auto | ( | object * | op | ) |
Map was just loaded, handle op's initialization.
Generates shop floor's item, and treasures.
op | object to initialize. |
Definition at line 4088 of file mapper.c.
References CLEAR_FLAG, create_treasure(), FLAG_AUTO_APPLY, FLAG_CURSED, FLAG_DAMNED, FLAG_IS_A_TEMPLATE, FLAG_UNPAID, FOR_INV_FINISH, FOR_INV_PREPARE, generate_treasure(), HAS_RANDOM_ITEMS, identify(), MAX, object_free_drop_inventory(), object_insert_in_map_at(), object_insert_in_ob(), object_remove(), give::op, QUERY_FLAG, SET_FLAG, and Ice::tmp.
Referenced by do_auto_apply().
void apply_auto_fix | ( | mapstruct * | m | ) |
Go through the entire map (only the first time when an original map is loaded) and performs special actions for certain objects (most initialization of chests and creation of treasures and stuff). Calls apply_auto() if appropriate.
m | map to fix. |
Those are dummy functions defined to resolve all symboles. Added as part of glue cleaning. Ryo 2005-07-15
Definition at line 4140 of file mapper.c.
Referenced by enter_unique_map(), generate_random_map(), mapfile_load(), and START_TEST().
|
static |
Concatenates a string, and free concatenated string.
source | string to append to. Can be NULL. |
add | string that is appened. Will be free()d after. Must not be NULL. |
Definition at line 914 of file mapper.c.
Referenced by do_map_index(), write_map_page(), write_maps_by_level(), write_quests_page(), write_region_index(), and write_world_map().
|
static |
Checks if item and its inventory are worthy to be listed.
item | item to check. |
map | map the item is on. |
Definition at line 682 of file mapper.c.
References add_one_item(), FOR_INV_FINISH, FOR_INV_PREPARE, commongive::inv, is_special_equipment(), and disinfect::map.
Referenced by process_map().
|
static |
Recursively checks if the object should be considered for slaying information.
map | map containing the items. |
item | item to consider. Must not be NULL. |
Definition at line 1864 of file mapper.c.
References add_slaying(), FOR_INV_FINISH, FOR_INV_PREPARE, commongive::inv, is_slaying(), and disinfect::map.
Referenced by process_map().
void clean_tmp_files | ( | void | ) |
void command_help | ( | object * | ob, |
const char * | params | ||
) |
Player is asking for some help.
op | player asking for information. |
params | what kind of help to ask for. |
Definition at line 4161 of file mapper.c.
Referenced by command_knowledge(), command_party(), command_quest(), command_shutdown(), and commands_init().
|
static |
Compares struct_map_info according to the map name or the path if equal.
left | first item. |
right | second item. |
Definition at line 1120 of file mapper.c.
References c, struct_map_info::name, struct_map_info::path, strcasecmp(), and struct_map_info::tiled_group.
Referenced by sort_map_info(), and sort_map_info_by_level().
|
static |
Ensures destination directory exists.
Definition at line 3735 of file mapper.c.
References make_path_to_file(), and root.
Referenced by main().
|
static |
Returns an initialised struct_map_info.
Definition at line 1568 of file mapper.c.
References struct_map_info::exits_from, struct_map_info::exits_to, init_map_list(), init_npc_list(), init_race_list(), init_struct_map_in_quest_list(), struct_map_info::min_monster, struct_map_info::monsters, struct_map_info::npcs, struct_map_info::quests, struct_map_info::readable, struct_map_info::tiled_group, and struct_map_info::tiled_maps.
Referenced by create_tiled_map(), and get_map_info().
|
static |
Create the struct_npc_info from the specified NPC. It must have a name and message.
npc | NPC to gather info for. |
Definition at line 1507 of file mapper.c.
References struct_npc_info::message, struct_npc_info::name, npc_dialog::npc, struct_npc_info::x, and struct_npc_info::y.
Referenced by add_npc_to_map().
|
static |
Create a new tiled map and link it to the tiled map list.
Definition at line 1590 of file mapper.c.
References add_map(), create_map_info(), and tiled_map_list.
Referenced by process_map().
|
static |
Sets the main map for a quest.
name | quest name. |
mainmap | main map to associate. |
description | quest description. Must not be NULL. |
Definition at line 1327 of file mapper.c.
References get_quest_info(), give::name, and struct_map_info::path.
Referenced by process_map_lore().
void do_auto_apply | ( | mapstruct * | m | ) |
Definition at line 3936 of file mapper.c.
References apply_auto(), check_trigger(), create_treasure(), FLAG_AUTO_APPLY, FLAG_IS_LINKED, FOR_INV_FINISH, FOR_INV_PREPARE, FOR_MAP_FINISH, FOR_MAP_PREPARE, HAS_RANDOM_ITEMS, m, MAP_HEIGHT, MAP_WIDTH, object_update_speed(), QUERY_FLAG, Ice::tmp, diamondslots::x, and diamondslots::y.
Referenced by process_map().
|
static |
Proceses exit / road / blocking information for specified map into the global infomap map.
If map isn't a world map, won't do anything.
map | map to write info for. |
Definition at line 846 of file mapper.c.
References color_blocking, color_linked_exit, color_road, color_slowing, color_unlinked_exit, elevation_info, elevation_max, elevation_min, FOR_MAP_FINISH, FOR_MAP_PREPARE, infomap, is_blocking(), is_road(), disinfect::map, MAP_HEIGHT, MAP_WIDTH, MAX, MIN, object_get_value(), sstring, diamondslots::x, and diamondslots::y.
Referenced by process_map().
|
static |
Prints usage information, and exit.
program | program path. |
Definition at line 3628 of file mapper.c.
Referenced by do_parameters().
|
static |
Creates the page for a map index.
dest | path relative to root where the index will be located, without leading /. Used to compute the map's path relative to the index. |
maps_list | maps in the index. |
template_page | global page template. |
template_letter | template for one letter of the index. |
template_map | template for one map. |
vars | template variables to give access to. |
values | associated values. |
Definition at line 2148 of file mapper.c.
References cat_template(), disinfect::count, struct_map_list::count, convert::dest, do_template(), generate_index, disinfect::map, struct_map_list::maps, maps_list, struct_map_info::name, struct_map_info::path, relative_path(), sort_map_info(), struct_map_info::tiled_group, Ice::tmp, tolower, and VARSADD.
Referenced by write_maps_index(), and write_region_page().
|
static |
Handles command-line parameters.
argc | number of parameters, including program name. |
argv | arguments, including program name. |
Definition at line 3663 of file mapper.c.
References add_map(), detail_quests, do_help(), do_regions_link, force_pics, generate_index, generate_pics, get_map_info(), jpeg_quality, list_system_quests, list_unused_maps, map_limit, maps_list, OF_JPG, output_format, python_event::path, rawmaps, root, show_maps, tileset, warn_no_path, world_exit_info, and world_map.
Referenced by main().
|
static |
Definition at line 3557 of file mapper.c.
References struct_map_in_quest_list::count, struct_map_in_quest::description, detail_quests, mad_mage_user::file, find_quest_info(), struct_map_in_quest_list::list, struct_map_in_quest::map, struct_quest::maps, struct_map_info::name, quest_step_definition::next, and sort_system_quest_step().
Referenced by write_quests_list().
|
static |
Processes a template.
Variables in the form #VARIABLE#
will be substituted for specified values.
template | template to process. |
vars | variables to replace. Array must be NULL-terminated. |
values | variables to replace by. Must be the same size as vars, no NULL element allowed. |
Definition at line 985 of file mapper.c.
References disinfect::count.
Referenced by do_map_index(), write_map_page(), write_maps_by_level(), write_quests_page(), write_region_index(), and write_world_map().
|
static |
Generates the large and small pictures for a tiled map. This uses the large/small pictures made during process_map(), so having a map limit could lead to maps not found and invalid results.
map | tiled map to make the picture of. |
Definition at line 2917 of file mapper.c.
References disinfect::count, replace::current, generate_pics, disinfect::map, OF_PNG, make_face_from_files::out, output_extensions, output_format, root, save_picture(), size_large, size_small, and tiled_map_need_pic().
Referenced by write_tiled_map_page().
void dragon_ability_gain | ( | object * | ob, |
int | x, | ||
int | y | ||
) |
When a dragon-player gains a new stage of evolution, he gets some treasure.
who | the dragon player. |
atnr | the attack-number of the ability focus. |
level | ability level. |
Definition at line 4062 of file mapper.c.
Referenced by dragon_level_gain().
void draw_ext_info | ( | int | flags, |
int | pri, | ||
const object * | pl, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | txt | ||
) |
Dummy functions to link the library.
Definition at line 4034 of file mapper.c.
References logfile.
Referenced by adj_stealchance(), adjust_sign_msg(), alchemy_failure_effect(), animate_weapon(), apply_builder_floor(), apply_builder_item(), apply_builder_remove(), apply_builder_wall(), apply_builder_window(), apply_by_living(), apply_check_apply_restrictions(), apply_check_item_power(), apply_check_owner(), apply_manual(), apply_map_builder(), apply_sign(), apply_special(), armour_improver_type_apply(), attack_hth(), attack_melee_weapon(), attack_message(), attack_ob_simple(), attempt_do_alchemy(), attempt_jump(), attempt_recipe(), attempt_steal(), basic_emote(), blocked_link(), book_type_apply(), can_pay(), cast_bless(), cast_cause_disease(), cast_change_ability(), cast_change_map_lightlevel(), cast_cone(), cast_consecrate(), cast_create_food(), cast_create_obj(), cast_create_town_portal(), cast_curse(), cast_heal(), cast_identify(), cast_invisible(), cast_item_curse_or_curse(), cast_light(), cast_raise_dead_spell(), cast_smite_spell(), cast_spell(), cast_transfer(), cast_word_of_recall(), cf_handle_type_apply(), cfapi_player_message(), change_abil(), change_spell(), charge_mana_effect(), check_login(), check_name(), check_pick(), command_abil(), command_accountpasswd(), command_addexp(), command_afk(), command_arrest(), command_banish(), command_body(), command_bowmode(), command_brace(), command_create(), command_delete(), command_diff(), command_drop(), command_dropall(), command_dump(), command_empty(), command_face(), command_fire(), command_follow(), command_forget_spell(), command_free(), command_freeze(), command_goto(), command_gsay(), command_insert_into(), command_inventory(), command_invisible(), command_kill_pets(), command_language(), command_learn_spell_or_prayer(), command_list(), command_loadplugin(), command_loadtest(), command_lock_item(), command_mark(), command_mon_aggr(), command_nowiz(), command_overlay_reset(), command_overlay_save(), command_party(), command_passwd(), command_patch(), command_peaceful(), command_pickup(), command_possess(), command_purge_quest(), command_purge_quest_definitions(), command_quest(), command_quit(), command_remove(), command_rename_item(), command_reply(), command_reset(), command_resistances(), command_rskill(), command_run(), command_save(), command_search_items(), command_setgod(), command_settings(), command_showpets(), command_shutdown(), command_sound(), command_stack_clear(), command_stack_list(), command_statistics(), command_stats(), command_strings(), command_style_map_info(), command_summon(), command_take(), command_teleport(), command_tell_all(), command_title(), command_toggle_shout(), command_unloadplugin(), command_use(), command_uskill(), command_whereabouts(), command_wizcast(), command_wizpass(), confuse_living(), create_aura(), create_bomb(), cure_disease(), current_map_info(), cursed_food_effects(), dimension_door(), dispel_rune(), display_help_file(), display_motd(), display_new_pickup(), display_who_entry(), dm_stack_peek(), dm_stack_pop(), dm_stack_push(), do_dump(), do_hidden_move(), do_shutdown(), do_skill(), do_skill_attack(), do_skill_by_number(), do_tell(), do_throw(), do_turn(), do_wizard_dm(), do_wizard_hide(), dragon_ability_gain(), dragon_eat_flesh(), drain_specific_stat(), drop(), drop_object(), eat_common(), emergency_save(), enter_map(), examine(), examine_monster(), exit_type_apply(), exit_type_move_on(), find_or_create_connection_for_map(), find_traps(), fire(), fire_arch_from_position(), fire_bow(), fire_misc_object(), food_type_apply(), get_other_player_from_name(), god_enchants_weapon(), god_intervention(), god_removes_curse(), handle_newcs_player(), help_topics(), hide(), hiscore_check(), hiscore_display(), hole_type_move_on(), identify_altar_type_move_on(), improve_armour(), improve_weapon(), improve_weapon_magic(), improve_weapon_stat(), infect_object(), inscribe_scroll_cmd(), inventory(), jump(), key_change_class(), key_confirm_quit(), key_roll_stat(), kill_object(), kill_player(), kill_player_not_permadeath(), kill_player_permadeath(), knowledge_alchemy_attempt(), knowledge_display(), knowledge_do_attempt(), knowledge_do_display(), knowledge_item_can_be_used_alchemy(), knowledge_show(), knowledge_show_monster_detail(), knowledge_write_player_data(), lighter_type_apply(), list_players(), lock_item_cmd(), look_at(), look_at_cmd(), magic_wall(), map_info(), mark_item_cmd(), meditate(), mimic_type_apply(), monster_can_see_enemy(), monster_communicate(), move_marker(), move_player_attack(), move_symptom(), paralyze_living(), party_send_message(), perceive_self(), pets_follow_owner(), pets_move(), pets_move_golem(), pets_summon_golem(), pets_summon_object(), pick_lock(), pick_up(), pick_up_object(), player_attack_door(), player_lvl_adj(), plugins_display_list(), poison_living(), poison_type_apply(), poisoning_type_process(), potion_type_apply(), power_crystal_type_apply(), pray(), pray_at_altar(), prayer_failure(), prepare_weapon(), print_los(), probe(), put_object_in_sack(), quest_info(), quest_set_state(), quest_write_player_data(), receive_party_password(), receive_play_again(), receive_player_name(), receive_player_password(), recharge(), remove_curse(), remove_depletion(), remove_force(), restore_player(), ring_bell(), save_player(), scroll_failure(), scroll_type_apply(), send_rules(), set_pickup_mode(), shop_describe(), shop_inventory_type_apply(), shop_mat_type_move_on(), show_commands(), show_matching_spells(), show_skills(), skill_attack(), skill_ident(), slow_living(), spell_failure(), spellbook_type_apply(), spring_trap(), tailor_god_spell(), town_portal_destroy_existing(), town_portal_find_force(), trap_disarm(), trapdoor_type_move_on(), treasure_type_apply(), trigger_type_apply(), unapply_for_ob(), unhide(), use_alchemy(), use_oratory(), weapon_improver_type_apply(), write_mark(), write_note(), write_on_item(), write_rune(), write_scroll(), and wrong_password().
void draw_ext_info_format | ( | int | flags, |
int | pri, | ||
const object * | pl, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | format, | ||
... | |||
) |
Sends message to player(s).
This function is the same as draw_ext_info, but takes varargs format. Otherwise, the meaning of all the fields is the same. This is perhaps not the most efficient as we do vsnprintf on both the old and newbuf, but it simplifies the code greatly since we can just call draw_ext_info.
flags | Various flags - mostly color, plus a few specials. |
pri | Priority. It is a little odd - the lower the value, the more important it is. Thus, 0 gets sent no matter what. Otherwise, the value must be less than the listening level that the player has set. Unfortunately, there is no clear guideline on what each level does what. |
pl | Can be passed as NULL - in fact, this will be done if NDI_ALL is set in the flags. |
type | The type MSG_TYPE for the type of message. |
subtype | The type MSG_TYPE for the subtype of message. |
format | The message to send, with optional format specifiers. |
Definition at line 4038 of file mapper.c.
References logfile.
Referenced by action_makes_visible(), alchemy_failure_effect(), altar_type_move_on(), animate_weapon(), apply_builder_item(), apply_builder_remove(), apply_by_living(), apply_check_apply_restrictions(), apply_check_personalized_blessings(), apply_check_race_restrictions(), apply_container(), apply_savebed(), apply_special(), apply_update_ranged_skill(), attack_hth(), attack_message(), attack_ob_simple(), attempt_do_alchemy(), attempt_jump(), attempt_recipe(), attempt_steal(), basic_emote(), become_follower(), blind_living(), book_type_apply(), cast_bless(), cast_cause_disease(), cast_change_ability(), cast_consecrate(), cast_create_missile(), cast_curse(), cast_dust(), cast_identify(), cast_item_curse_or_curse(), cast_raise_dead_spell(), cast_smite_spell(), cast_spell(), change_abil(), change_spell(), check_login(), check_name(), check_pick(), check_sacrifice(), check_shutdown(), check_spell_expiry(), choose_cult_monster(), clock_type_apply(), command_abil(), command_addexp(), command_apply(), command_applymode(), command_arrest(), command_banish(), command_body(), command_bowmode(), command_cast_spell(), command_cointoss(), command_create(), command_debug(), command_drop(), command_examine(), command_execute(), command_face(), command_follow(), command_forget_spell(), command_freeze(), command_help(), command_insert_into(), command_kick2(), command_kill_pets(), command_language(), command_learn_spell_or_prayer(), command_listen(), command_loadplugin(), command_loadtest(), command_lock_item(), command_mark(), command_party(), command_party_rejoin(), command_patch(), command_petmode(), command_pickup(), command_players(), command_quest(), command_remove(), command_rename_item(), command_reply(), command_reset(), command_resistances(), command_rskill(), command_search_items(), command_setgod(), command_settings(), command_showpets(), command_shutdown(), command_speed(), command_stack_list(), command_statistics(), command_stats(), command_strings(), command_style_map_info(), command_summon(), command_take(), command_teleport(), command_tell_all(), command_toggle_shout(), command_unarmed_skill(), command_unloadplugin(), command_use(), command_usekeys(), command_version(), command_whereabouts(), command_wimpy(), converter_type_move_on(), create_player_cmd(), cure_disease(), current_map_info(), current_region_info(), deep_swamp_type_move_on(), deep_swamp_type_process(), display_new_pickup(), dm_stack_pop(), dm_stack_push(), do_follow(), do_forget_spell(), do_harvest(), do_learn_spell(), do_light(), do_skill_attack(), do_tell(), do_throw(), do_turn(), do_wizard_hide(), dragon_ability_gain(), dragon_eat_flesh(), dragon_level_gain(), drop_object(), empty_container(), enter_exit(), enter_fixed_template_map(), enter_player_maplevel(), enter_unique_map(), examine(), exit_type_apply(), find_best_player_hth_skill(), find_key(), find_throw_ob(), fire_bow(), fire_misc_object(), follower_remove_given_items(), food_type_apply(), gate_type_process(), get_dm_object(), get_spell_by_name(), god_enchants_weapon(), god_examines_item(), god_examines_priest(), god_gives_present(), god_intervention(), hiscore_check(), hiscore_display(), hit_with_one_attacktype(), i18n_list_languages(), identify_altar_type_move_on(), identify_object_with_skill(), improve_weapon(), improve_weapon_stat(), inventory(), key_change_class(), key_confirm_quit(), key_roll_stat(), kill_object(), kill_player_not_permadeath(), knowledge_alchemy_attempt(), knowledge_display(), knowledge_do_display(), knowledge_give(), lamp_type_apply(), leave(), lightable_type_apply(), lighter_type_apply(), list_players(), lock_item_cmd(), login_check_shutdown(), look_at(), magic_wall(), make_matcher(), malloc_info(), map_info(), mark_item_cmd(), monster_can_detect_enemy(), monster_communicate(), new_player_cmd(), party_form(), party_join(), party_leave(), peacemaker_type_process(), perceive_self(), pets_move_golem(), pets_summon_golem(), pets_summon_object(), pick_up(), player_attack_door(), plugins_display_list(), poison_living(), polymorph_melt(), potion_type_apply(), pray_at_altar(), prayer_failure(), print_tod(), process_object(), push_ob(), put_object_in_sack(), quest_display(), quest_info(), quest_list(), quest_set_state(), quest_start(), recharge(), recursive_roll(), remove_force(), remove_special_prayers(), resurrect_player(), sack_can_hold(), save_life(), save_player(), save_throw_object(), scroll_type_apply(), sell_item(), send_news(), shop_describe(), shop_inventory_type_apply(), shop_pay_unpaid(), show_matching_spells(), show_skills(), singing(), skill_ident(), skillscroll_type_apply(), spell_consume_items(), spellbook_type_apply(), swap_map(), swap_random_stats(), swap_stat(), time_info(), transmute_item_to_flower(), transport_type_apply(), trap_disarm(), trap_see(), treasure_type_apply(), unapply_for_ob(), unapply_special(), unhide(), use_alchemy(), use_oratory(), use_skill(), worship_forbids_use(), write_note(), write_on_item(), write_rune(), and write_scroll().
|
static |
Writes the list of unused maps, maps found in the directories but not linked from the other maps.
Definition at line 3283 of file mapper.c.
References dump(), guild_entry::found, found_maps, found_maps_count, npc_dialog::index, python_event::path, and root.
Referenced by main().
void emergency_save | ( | int | x | ) |
|
static |
Searches the item list for an identical item, except maps.
item | item to search. The variable may be freed, so must not be used after calling this function. |
Definition at line 569 of file mapper.c.
References struct_equipment::calc_power, reputation_trigger_connect::check(), struct_equipment::diff, equipment_allocated, equipment_count, free_equipment(), say::item, struct_equipment::name, struct_equipment::power, and special_equipment.
Referenced by add_one_item().
void esrv_del_item | ( | player * | pl, |
object * | ob | ||
) |
Tells the client to delete an item. Uses the item command with a -1 location.
Definition at line 4072 of file mapper.c.
Referenced by object_remove(), and transmute_item_to_flower().
void esrv_send_item | ( | object * | ob, |
object * | obx | ||
) |
Sends item's info to player.
Definition at line 4059 of file mapper.c.
Referenced by apply_container(), cast_detection(), dragon_ability_gain(), object_insert_in_ob(), and transmute_item_to_flower().
void esrv_update_item | ( | int | flags, |
object * | pl, | ||
object * | op | ||
) |
Updates object *op for player *pl.
flags is a list of values to update to the client (as defined in newclient.h - might as well use the same value both places.
Definition at line 4075 of file mapper.c.
Referenced by animate_weapon(), apply_container(), apply_race_and_class(), apply_special(), book_type_apply(), cancellation(), cast_identify(), cast_item_curse_or_curse(), cfapi_object_set_property(), command_drop(), command_dropall(), command_insert_into(), command_lock_item(), command_rename_item(), command_take(), detect_curse_on_item(), detect_magic_on_item(), drain_wand_charge(), drop_object(), empty_container(), god_enchants_weapon(), god_removes_curse(), hit_with_one_attacktype(), improve_armour(), improve_weapon(), improve_weapon_magic(), insert_objects(), key_change_class(), object_decrease_nrof(), object_increase_nrof(), object_update(), pick_up_object(), player_changer_type_process(), power_crystal_type_apply(), put_object_in_sack(), remove_curse(), sell_item(), send_changed_object(), send_updates(), shop_pay_unpaid(), spellbook_type_apply(), unapply_special(), and weapon_improver_type_apply().
void esrv_update_spells | ( | player * | pl | ) |
This looks for any spells the player may have that have changed their stats. It then sends an updspell packet for each spell that has changed in this way.
Definition at line 4078 of file mapper.c.
Referenced by fix_player().
void ext_info_map | ( | int | color, |
const mapstruct * | map, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | str1 | ||
) |
Writes to everyone on the specified map
color | The color of the message |
map | The map where the players receiving the message are located |
type | The message type |
subtype | The message subtype |
str1 | The message to be sent |
Definition at line 4046 of file mapper.c.
References logfile.
Referenced by cfapi_map_message(), change_map_light(), command_me(), monster_do_say(), monster_do_talk_npc(), operate_altar(), and trigger_connected().
|
static |
Recursively find all all maps in a directory.
from | path to search from, without trailing /. |
Definition at line 3238 of file mapper.c.
References closedir(), Settings::datadir, dirent, mad_mage_user::file, found_maps, found_maps_allocated, found_maps_count, ignore_name, ignore_path, Settings::mapdir, opendir(), python_event::path, readdir(), settings, and takeitem::status.
Referenced by main().
player* find_player_partial_name | ( | const char * | name | ) |
Find a player by a partial name.
plname | name to match. |
Definition at line 4147 of file mapper.c.
Referenced by cfapi_player_find(), command_follow(), command_quest(), command_stats(), command_teleport(), do_follow(), and do_tell().
|
static |
Gets the information for a quest if it exists.
name | quest's name. |
Definition at line 1229 of file mapper.c.
References give::name, quests, and quests_count.
Referenced by do_quest_item(), and get_quest_info().
object* find_skill_by_number | ( | object * | who, |
int | skillno | ||
) |
This returns the first skill pointer of the given subtype (the one that accumulates exp, has the level, etc).
It is presumed that the player will be needing to actually use the skill, so a skill tool will be equipped if one if found to benefit from its bonuses.
This code is basically the same as find_skill_by_name() above, but instead of a skill name, we search by matching subtype.
Warning: skill subtypes are not unique to skills, various skills (eg harvesting-like) will share the same subtype, so this function should only be used if the skill's subtype is known to be used only by one skill.
who | player applying a skill. |
skillno | skill subtype. |
Definition at line 4068 of file mapper.c.
Referenced by compute_price_variation_with_bargaining(), cost_approx_str(), do_skill_by_number(), examine(), god_enchants_weapon(), monster_can_detect_enemy(), object_check_move_on(), price_approx(), and scroll_type_apply().
|
static |
Changes for the list all maps to the tiled map they are part of, if applicable.
current | map currently being processed. |
from | list that contains the exits to/from map to be fixed. |
is_from | if non zero, from is exit_from field, else it is an exit_to. |
Definition at line 2798 of file mapper.c.
References add_map(), struct_map_list::count, replace::current, struct_map_info::exits_from, struct_map_info::exits_to, disinfect::map, struct_map_list::maps, say::max, and struct_map_info::tiled_group.
Referenced by fix_exits_to_tiled_maps().
|
static |
Changes all exits to maps in a tiled map to point directly to the tiled map. Same for region lists.
Definition at line 2817 of file mapper.c.
References add_map(), struct_map_list::count, struct_map_info::exits_from, struct_map_info::exits_to, fix_exits_for_map(), disinfect::map, struct_map_list::maps, maps_list, struct_region_info::maps_list, say::max, region_count, regions, and struct_map_info::tiled_group.
Referenced by main().
|
static |
Ensures all maps have a name (if there was a limit to map processing, some maps will have a NULL name which causes issues).
Definition at line 2709 of file mapper.c.
References struct_map_list::count, struct_map_info::filename, disinfect::map, struct_map_list::maps, maps_list, and struct_map_info::name.
Referenced by main().
|
static |
Ensures all tiled maps have a name, a region, a filename and a path. Will try to find a suitable name and region from the maps in the group.
Definition at line 2729 of file mapper.c.
References struct_map_info::cfregion, struct_map_list::count, struct_map_info::filename, disinfect::map, struct_map_list::maps, give::name, struct_map_info::name, regiondef::name, struct_map_info::path, tiled_map_list, and struct_map_info::tiled_maps.
Referenced by main().
|
static |
Makes all monsters point to tiled maps instead of map when appliable, and merge map monster to tiled map.
Definition at line 2845 of file mapper.c.
References add_map(), add_race_to_list(), struct_race_list::count, struct_map_list::count, disinfect::map, struct_map_list::maps, maps_list, say::max, struct_map_info::monsters, struct_race::origin, struct_race_list::races, races, and struct_map_info::tiled_group.
Referenced by main().
|
static |
Frees a struct_equipment.
equip | item to free. |
Definition at line 555 of file mapper.c.
References struct_equipment::diff, and struct_equipment::name.
Referenced by add_one_item(), and ensure_unique().
|
static |
Gets the color for an elevation.
elevation | elevation to get color for. |
elevationmap | picture that will get the color. |
Definition at line 831 of file mapper.c.
References elevation_max, and elevation_min.
Referenced by write_world_info().
|
static |
Gets an empty struct_equipment.
Definition at line 542 of file mapper.c.
References init_map_list(), and struct_equipment::origin.
Referenced by add_one_item().
|
static |
Gets or creates if required the info structure for a map.
path | map to consider. |
Definition at line 1642 of file mapper.c.
References add_map(), struct_map_list::count, create_map_info(), struct_map_info::filename, disinfect::map, struct_map_list::maps, maps_list, python_event::path, struct_map_info::path, and Ice::tmp.
Referenced by CREMapInformationManager::checkItem(), do_parameters(), main(), and process_map().
|
static |
Gets the information for a quest, create the field if needed.
name | quest's name. |
Definition at line 1246 of file mapper.c.
References find_quest_info(), init_struct_map_in_quest_list(), struct_quest::maps, give::name, struct_quest::name, struct_quest::number, quests, quests_allocated, and quests_count.
Referenced by add_map_to_quest(), and define_quest().
|
static |
Returns the race for specified name.
name | monster's name. |
Definition at line 717 of file mapper.c.
References add_race_to_list(), struct_race_list::count, struct_race::count, init_map_list(), say::item, give::name, struct_race::name, struct_race_list::races, and races.
Referenced by add_monster().
|
static |
Returns a struct_slaying_info for specified slaying. Creates a new one if required.
slaying | value to get the structure of. |
Definition at line 1792 of file mapper.c.
References init_map_list(), banquet::l, struct_slaying_info::maps, S_MAX, struct_slaying_info::slaying, slaying_allocated, slaying_count, and slaying_info.
Referenced by add_slaying().
|
static |
Initialises a list structure.
list | list to blank. |
Definition at line 515 of file mapper.c.
References guildoracle::list.
Referenced by create_map_info(), get_equipment(), get_race(), get_slaying_struct(), and main().
|
static |
Initialise a list of NPCs.
list | list to initialise. |
Definition at line 1494 of file mapper.c.
References guildoracle::list.
Referenced by create_map_info().
|
static |
Blanks a struct_race_list.
list | list to blank. |
Definition at line 331 of file mapper.c.
References guildoracle::list.
Referenced by create_map_info(), and main().
|
static |
Definition at line 1210 of file mapper.c.
References guildoracle::list.
Referenced by create_map_info(), and get_quest_info().
|
static |
Checks if item blocks movement or not.
item | ::object to test. |
Definition at line 817 of file mapper.c.
References MOVE_ALL.
Referenced by do_exit_map().
|
static |
Checks if ::object is considered a road or not.
item | ::object to check. |
Definition at line 781 of file mapper.c.
References FLAG_IS_FLOOR, and QUERY_FLAG.
Referenced by do_exit_map().
|
static |
Is the slaying field relevant for this item?
item | item to check. |
Definition at line 1779 of file mapper.c.
Referenced by check_slaying_inventory(), and process_map().
|
static |
Definition at line 523 of file mapper.c.
References FLAG_NO_PICK, IS_ARMOR, IS_ARROW, IS_SHIELD, IS_WEAPON, MOVE_ALL, and QUERY_FLAG.
Referenced by check_equipment().
|
static |
Marks specified path as processed.
path | map to remove. |
Definition at line 1670 of file mapper.c.
References found_maps, found_maps_count, npc_dialog::index, and python_event::path.
Referenced by process_map().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 3755 of file mapper.c.
References cached_pics, color_blocking, color_linked_exit, color_road, color_slowing, color_unlinked_exit, struct_map_list::count, create_destination(), created_pics, Settings::debug, detail_quests, do_parameters(), do_regions_link, dump_unused_maps(), elevation_info, elevation_max, elevation_min, regiondef::fallback, find_faceset(), find_maps(), first_map_path, first_region, fix_exits_to_tiled_maps(), fix_map_names(), fix_tiled_map(), fix_tiled_map_monsters(), force_pics, found_maps, found_maps_count, gdfaces, generate_index, generate_pics, get_faces_count(), get_map_info(), get_region_struct(), index_letter, index_map, index_quest_template, index_region_region_template, index_region_template, index_template, infomap, init_globals(), init_gods(), init_library(), init_map_list(), init_race_list(), init_readable(), init_regions(), is_valid_faceset(), jpeg_quality, level_map_template, level_template, level_value_template, list_system_quests, list_unused_maps, regiondef::longname, map_exit_template, map_exit_to_template, map_limit, map_lore_template, map_monster_after_template, map_monster_before_template, map_monster_between_template, map_monster_one_template, map_no_exit_template, map_no_exit_to_template, map_no_lore_template, map_no_monster_template, map_no_quest_template, map_one_quest_template, map_template, map_with_exit_template, map_with_exit_to_template, map_with_quests_template, struct_map_list::maps, maps_list, say::max, regiondef::name, regiondef::next, OF_JPG, output_extensions, output_format, pics_allocated, process_map(), quest_map_template, quest_template, races, rawmaps, read_template(), region_letter_template, region_map_template, region_template, root, settings, show_maps, sortbyname(), strdup_local, tiled_map_list, tileset, warn_no_path, world_exit_info, world_map, world_map_template, world_row_template, world_template, write_all_maps(), write_all_regions(), write_equipment_index(), write_maps_by_level(), write_maps_index(), write_npc_list(), write_quests_list(), write_quests_page(), write_race_index(), write_readable_list(), write_region_index(), write_regions_link(), write_slaying_info(), write_tiled_maps(), write_world_info(), write_world_map(), and yesno().
|
static |
Merge two tiled maps groups. This can happen if based on processing we do one map with tiled maps, another with tiled maps, and later figure out the tiles are actually linked.
map | the map that being processed has a tiling to a map in another group. Its group will be the final merging group. |
tile | the tile index causing the merge |
tiled_map | the map tiled to another group. Its group will disappear. |
Definition at line 1608 of file mapper.c.
References add_map(), struct_map_list::count, Ice::g, disinfect::map, struct_map_list::maps, struct_map_info::tiled_group, tiled_map_list, and struct_map_info::tiled_maps.
Referenced by process_map().
void move_firewall | ( | object * | ob | ) |
Move for ::FIREWALL.
firewalls fire other spells. The direction of the wall is stored in op->direction. walls can have hp, so they can be torn down.
op | firewall. |
Definition at line 4050 of file mapper.c.
Referenced by legacy_ob_process(), and trigger_connected().
Get a delayed socket buffer, that will be sent after the player's tick is complete. Will fatal() if memory error.
pl | player to get a buffer for. |
Definition at line 4143 of file mapper.c.
Referenced by draw_ext_info(), and quest_set_state().
|
static |
Processes a map.
Generates the map pictures (big and small), and exit information.
info | map to process. |
Definition at line 1880 of file mapper.c.
References add_map(), add_map_to_region(), add_monster(), add_npc_to_map(), add_region_link(), add_slaying(), archininventory::arch, spell_arrow::archetype, cached_pics, struct_map_info::cfregion, check_equipment(), check_slaying_inventory(), create_pathname(), create_tiled_map(), created_pics, face_info::data, face_info::datalen, delete_map(), do_auto_apply(), do_exit_map(), do_regions_link, EXIT_PATH, struct_map_info::exits_from, struct_map_info::exits_to, face_sets::faces, struct_map_info::filename, find_archetype(), find_faceset(), FLAG_FRIENDLY, FLAG_MONSTER, FLAG_UNAGGRESSIVE, FOR_MAP_FINISH, FOR_MAP_PREPARE, force_pics, gdfaces, generate_pics, get_face_fallback(), get_map_info(), get_region_by_map(), struct_map_info::height, mapdef::in_memory, is_slaying(), struct_map_info::level, list_map(), list_unused_maps, struct_map_info::lore, m, make_path_to_file(), MAP_HEIGHT, MAP_IN_MEMORY, MAP_WIDTH, MAX_BUF, merge_tiled_maps(), struct_map_info::name, struct_map_info::npcs, num_sizes, object_get_multi_size(), make_face_from_files::out, output_extensions, output_format, struct_map_info::path, path_combine_and_normalize(), struct_map_info::pic_was_done, pics_allocated, process_map_lore(), QUERY_FLAG, rawmaps, struct_map_info::readable, ready_map_name(), mapdef::reset_time, root, save_picture(), show_maps, size_large, sizes, struct_map_info::tiled_group, struct_map_info::tiled_maps, struct_map_info::tiles, tileset, warn_no_path, struct_map_info::width, diamondslots::x, and diamondslots::y.
Referenced by main().
|
static |
Extracts from the map's lore quest information if found. May modify map->lore.
map | map to process. |
Definition at line 1346 of file mapper.c.
References add_map_to_quest(), define_quest(), disinfect::map, give::name, and give::next.
Referenced by process_map().
|
static |
Definition at line 3543 of file mapper.c.
References list_system_quests, system_quests, and system_quests_count.
Referenced by write_quests_list().
|
static |
Reads a file in memory.
name | file path to read. |
buffer | where to store. Can be left uninitialized in case of errors. |
Definition at line 933 of file mapper.c.
References mad_mage_user::file, and give::name.
Referenced by main().
|
static |
Computes the shortest path from one file to another.
from | origin. |
to | destination. |
result | string that will contain the calculated path. Must be large enough, no test done. |
Definition at line 1053 of file mapper.c.
Referenced by do_map_index(), and write_map_page().
void rod_adjust | ( | object * | rod | ) |
Adjusts rod attributes. This function must be called after a new rod has been created.
rod | the rod to update |
Definition at line 4081 of file mapper.c.
Referenced by fix_generated_item().
|
static |
Saves a map to a file, based on jpg/png settings.
file | opened file to which to save. |
pic | picture to save. |
Definition at line 1727 of file mapper.c.
References mad_mage_user::file, jpeg_quality, OF_PNG, and output_format.
Referenced by do_tiled_map_picture(), process_map(), write_world_info(), and write_world_map().
void set_darkness_map | ( | mapstruct * | m | ) |
Set the darkness level for a map, based on the time of the day.
m | map to alter. |
Definition at line 4065 of file mapper.c.
Referenced by generate_random_map(), and ready_map_name().
|
static |
Sort 2 struct_equipment, first on item power then name.
a | |
b | items to compare. |
Definition at line 699 of file mapper.c.
References disinfect::a, Ice::b, c, banquet::l, ring_occidental_mages::r, and strcasecmp().
Referenced by write_equipment_index().
|
static |
Sorts the struct_map_info according to the map name or the path if equal.
left | first item. |
right | second item. |
Definition at line 1145 of file mapper.c.
References compare_map_info(), banquet::l, and ring_occidental_mages::r.
Referenced by do_map_index(), write_map_page(), and write_race_index().
|
static |
Sorts the struct_map_info according to the map's level, and if equal the name or the path.
left | first item. |
right | second item. |
Definition at line 1161 of file mapper.c.
References c, compare_map_info(), banquet::l, and ring_occidental_mages::r.
Referenced by write_maps_by_level().
|
static |
Sorts the strings according to the last part of the filename (after the last /).
left | first string. |
right | second string. |
Definition at line 1092 of file mapper.c.
References c, banquet::l, ring_occidental_mages::r, and strcasecmp().
Referenced by write_one_slaying_info().
|
static |
Sort 2 struct_race.
a | |
b | items to compare. |
Definition at line 768 of file mapper.c.
References disinfect::a, Ice::b, banquet::l, ring_occidental_mages::r, and strcasecmp().
Referenced by write_map_page(), and write_race_index().
|
static |
Sorts an array of struct_region_info by region name.
left | first region. |
right | second region. |
Definition at line 1180 of file mapper.c.
Referenced by write_all_regions().
|
static |
Helper function to sort an array of struct_slaying_info.
left | first item. |
right | second item. |
Definition at line 3424 of file mapper.c.
References banquet::l, ring_occidental_mages::r, and strcasecmp().
Referenced by write_npc_list(), and write_slaying_info().
|
static |
Sorts 2 struct_map_in_quest, on the map's name or path.
left | |
right | items to compare. |
Definition at line 1297 of file mapper.c.
References c, banquet::l, struct_map_info::name, struct_map_info::path, ring_occidental_mages::r, strcasecmp(), and struct_map_info::tiled_group.
Referenced by write_quests_page().
|
static |
Definition at line 3549 of file mapper.c.
References disinfect::a, and Ice::b.
Referenced by write_quests_list().
|
static |
Definition at line 3553 of file mapper.c.
References disinfect::a, and Ice::b.
Referenced by do_quest_item().
|
static |
Sort values alphabetically Used by qsort to sort values alphabetically.
a | First value |
b | Second value |
Definition at line 900 of file mapper.c.
References disinfect::a, and Ice::b.
Referenced by main().
|
static |
Definition at line 2885 of file mapper.c.
References disinfect::map, output_extensions, output_format, and root.
Referenced by do_tiled_map_picture().
|
static |
Ensures all maps have a name, and writes all map pages.
Definition at line 2873 of file mapper.c.
References struct_map_list::count, disinfect::map, struct_map_list::maps, maps_list, struct_map_info::tiled_group, and write_map_page().
Referenced by main().
|
static |
Generates all map indexes for a region.
Definition at line 2316 of file mapper.c.
References region_count, regions, sort_region(), and write_region_page().
Referenced by main().
|
static |
Writes the item page.
Definition at line 3148 of file mapper.c.
References struct_map_list::count, equipment_count, say::item, disinfect::map, give::name, struct_equipment::origin, make_face_from_files::out, root, sort_equipment(), and special_equipment.
Referenced by main().
|
static |
Write a map page.
map | map to write page of. |
Definition at line 2537 of file mapper.c.
References cat_template(), do_template(), get_region_longname(), m, make_path_to_file(), disinfect::map, map_exit_template, map_exit_to_template, map_lore_template, map_monster_after_template, map_monster_before_template, map_monster_between_template, map_monster_one_template, map_no_exit_template, map_no_exit_to_template, map_no_lore_template, map_no_monster_template, map_no_quest_template, map_one_quest_template, map_template, map_with_exit_template, map_with_exit_to_template, map_with_quests_template, make_face_from_files::out, output_extensions, output_format, item::q, quests, relative_path(), root, sort_map_info(), sort_race(), and Ice::tmp.
Referenced by write_all_maps(), and write_tiled_map_page().
|
static |
Outputs the list of maps sorted by level.
Definition at line 3070 of file mapper.c.
References cat_template(), struct_map_list::count, do_template(), struct_map_info::level, level_map_template, level_template, level_value_template, disinfect::map, maps, struct_map_list::maps, maps_list, give::name, make_face_from_files::out, doors_galore::process(), root, and sort_map_info_by_level().
Referenced by main().
|
static |
Generates global map index, file maps.html.
Definition at line 2328 of file mapper.c.
References do_map_index(), npc_dialog::index, index_letter, index_map, index_template, maps_list, root, and Ice::tmp.
Referenced by main().
|
static |
Write the list of all found NPCs in maps.
Definition at line 3473 of file mapper.c.
References struct_npc_list::count, struct_map_list::count, mad_mage_user::file, disinfect::map, struct_map_list::maps, maps_list, MAX_BUF, struct_npc_info::message, struct_npc_info::name, npc_dialog::npc, struct_npc_list::npc, struct_map_info::npcs, python_event::path, struct_map_info::path, root, slaying_count, slaying_info, sort_slaying(), struct_npc_info::x, and struct_npc_info::y.
Referenced by main().
|
static |
Writes all maps of the specified slaying information.
file | file to write to. |
info | slaying information to write. |
item | which of the S_xxx to write. |
with | text to write when there are maps to write. Mustn't be NULL. |
without | text to write when there are no maps. Can be NULL. |
Definition at line 3393 of file mapper.c.
References struct_map_list::count, mad_mage_user::file, say::item, disinfect::map, struct_map_list::maps, struct_slaying_info::maps, sort_mapname(), and write_slaying_map_name().
Referenced by write_slaying_info().
|
static |
Write the list of quests.
Definition at line 3595 of file mapper.c.
References do_quest_item(), mad_mage_user::file, list_system_quests, MAX_BUF, python_event::path, item::q, quest_callback(), quest_for_each(), root, sort_system_quest(), system_quests, and system_quests_count.
Referenced by main().
|
static |
Writes the global quests page.
Definition at line 1419 of file mapper.c.
References cat_template(), struct_map_in_quest_list::count, struct_map_in_quest::description, struct_quest::description, do_template(), index_quest_template, struct_map_in_quest_list::list, struct_quest::mainmap, disinfect::map, struct_map_in_quest::map, maps, struct_quest::maps, struct_map_info::name, struct_quest::name, make_face_from_files::out, python_event::path, quest_map_template, quest_template, quests, quests_count, root, and sort_struct_map_in_quest().
Referenced by main().
|
static |
Writes the monster information page.
Definition at line 3181 of file mapper.c.
References struct_race_list::count, struct_map_list::count, struct_race::count, say::item, disinfect::map, struct_map_list::maps, give::name, struct_race::name, struct_race::origin, make_face_from_files::out, struct_map_info::path, struct_race_list::races, races, root, sort_map_info(), and sort_race().
Referenced by main().
|
static |
Write the list of all found SIGN and BOOK in maps.
Definition at line 3509 of file mapper.c.
References struct_npc_list::count, struct_map_list::count, mad_mage_user::file, disinfect::map, struct_map_list::maps, maps_list, MAX_BUF, struct_npc_info::message, struct_npc_info::name, struct_npc_list::npc, python_event::path, struct_map_info::path, struct_map_info::readable, root, struct_npc_info::x, and struct_npc_info::y.
Referenced by main().
|
static |
Generates region index.
Definition at line 2350 of file mapper.c.
References cat_template(), disinfect::count, do_template(), mad_mage_user::file, get_region_longname(), index_region_region_template, index_region_template, regiondef::name, make_face_from_files::out, region_count, regions, and root.
Referenced by main().
|
static |
Generates the web page for a region.
reg | region/maps for which to generate. |
Definition at line 2283 of file mapper.c.
References do_map_index(), get_region_longname(), get_region_msg(), npc_dialog::index, struct_region_info::maps_list, regiondef::name, struct_region_info::reg, region_letter_template, region_map_template, region_template, and root.
Referenced by write_all_regions().
|
static |
Write the .dot file representing links between regions.
Definition at line 3348 of file mapper.c.
References do_regions_link, mad_mage_user::file, MAX_BUF, python_event::path, regions_link, regions_link_count, and root.
Referenced by main().
|
static |
Writes all slaying info to file.
Definition at line 3434 of file mapper.c.
References struct_map_list::count, mad_mage_user::file, struct_slaying_info::maps, MAX_BUF, python_event::path, root, S_CONNECT, S_CONTAINER, S_DOOR, S_KEY, struct_slaying_info::slaying, slaying_count, slaying_info, sort_slaying(), and write_one_slaying_info().
Referenced by main().
|
static |
Helper function to write a map to a file with its link and full path.
file | where to write. |
map | map info to write. |
Definition at line 3375 of file mapper.c.
References mad_mage_user::file, and disinfect::map.
Referenced by write_one_slaying_info().
|
static |
Writes the page for a tiled map group.
Definition at line 3048 of file mapper.c.
References do_tiled_map_picture(), disinfect::map, and write_map_page().
Referenced by write_tiled_maps().
|
static |
Outputs all tiled map pages.
Definition at line 3058 of file mapper.c.
References struct_map_list::count, disinfect::map, struct_map_list::maps, tiled_map_list, and write_tiled_map_page().
Referenced by main().
|
static |
Writes the exit information world map.
Definition at line 3306 of file mapper.c.
References elevation_info, elevation_max, elevation_min, mad_mage_user::file, get_elevation_color(), infomap, MAX_BUF, output_extensions, output_format, python_event::path, root, save_picture(), world_exit_info, diamondslots::x, and diamondslots::y.
Referenced by main().
|
static |
Generates a big world map.
Definition at line 2391 of file mapper.c.
References cat_template(), smoking_pipe::color, do_template(), mad_mage_user::file, infomap, disinfect::map, give::name, OF_PNG, make_face_from_files::out, output_extensions, output_format, region_allocated, regions, root, save_picture(), SIZE, struct_region_info::sum, struct_region_info::sum_x, struct_region_info::sum_y, mail_login::total, world_map, world_map_template, world_row_template, world_template, diamondslots::x, and diamondslots::y.
Referenced by main().
|
static |
Helper to write yes/no.
value | value to print. |
Definition at line 3751 of file mapper.c.
References autojail::value.
Referenced by main().
|
static |
Non recreated pics.
Definition at line 431 of file mapper.c.
Referenced by main(), and process_map().
|
static |
Block all movement.
Definition at line 479 of file mapper.c.
Referenced by do_exit_map(), and main().
|
static |
Exit leading to another map.
Definition at line 477 of file mapper.c.
Referenced by do_exit_map(), and main().
|
static |
Road or equivalent.
Definition at line 478 of file mapper.c.
Referenced by do_exit_map(), and main().
|
static |
|
static |
Color for exits without a path set.
Definition at line 476 of file mapper.c.
Referenced by do_exit_map(), and main().
|
static |
Picture statistics. Total created pics.
Definition at line 430 of file mapper.c.
Referenced by main(), and process_map().
|
static |
Whether to show all quests details or not.
Definition at line 384 of file mapper.c.
Referenced by do_parameters(), do_quest_item(), and main().
|
static |
Definition at line 487 of file mapper.c.
Referenced by CREMapInformationManager::checkItem(), do_parameters(), main(), process_map(), and write_regions_link().
|
static |
All elevation spots in the "world_" maps.
Definition at line 482 of file mapper.c.
Referenced by do_exit_map(), main(), and write_world_info().
|
static |
Lowest elevation found.
Definition at line 484 of file mapper.c.
Referenced by do_exit_map(), get_elevation_color(), main(), and write_world_info().
|
static |
Maximal elevation found.
Definition at line 483 of file mapper.c.
Referenced by do_exit_map(), get_elevation_color(), main(), and write_world_info().
|
static |
Allocated items in special_equipment.
Definition at line 314 of file mapper.c.
Referenced by ensure_unique().
|
static |
Number of items in special_equipment.
Definition at line 312 of file mapper.c.
Referenced by ensure_unique(), and write_equipment_index().
|
static |
To force picture regeneration even if map didn't change.
Definition at line 373 of file mapper.c.
Referenced by do_parameters(), main(), and process_map().
|
static |
Maps found in directories.
Definition at line 470 of file mapper.c.
Referenced by dump_unused_maps(), find_maps(), list_map(), and main().
|
static |
|
static |
Number of items in found_maps.
Definition at line 471 of file mapper.c.
Referenced by dump_unused_maps(), find_maps(), list_map(), and main().
|
static |
Definition at line 233 of file mapper.c.
Referenced by main(), and process_map().
|
static |
Whether to do the map index or not.
Definition at line 374 of file mapper.c.
Referenced by do_map_index(), do_parameters(), and main().
|
static |
Whether to generate the picture or not.
Definition at line 372 of file mapper.c.
Referenced by do_parameters(), do_tiled_map_picture(), main(), and process_map().
|
static |
File names to ignore for map search.
Definition at line 3225 of file mapper.c.
Referenced by find_maps().
|
static |
Directories to ignore for map search.
Definition at line 3214 of file mapper.c.
Referenced by find_maps().
|
static |
Index page template: one letter, including the maps it contains.
Definition at line 407 of file mapper.c.
Referenced by main(), and write_maps_index().
|
static |
Index page template: one map.
Definition at line 408 of file mapper.c.
Referenced by main(), and write_maps_index().
|
static |
Definition at line 421 of file mapper.c.
Referenced by main(), and write_quests_page().
|
static |
One region in the region index template.
Definition at line 415 of file mapper.c.
Referenced by main(), and write_region_index().
|
static |
Region index template.
Definition at line 414 of file mapper.c.
Referenced by main(), and write_region_index().
|
static |
Index page template.
Definition at line 406 of file mapper.c.
Referenced by main(), and write_maps_index().
|
static |
World map with exits / roads / blocking / ...
Definition at line 475 of file mapper.c.
Referenced by do_exit_map(), main(), write_world_info(), and write_world_map().
|
static |
Quality for jpg pictures.
Definition at line 449 of file mapper.c.
Referenced by do_parameters(), main(), and save_picture().
|
static |
Definition at line 419 of file mapper.c.
Referenced by main(), and write_maps_by_level().
|
static |
Definition at line 417 of file mapper.c.
Referenced by main(), and write_maps_by_level().
|
static |
Definition at line 418 of file mapper.c.
Referenced by main(), and write_maps_by_level().
|
static |
Whether to show 'system' quests or not.
Definition at line 385 of file mapper.c.
Referenced by do_parameters(), main(), quest_callback(), and write_quests_list().
|
static |
If set, program will list maps found in directory but not linked from the first maps.
Definition at line 469 of file mapper.c.
Referenced by do_parameters(), main(), and process_map().
|
static |
Map template: one exit.
Definition at line 394 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Map template: one exit leading to this map.
Definition at line 397 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Maximum number of maps to browse, -1 for all.
Definition at line 379 of file mapper.c.
Referenced by do_parameters(), and main().
|
static |
Map template: lore.
Definition at line 398 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Map template: after the monster list.
Definition at line 404 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Map template: before the monster list.
Definition at line 401 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Map template: between each monster.
Definition at line 402 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Map template: one monster.
Definition at line 403 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
World map template: no exit.
Definition at line 392 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
World map template: no exit leading to this map.
Definition at line 395 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Map template: no lore.
Definition at line 399 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Map template: no monster.
Definition at line 400 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Definition at line 425 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Definition at line 427 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
|
static |
Map template: exit template.
Definition at line 393 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Map template: exits leading to this map.
Definition at line 396 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Definition at line 426 of file mapper.c.
Referenced by main(), and write_map_page().
|
static |
Maps to process or found.
Definition at line 296 of file mapper.c.
Referenced by add_map_to_region(), do_map_index(), do_parameters(), fix_exits_to_tiled_maps(), fix_map_names(), fix_tiled_map_monsters(), get_map_info(), main(), write_all_maps(), write_maps_by_level(), write_maps_index(), write_npc_list(), and write_readable_list().
|
static |
Definition at line 376 of file mapper.c.
Referenced by process_map().
|
static |
Extensions depending on output format.
Definition at line 440 of file mapper.c.
Referenced by do_tiled_map_picture(), main(), process_map(), tiled_map_need_pic(), write_map_page(), write_world_info(), and write_world_map().
|
static |
Selected output format.
Definition at line 446 of file mapper.c.
Referenced by do_parameters(), do_tiled_map_picture(), main(), process_map(), save_picture(), tiled_map_need_pic(), write_map_page(), write_world_info(), and write_world_map().
|
static |
Number of created pictures for GD.
Definition at line 369 of file mapper.c.
Referenced by main(), and process_map().
|
static |
Definition at line 423 of file mapper.c.
Referenced by main(), and write_quests_page().
|
static |
Definition at line 422 of file mapper.c.
Referenced by main(), and write_quests_page().
|
static |
All quests in the game.
Definition at line 1204 of file mapper.c.
Referenced by find_quest_info(), get_quest_info(), write_map_page(), and write_quests_page().
|
static |
Allocated items in quests.
Definition at line 1208 of file mapper.c.
Referenced by get_quest_info().
|
static |
Count of quests.
Definition at line 1206 of file mapper.c.
Referenced by find_quest_info(), get_quest_info(), and write_quests_page().
|
static |
Monsters found in maps.
Definition at line 324 of file mapper.c.
Referenced by fix_tiled_map_monsters(), get_race(), main(), and write_race_index().
|
static |
Whether to generate raw pics or instancied ones.
Definition at line 452 of file mapper.c.
Referenced by do_parameters(), main(), and process_map().
|
static |
Allocated size of regions.
Definition at line 467 of file mapper.c.
Referenced by add_map_to_region(), and write_world_map().
|
static |
Count of regions.
Definition at line 466 of file mapper.c.
Referenced by add_map_to_region(), assign_region_parents(), fix_exits_to_tiled_maps(), write_all_regions(), and write_region_index().
|
static |
One letter for the region.
Definition at line 411 of file mapper.c.
Referenced by main(), and write_region_page().
|
static |
Region page template: one map.
Definition at line 412 of file mapper.c.
Referenced by main(), and write_region_page().
|
static |
Region page template.
Definition at line 410 of file mapper.c.
Referenced by main(), and write_region_page().
|
static |
Found regions.
Definition at line 465 of file mapper.c.
Referenced by add_map_to_region(), fix_exits_to_tiled_maps(), write_all_regions(), write_region_index(), and write_world_map().
|
static |
Definition at line 488 of file mapper.c.
Referenced by add_region_link(), and write_regions_link().
|
static |
Definition at line 490 of file mapper.c.
Referenced by add_region_link().
|
static |
Definition at line 489 of file mapper.c.
Referenced by add_region_link(), and write_regions_link().
|
static |
Path to store generated files. Relative or absolute, shouldn't end with a /
Definition at line 366 of file mapper.c.
Referenced by addArchetypes(), create_destination(), do_parameters(), do_tiled_map_picture(), dump_unused_maps(), CREResourcesWindow::fillArchetypes(), CREResourcesWindow::fillArtifacts(), CREResourcesWindow::fillFaces(), CREResourcesWindow::fillFacesets(), CREResourcesWindow::fillFormulae(), CREResourcesWindow::fillGeneralMessages(), CREResourcesWindow::fillMaps(), CREResourcesWindow::fillMessages(), CREResourcesWindow::fillQuests(), CREResourcesWindow::fillRandomMaps(), CREResourcesWindow::fillScripts(), main(), process_map(), CRETreasurePanel::setItem(), CREFacePanel::setItem(), CREAnimationPanel::setItem(), CREQuestPanel::setItem(), CREMessagePanel::setItem(), tiled_map_need_pic(), write_equipment_index(), write_map_page(), write_maps_by_level(), write_maps_index(), write_npc_list(), write_quests_list(), write_quests_page(), write_race_index(), write_readable_list(), write_region_index(), write_region_page(), write_regions_link(), write_slaying_info(), write_world_info(), and write_world_map().
|
static |
If set, will generate much information on map loaded.
Definition at line 380 of file mapper.c.
Referenced by do_parameters(), main(), and process_map().
|
static |
Definition at line 375 of file mapper.c.
Referenced by process_map().
|
static |
Allocated size of slaying_info.
Definition at line 508 of file mapper.c.
Referenced by get_slaying_struct().
|
static |
Count of items in slaying_info.
Definition at line 507 of file mapper.c.
Referenced by get_slaying_struct(), write_npc_list(), and write_slaying_info().
|
static |
Found slaying fields.
Definition at line 506 of file mapper.c.
Referenced by get_slaying_struct(), write_npc_list(), and write_slaying_info().
|
static |
Special equipment list.
Definition at line 310 of file mapper.c.
Referenced by ensure_unique(), and write_equipment_index().
|
static |
Definition at line 3541 of file mapper.c.
Referenced by quest_callback(), and write_quests_list().
|
static |
Definition at line 3540 of file mapper.c.
Referenced by quest_callback(), and write_quests_list().
|
static |
Pseudo-maps grouping other maps.
Definition at line 299 of file mapper.c.
Referenced by create_tiled_map(), fix_tiled_map(), main(), merge_tiled_maps(), and write_tiled_maps().
|
static |
Tileset to use to generate pics.
Definition at line 383 of file mapper.c.
Referenced by do_parameters(), main(), and process_map().
|
static |
Whether to warn of exits without a path
Definition at line 455 of file mapper.c.
Referenced by do_parameters(), main(), and process_map().
|
static |
If set, will generate a world map of exits.
Definition at line 382 of file mapper.c.
Referenced by do_parameters(), main(), and write_world_info().
|
static |
If set, will generate a world map.
Definition at line 381 of file mapper.c.
Referenced by do_parameters(), main(), and write_world_map().
|
static |
One map in a row.
Definition at line 389 of file mapper.c.
Referenced by main(), and write_world_map().
|
static |
One row in the world map.
Definition at line 388 of file mapper.c.
Referenced by main(), and write_world_map().
|
static |
World map template.
Definition at line 387 of file mapper.c.
Referenced by main(), and write_world_map().