36 extern int check_altar_sacrifice(
const object *altar,
const object *sacrifice,
int remove_others,
int *toremove);
43 extern void check_inv(
object *op,
object *trig);
49 extern sint64
new_exp(
const object *ob);
61 extern void fatal(
int err);
74 extern unsigned find_face(
const char *name,
unsigned error);
94 extern void query_weight(
const object *op,
char *buf,
size_t size);
97 extern void query_name(
const object *op,
char *buf,
size_t size);
98 extern void query_base_name(
const object *op,
int plural,
char *buf,
size_t size);
100 extern void describe_item(
const object *op,
const object *owner,
char *retbuf,
size_t size);
129 extern sint64
level_exp(
int level,
double expmul);
133 extern void change_exp(
object *op, sint64 exp,
const char *skill_name,
int flag);
135 extern int did_make_save(
const object *op,
int level,
int bonus);
136 extern void share_exp(
object *op, sint64 exp,
const char *skill,
int flag);
138 extern void LOG(
LogLevel logLevel,
const char *format, ...);
151 extern char *
create_pathname(
const char *name,
char *buf,
size_t size);
154 extern int check_path(
const char *name,
int prepend_dir);
179 extern int on_same_map(
const object *op1,
const object *op2);
184 extern char *
ob_describe(
const object *op,
const object *observer,
char *buf,
size_t size);
196 extern int can_merge(
object *ob1,
object *ob2);
207 extern void set_owner(
object *op,
object *owner);
208 extern void copy_owner(
object *op,
object *clone);
220 extern void free_object2(
object *ob,
int free_inventory);
224 extern void sub_weight(
object *op,
signed long weight);
226 extern object *
merge_ob(
object *op,
object *top);
233 extern void add_weight(
object *op,
signed long weight);
241 extern void flag_inv(
object *op,
int flag);
250 extern int distance(
const object *ob1,
const object *ob2);
253 extern int dirdiff(
int dir1,
int dir2);
255 extern int can_pick(
const object *who,
const object *item);
259 extern const char *
get_ob_key_value(
const object *op,
const char *
const key);
260 extern int set_ob_key_value(
object *op,
const char *key,
const char *value,
int add_key);
263 extern void get_multi_size(
object *ob,
int *sx,
int *sy,
int *hx,
int *hy);
265 extern char *
path_combine(
const char *src,
const char *dst,
char *path,
size_t size);
269 extern char *
tempnam_local(
const char *dir,
const char *pfx);
270 extern FILE *
tempnam_secure(
const char *dir,
const char *pfx,
char **filename);
275 extern int isqrt(
int n);
288 extern const char *
re_cmp(
const char *str,
const char *regexp);
290 extern int book_overflow(
const char *buf1,
const char *buf2,
size_t booksize);
303 extern int strtoint(
const char *buf);
326 extern char *
ss_dump_table(
int what,
char *buf,
size_t size);
327 extern int buf_overflow(
const char *buf1,
const char *buf2,
size_t bufsize);
366 extern int random_roll(
int min,
int max,
const object *op,
int goodbad);
367 extern sint64
random_roll64(sint64 min, sint64 max,
const object *op,
int goodbad);
368 extern int die_roll(
int num,
int size,
const object *op,
int goodbad);
369 extern int rndm(
int min,
int max);
375 extern const char *
strrstr(
const char *haystack,
const char *needle);
377 extern void replace(
const char *src,
const char *key,
const char *replacement,
char *result,
size_t resultsize);
381 extern int lex_load(
int *depth,
object **items,
int maxdepth,
int map_flags,
int linemode);
395 extern void yyfree(
void *ptr);
396 extern int load_object(FILE *fp,
object *op,
int bufstate,
int map_flags);
401 extern int save_object(FILE *fp,
object *op,
int flag);
void replace_insert_ob_in_map(const char *arch_string, object *op)
object * create_archetype_by_object_name(const char *name)
void dump_map(const mapstruct *m)
void free_all_recipes(void)
const object * pntr_to_god_obj(godlink *godlnk)
void add_abilities(object *op, object *change)
mapstruct * ready_map_name(const char *name, int flags)
archetype * find_archetype_by_object_name(const char *name)
FILE * open_and_uncompress(const char *name, int flag, int *compressed)
char * path_combine_and_normalize(const char *src, const char *dst, char *path, size_t size)
method_ret(* process_func)(ob_methods *, object *)
oblinkpt * get_objectlinkpt(void)
int check_altar_sacrifice(const object *altar, const object *sacrifice, int remove_others, int *toremove)
void verify_button_links(const mapstruct *map)
method_ret(* move_on_func)(ob_methods *, object *, object *, object *)
void identify(object *op)
int need_identify(const object *op)
int on_same_map(const object *op1, const object *op2)
void make_sure_not_seen(const object *op)
object * get_split_ob(object *orig_ob, uint32 nr, char *err, size_t size)
void free_all_archs(void)
void init_hash_table(void)
void free_map(mapstruct *m)
void update_ob_speed(object *op)
void describe_item(const object *op, const object *owner, char *retbuf, size_t size)
int item_matched_string(object *pl, object *op, const char *name)
void free_arch(archetype *at)
sstring stringbuffer_finish_shared(StringBuffer *sb)
const char * get_month_name(const int index)
void reset_object(object *op)
object * find_obj_by_type_subtype(const object *who, int type, int subtype)
void replace_unprintable_chars(char *buf)
void register_apply(int ob_type, apply_func method)
object * present_arch_in_ob(const archetype *at, const object *op)
void clear_los(object *op)
void ss_dump_statistics(char *buf, size_t size)
int is_old_wraith_pl(object *op)
void change_attr_value(living *stats, int attr, sint8 value)
objectlink * get_objectlink(void)
object * find_object_name(const char *str)
const char * i18n_translate(int language, int id)
void strip_media_tag(char *message)
void dump_abilities(void)
void decay_objects(mapstruct *m)
void print_los(object *op)
void check_generators(void)
int random_roll(int min, int max, const object *op, int goodbad)
void update_all_map_los(mapstruct *map)
void dump_experience(void)
void dump_all_archetypes(void)
object * merge_ob(object *op, object *top)
int change_abil(object *op, object *tmp)
object * insert_ob_in_map(object *op, mapstruct *m, object *originator, int flag)
region * get_region_by_map(mapstruct *m)
void clean_friendly_list(void)
void free_socket_images(void)
int can_see_monsterP(mapstruct *m, int x, int y, int dir)
object * create_singularity(const char *name)
treasurelist * find_treasurelist(const char *name)
const char * get_ob_key_value(const object *op, const char *const key)
void change_luck(object *op, int value)
int get_power_from_ench(int ench)
void map_remove_unique_files(const mapstruct *map)
void stringbuffer_append_stringbuffer(StringBuffer *sb, const StringBuffer *sb2)
object * get_owner(object *op)
archetype * find_archetype(const char *name)
void delete_map(mapstruct *m)
void yypop_buffer_state(void)
sint64 check_exp_adjust(const object *op, sint64 exp)
char * strerror_local(int errnum, char *buf, size_t size)
void clear_owner(object *op)
void free_all_object_data(void)
int calc_item_power(const object *op, int flag)
void init_archetype_pointers(void)
void apply_anim_suffix(object *who, sstring suffix)
void yyset_out(FILE *out_str)
object * get_object(void)
void update_button(object *op)
void use_trigger(object *op)
archetype * find_archetype_by_object_type_name(int type, const char *name)
int try_find_animation(const char *name)
int operate_altar(object *altar, object **sacrifice)
object * give_skill_by_name(object *op, const char *skill_name)
void give_artifact_abilities(object *op, object *artifact)
object * insert_ob_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
void query_short_name(const object *op, char *buf, size_t size)
mapstruct * get_map_from_coord(mapstruct *m, sint16 *x, sint16 *y)
int die_roll(int num, int size, const object *op, int goodbad)
region * get_region_by_name(const char *region_name)
object * present_in_ob(uint8 type, const object *op)
region * get_region_from_string(const char *name)
void dump_alchemy_costs(void)
object * present_in_ob_by_name(int type, const char *str, const object *op)
void dump_friendly_objects(void)
const typedata * get_typedata(int itemtype)
sint64 random_roll64(sint64 min, sint64 max, const object *op, int goodbad)
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
void free_object2(object *ob, int free_inventory)
void change_exp(object *op, sint64 exp, const char *skill_name, int flag)
region * get_region_struct(void)
void init_experience(void)
void set_attr_value(living *stats, int attr, sint8 value)
void generate_artifact(object *op, int difficulty)
const char * strrstr(const char *haystack, const char *needle)
void fix_multipart_object(object *tmp)
void free_key_values(object *op)
void close_and_delete(FILE *fp, int compressed)
void free_objectlinkpt(oblinkpt *obp)
void check_stat_bounds(living *stats)
int get_dialog_message(object *op, const char *text, struct_dialog_message **message, struct_dialog_reply **reply)
void write_todclock(void)
void bitstostring(long bits, int num, char *str)
int find_dir_2(int x, int y)
void query_base_name(const object *op, int plural, char *buf, size_t size)
object * decrease_ob_nr(object *op, uint32 i)
void yyset_in(FILE *in_str)
int get_face_fallback(int faceset, int imageno)
void path_normalize(char *path)
void create_treasure(treasurelist *t, object *op, int flag, int difficulty, int tries)
int check_trigger(object *op, object *cause)
void push_button(object *op)
void free_string(sstring str)
void get_multi_size(object *ob, int *sx, int *sy, int *hx, int *hy)
int find_dir(mapstruct *m, int x, int y, object *exclude)
void describe_resistance(const object *op, int newline, char *buf, size_t size)
sint64 new_exp(const object *ob)
void query_name(const object *op, char *buf, size_t size)
void update_turn_face(object *op)
void remove_ob(object *op)
int atnr_is_dragon_enabled(int attacknr)
void set_owner(object *op, object *owner)
void free_dialog_information(object *op)
archetype * get_archetype_struct(void)
char * tempnam_local(const char *dir, const char *pfx)
const char * get_periodofday(const int index)
void free_all_treasures(void)
void update_object(object *op, int action)
void create_template_pathname(const char *name, char *buf, size_t size)
const char * get_weekday(const int index)
object * create_archetype(const char *name)
method_ret(* trigger_func)(ob_methods *, object *, object *, int)
archetype * get_archetype_by_type_subtype(int type, int subtype)
void add_weight(object *op, signed long weight)
void free_experience(void)
int save_map(mapstruct *m, int flag)
object * insert_ob_in_ob(object *op, object *where)
char * ob_describe(const object *op, const object *observer, char *buf, size_t size)
void fix_generated_item(object *op, object *creator, int difficulty, int max_magic, int flags)
void remove_statbonus(object *op)
int ob_blocked(const object *ob, mapstruct *m, sint16 x, sint16 y)
client_spell * get_client_spell_state(player *pl, object *spell)
sstring add_string(const char *str)
const char * get_region_msg(const region *r)
void clean_object(object *op)
materialtype_t * name_to_material(const char *name)
void update_los(object *op)
int query_refcount(sstring str)
void tailor_readable_ob(object *book, int msg_type)
void read_bmap_names(void)
void transmute_materialname(object *op, const object *change)
void update_buttons(mapstruct *m)
void get_rangevector(object *op1, const object *op2, rv_vector *retval, int flags)
void drain_stat(object *op)
void yyrestart(FILE *input_file)
void dump_object(object *op, StringBuffer *sb)
archetype * find_treasure_by_name(const treasure *t, const char *name, int depth)
mapstruct * get_empty_map(int sizex, int sizey)
key_value * get_ob_key_link(const object *ob, const char *key)
artifactlist * find_artifactlist(int type)
const readable_message_type * get_readable_message_type(object *readable)
object * present_arch(const archetype *at, mapstruct *m, int x, int y)
const char * get_region_longname(const region *r)
void load_treasures(void)
void register_trigger(int ob_type, trigger_func method)
int out_of_map(mapstruct *m, int x, int y)
int enough_elapsed_time(void)
mapstruct * load_original_map(const char *filename, int flags)
signed long sum_weight(object *op)
void copy_owner(object *op, object *clone)
int has_ability(const object *ob)
int is_friendly(const object *op)
StringBuffer * stringbuffer_new(void)
int check_path(const char *name, int prepend_dir)
char * create_pathname(const char *name, char *buf, size_t size)
void animate_turning(object *op)
int has_carried_lights(const object *op)
void make_path_to_file(const char *filename)
void dump_artifacts(void)
void add_friendly_object(object *op)
object * find_object(tag_t i)
char * stringbuffer_finish(StringBuffer *sb)
void init_artifacts(void)
object * arch_to_object(archetype *at)
void stringbuffer_append_string(StringBuffer *sb, const char *str)
void set_map_reset_time(mapstruct *map)
int allowed_class(const object *op)
method_ret ob_process(object *op)
mapstruct * has_been_loaded(const char *name)
sint64 level_exp(int level, double expmul)
void yyset_lineno(int line_number)
void yyset_debug(int bdebug)
int can_merge(object *ob1, object *ob2)
void init_ob_method_struct(ob_methods *methods, ob_methods *fallback)
void read_client_images(void)
int calculate_difficulty(mapstruct *m)
int set_ob_key_value(object *op, const char *key, const char *value, int add_key)
int dirdiff(int dir1, int dir2)
int find_multi_free_spot_around(object *ob, object *gen, int *hx, int *hy)
int get_button_value(const object *button)
void merge_spell(object *op, sint16 x, sint16 y)
char * strdup_local(const char *str)
void(* describe_func)(const ob_methods *, const object *, const object *, char *buf, size_t size)
void free_all_images(void)
int save_object(FILE *fp, object *op, int flag)
FILE * tempnam_secure(const char *dir, const char *pfx, char **filename)
int find_first_free_spot(const object *ob, mapstruct *m, int x, int y)
char * ss_dump_table(int what, char *buf, size_t size)
object * get_random_mon(int level)
void make_list_like(char *input)
void trigger_connected(objectlink *ol, object *cause, const int state)
void fix_container(object *container)
int book_overflow(const char *buf1, const char *buf2, size_t booksize)
void free_player(player *pl)
int strtoint(const char *buf)
sstring add_refcount(sstring str)
void remove_button_link(object *op)
int get_language(object *op)
void remove_directory(const char *path)
static const flag_definition flags[]
object * check_inv_recursive(object *op, const object *trig)
int blocked_link(object *ob, mapstruct *m, int sx, int sy)
const char * get_season_name(const int index)
object * present(uint8 type, mapstruct *m, int x, int y)
void stringbuffer_finish_socklist(StringBuffer *sb, SockList *sl)
void copy_object(object *op2, object *op)
void clear_archetable(void)
int is_magical(const object *op)
void get_rangevector_from_mapcoord(const mapstruct *m, int x, int y, const object *op2, rv_vector *retval, int flags)
method_ret ob_apply(object *op, object *applier, int aflags)
void get_ob_diff(StringBuffer *sb, object *op, object *op2)
void create_overlay_pathname(const char *name, char *buf, size_t size)
void update_all_los(const mapstruct *map, int x, int y)
const char * re_cmp(const char *str, const char *regexp)
recipelist * get_formulalist(int i)
archetype * try_find_archetype(const char *name)
void free_objectlink(objectlink *ol)
int find_smooth(uint16 face, uint16 *smoothed)
archetype * get_archetype_by_skill_name(const char *skill, int type)
int is_dragon_pl(const object *op)
void register_describe(int ob_type, describe_func method)
int region_is_child_of_region(const region *child, const region *r)
const char * strcasestr_local(const char *s, const char *find)
mapstruct * get_linked_map(void)
void init_ob_types(ob_methods *base_type)
void drain_specific_stat(object *op, int deplete_stats)
void set_materialname(object *op, int difficulty, materialtype_t *nmt)
void replace(const char *src, const char *key, const char *replacement, char *result, size_t resultsize)
int load_object(FILE *fp, object *op, int bufstate, int map_flags)
method_ret ob_trigger(object *op, object *cause, int state)
void remove_from_active_list(object *op)
int set_variable(object *op, char *buf)
object * object_create_clone(object *asrc)
void init_archetypes(void)
void describe_monster(const object *op, char *retbuf, size_t size)
int change_map_light(mapstruct *m, int change)
void player_lvl_adj(object *who, object *op)
method_ret(* apply_func)(ob_methods *, object *, object *, int)
int did_make_save(const object *op, int level, int bonus)
void add_statbonus(object *op)
recipe * get_random_recipe(recipelist *rpl)
void get_search_arr(int *search_arr)
void copy_object_with_inv(object *src_ob, object *dest_ob)
void get_levelnumber(int i, char *buf, size_t size)
object * get_jail_exit(object *op)
void dump_all_objects(void)
sstring find_string(const char *str)
const char * get_name_of_region_for_map(const mapstruct *m)
void animate_object(object *op, int dir)
int find_free_spot(const object *ob, mapstruct *m, int x, int y, int start, int stop)
void calc_perm_exp(object *op)
int is_valid_faceset(int fsn)
sint8 get_attr_value(const living *stats, int attr)
void set_max_time(long t)
void unflag_inv(object *op, int flag)
artifact * locate_recipe_artifact(const recipe *rp, size_t idx)
char * path_combine(const char *src, const char *dst, char *path, size_t size)
void sub_weight(object *op, signed long weight)
void dump_monster_treasure(const char *name)
int rndm(int min, int max)
int buf_overflow(const char *buf1, const char *buf2, size_t bufsize)
int legal_artifact_combination(object *op, artifact *art)
void set_cheat(object *op)
void update_position(mapstruct *m, int x, int y)
void check_inv(object *op, object *trig)
int find_multi_free_spot_within_radius(object *ob, object *gen, int *hx, int *hy)
void set_dragon_name(object *pl, const object *abil, const object *skin)
const typedata * get_typedata_by_name(const char *name)
void print_monsters(void)
godlink * get_rand_god(void)
void make_sure_seen(const object *op)
void register_move_on(int ob_type, move_on_func method)
void register_process(int ob_type, process_func method)
void share_exp(object *op, sint64 exp, const char *skill, int flag)
void arch_info(object *op)
void dump_arch(archetype *at, StringBuffer *sb)
int is_wraith_pl(object *op)
void get_tod(timeofday_t *tod)
void free_all_readable(void)
void write_book_archive(void)
void apply_death_exp_penalty(object *op)
object * generate_treasure(treasurelist *t, int difficulty)
object * get_player_container(object *op)
sint64 check_exp_loss(const object *op, sint64 exp)
void add_button_link(object *button, mapstruct *map, int connected)
int find_animation(const char *name)
int can_pick(const object *who, const object *item)
int get_map_flags(mapstruct *oldmap, mapstruct **newmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny)
void flag_inv(object *op, int flag)
int lex_load(int *depth, object **items, int maxdepth, int map_flags, int linemode)
void clear_player(player *pl)
void fix_object(object *op)
void strip_endline(char *buf)
void time_info(object *op)
int check_move_on(object *op, object *originator)
unsigned find_face(const char *name, unsigned error)
object * object_create_arch(archetype *at)
void query_weight(const object *op, char *buf, size_t size)
static ob_methods base_type
int distance(const object *ob1, const object *ob2)
object * object_get_env_recursive(object *op)
method_ret ob_move_on(object *op, object *victim, object *originator)
void clean_tmp_map(mapstruct *m)
void clear_object(object *op)
void set_abs_magic(object *op, int magic)
void LOG(LogLevel logLevel, const char *format,...)
void free_object(object *ob)
void remove_friendly_object(object *op)