version 1.14 | | version 1.15 |
---|
| | |
/* | | /* anim.c */ |
* This file was automatically generated by version 1.7 of cextract. | | extern void free_all_anim(void); |
* Manual editing not recommended. | | extern void init_anim(void); |
* | | extern int find_animation(char *name); |
* Created: Tue May 29 23:45:25 2001 | | |
*/ | | |
#ifndef __CEXTRACT__ | | |
#ifdef __STDC__ | | |
| | |
extern int absdir ( int d ); | | |
extern void add_abilities ( object *op, object *change ); | | |
extern void add_arch ( archetype *at ); | | |
extern void add_button_link ( object *button, mapstruct *map, int connected ); | | |
extern void add_carried_lights ( object *pl ); | | |
extern void add_exp ( object *op, int exp ); | | |
extern void add_friendly_object ( object *op ); | | |
extern void add_god_to_list ( archetype *god_arch ); | | |
extern void add_light_to_list ( object *light, object *op ); | | |
extern void add_light_to_map ( object *ob, mapstruct *map ); | | |
extern char * add_refcount ( char *str ); | | |
extern void add_statbonus ( object *op ); | | |
extern char * add_string ( const char *str ); | | |
extern void add_weight ( object *op, signed long weight ); | | |
extern int adjust_exp ( object *op, int exp ); | | |
extern void allocate_map ( mapstruct *m ); | | |
extern int allowed_class ( object *op ); | | |
extern void animate_object ( object *op ); | | extern void animate_object ( object *op ); |
extern void animate_turning ( object *op ); | | /* arch.c */ |
extern void apply_death_exp_penalty ( object *op ); | | extern archetype *find_archetype_by_object_name(char *name); |
extern int arch_blocked ( archetype *at, mapstruct *m, int x, int y ); | | extern object *get_archetype_by_object_name(char *name); |
| | extern object *find_best_weapon_used_match(object *pl, char *params); |
| | extern int item_matched_string(object *pl, object *op, char *name); |
| | extern void init_archetypes(void); |
extern void arch_info ( object *op ); | | extern void arch_info ( object *op ); |
extern int arch_out_of_map ( archetype *at, mapstruct *m, int x, int y ); | | extern void clear_archetable(void); |
| | extern void init_archetable(void); |
| | extern void dump_arch(archetype *at); |
| | extern void dump_all_archetypes(void); |
| | extern void free_all_archs(void); |
| | extern archetype *get_archetype_struct(void); |
| | extern void first_arch_pass(FILE *fp); |
| | extern void second_arch_pass(FILE *fp); |
| | extern void check_generators(void); |
| | extern void load_archetypes(void); |
extern object *arch_to_object ( archetype *at ); | | extern object *arch_to_object ( archetype *at ); |
extern char * artifact_msg ( int level, int booksize ); | | extern object *create_singularity(char *name); |
extern int baptize_altar ( object *op ); | | extern object *get_archetype(char *name); |
extern void bitstostring ( long bits, int num, char *str ); | | extern unsigned long hasharch(char *str, int tablesize); |
extern void blinded_sight ( object *op ); | | extern archetype *find_archetype(char *name); |
extern int blocked ( mapstruct *m, int x, int y ); | | extern void add_arch(archetype *at); |
extern int blocked_link ( object *ob, int x, int y ); | | extern archetype *type_to_archetype(int type); |
extern int blocked_two ( object *op, int x, int y ); | | extern object *clone_arch(int type); |
extern int blocks_cleric ( mapstruct *m, int x, int y ); | | extern object *ObjectCreateArch(archetype *at); |
extern int blocks_magic ( mapstruct *m, int x, int y ); | | /* button.c */ |
extern int blocks_view ( mapstruct *m, int x, int y ); | | extern void push_button(object *op); |
extern int book_overflow ( char *buf1, char *buf2, int booksize ); | | extern void update_button(object *op); |
extern int buf_overflow ( char *buf1, char *buf2, int bufsize ); | | extern void update_buttons(mapstruct *m); |
extern int calculate_difficulty ( mapstruct *m ); | | extern void use_trigger(object *op); |
extern void calc_perm_exp ( object *op ); | | extern void animate_turning(object *op); |
extern int can_pick ( object *who, object *item ); | | |
extern int change_abil ( object *op, object *tmp ); | | |
extern void change_attr_value ( living *stats, int attr, signed char value ); | | |
extern void change_book ( object *book, int msgtype ); | | |
extern void change_luck ( object *op, int value ); | | |
extern int change_map_light ( mapstruct *m, int change ); | | |
extern int check_altar_sacrifice ( object *altar, object *sacrifice ); | | extern int check_altar_sacrifice ( object *altar, object *sacrifice ); |
extern int check_dm_add_exp_to_obj ( object *exp_ob, int i ); | | extern int operate_altar(object *altar, object **sacrifice); |
extern void check_formulae ( void ); | | extern void trigger_move(object *op, int state); |
extern void check_generators ( void ); | | |
extern void check_inv ( object *op, object *trig ); | | |
extern object * check_inv_recursive ( object *op, object *trig ); | | |
extern int check_path ( char *name, int prepend_dir ); | | |
extern void check_stat_bounds ( living *stats ); | | |
extern int check_trigger ( object *op, object *cause ); | | extern int check_trigger ( object *op, object *cause ); |
extern int check_walk_on ( object *op, object *originator ); | | extern void add_button_link(object *button, mapstruct *map, int connected); |
extern void clean_friendly_list ( void ); | | extern void remove_button_link(object *op); |
extern void clean_object ( object *op ); | | extern objectlink *get_button_links(object *button); |
extern void clean_tmp_map ( mapstruct *m ); | | extern int get_button_value(object *button); |
extern void clear_archetable ( void ); | | |
extern void clear_los ( object *op ); | | |
extern void clear_map ( mapstruct *m ); | | |
extern void clear_object ( object *op ); | | |
extern void clear_owner ( object *op ); | | |
extern object *clone_arch ( int type ); | | |
extern void close_and_delete ( FILE *fp, int compressed ); | | |
extern void copy_map ( mapstruct *m1, mapstruct *m2 ); | | |
extern void copy_object ( object *op2, object *op ); | | |
extern void copy_owner ( object *op, object *clone ); | | |
extern int count_active ( void ); | | |
extern int count_free ( void ); | | |
extern int count_used ( void ); | | |
extern void create_all_treasures ( treasure *t, object *op, int flag, int difficulty, int tries ); | | |
extern void create_one_treasure ( treasurelist *tl, object *op, int flag, int difficulty, int tries ); | | |
extern char *create_pathname ( char *name ); | | |
extern object *create_singularity ( char *name ); | | |
extern void create_treasure ( treasurelist *t, object *op, int flag, int difficulty, int tries ); | | |
extern object *decrease_ob_nr ( object *op, int i ); | | |
extern void delete_map ( mapstruct *m ); | | |
extern char *describe_item ( object *op ); | | |
extern char *describe_resistance ( object *op, int newline ); | | |
extern int dirdiff ( int dir1, int dir2 ); | | |
extern int distance ( object *ob1, object *ob2 ); | | |
extern void do_mood_floor ( object *op, object *op2 ); | | extern void do_mood_floor ( object *op, object *op2 ); |
extern void drain_specific_stat ( object *op, int deplete_stats ); | | extern object *check_inv_recursive(object *op, object *trig); |
extern void drain_stat ( object *op ); | | extern void check_inv(object *op, object *trig); |
extern void dummy_draw_info ( int a, int b, object *ob, const char *txt ); | | extern void verify_button_links(mapstruct *map); |
extern void dummy_function ( void ); | | /* exp.c */ |
| | extern int new_exp(object *ob); |
| | extern int has_ability(object *ob); |
| | /* friend.c */ |
| | extern void add_friendly_object(object *op); |
| | extern void remove_friendly_object(object *op); |
| | extern void dump_friendly_objects(void); |
| | extern void clean_friendly_list(void); |
| | /* glue.c */ |
| | extern void init_function_pointers(void); |
| | extern void set_emergency_save(type_func_int addr); |
| | extern void set_clean_tmp_files(type_func_void addr); |
| | extern void set_fix_auto_apply(type_func_map addr); |
| | extern void set_remove_friendly_object(type_func_ob addr); |
| | extern void set_process_active_maps(type_func_void addr); |
| | extern void set_update_buttons(type_func_map addr); |
| | extern void set_draw_info(type_func_int_int_ob_cchar addr); |
| | extern void set_move_apply(type_move_apply_func addr); |
| | extern void set_draw(type_func_ob addr); |
| | extern void set_monster_check_apply(type_func_ob_ob addr); |
| | extern void set_init_blocksview_players(type_func_void addr); |
| | extern void set_info_map(type_func_int_map_char addr); |
| | extern void set_move_teleporter(type_func_ob addr); |
| | extern void set_move_firewall(type_func_ob addr); |
| | extern void set_trap_adjust(type_func_ob_int addr); |
| | extern void set_move_creator(type_func_ob addr); |
| | extern void set_esrv_send_item(type_func_ob_ob addr); |
| | extern void set_esrv_update_item(type_func_int_ob_ob addr); |
| | extern void set_esrv_del_item(type_func_player_int addr); |
| | extern void fatal(int err); |
extern void dummy_function_int ( int i ); | | extern void dummy_function_int ( int i ); |
extern void dummy_function_int_int ( int i, int j ); | | extern void dummy_function_int_int ( int i, int j ); |
extern void dummy_function_int_ob_ob ( int n, object *ob, object *ob2 ); | | extern void dummy_function_player_int(player *p, int j); |
| | extern void dummy_function(void); |
extern void dummy_function_map ( mapstruct *m ); | | extern void dummy_function_map ( mapstruct *m ); |
extern void dummy_function_mapstr ( int a, mapstruct *map, char *str ); | | |
extern void dummy_function_ob ( object *ob ); | | extern void dummy_function_ob ( object *ob ); |
extern void dummy_function_ob2 ( object *ob, object *ob2 ); | | extern void dummy_function_ob2 ( object *ob, object *ob2 ); |
extern int dummy_function_ob2int ( object *ob, object *ob2 ); | | extern int dummy_function_ob2int ( object *ob, object *ob2 ); |
extern void dummy_function_ob_int ( object *ob, int i ); | | extern void dummy_function_ob_int ( object *ob, int i ); |
extern void dummy_function_player_int ( player *p, int j ); | | |
extern void dummy_function_txtnr ( char *txt, int nr ); | | extern void dummy_function_txtnr ( char *txt, int nr ); |
| | extern void dummy_draw_info(int a, int b, object *ob, const char *txt); |
| | extern void dummy_function_mapstr(int a, mapstruct *map, char *str); |
| | extern void dummy_function_int_ob_ob(int n, object *ob, object *ob2); |
extern void dummy_move_apply_func ( object *ob, object *ob2, object *ob3 ); | | extern void dummy_move_apply_func ( object *ob, object *ob2, object *ob3 ); |
extern void dump_abilities ( void ); | | /* holy.c */ |
extern void dump_alchemy ( void ); | | extern void init_gods(void); |
extern void dump_alchemy_costs ( void ); | | extern void add_god_to_list(archetype *god_arch); |
extern void dump_all_archetypes ( void ); | | extern int baptize_altar(object *op); |
extern void dump_all_maps ( void ); | | extern godlink *get_rand_god(void); |
extern void dump_all_objects ( void ); | | extern object *pntr_to_god_obj(godlink *godlnk); |
extern void dump_arch ( archetype *at ); | | extern void free_all_god(void); |
extern void dump_artifacts ( void ); | | |
extern void dump_friendly_objects ( void ); | | |
extern void dump_gods ( void ); | | extern void dump_gods ( void ); |
extern void dump_map ( mapstruct *m ); | | /* info.c */ |
extern void dump_map_lights ( mapstruct *m ); | | extern void dump_abilities(void); |
extern void dump_monster_treasure ( char *name ); | | extern void print_monsters(void); |
extern void dump_monster_treasure_rec ( char *name, treasure *t, int depth ); | | extern void bitstostring(long bits, int num, char *str); |
extern void dump_object ( object *op ); | | /* image.c */ |
extern void dump_object2 ( object *op ); | | |
extern int enough_elapsed_time ( void ); | | |
extern void expand_lighted_sight ( object *op ); | | |
extern void expand_objects ( void ); | | |
extern void expand_sight ( object *op ); | | |
extern void fatal ( int err ); | | |
extern int FindFace ( char *name, int error ); | | |
extern int find_animation ( char *name ); | | |
extern archetype *find_archetype ( char *name ); | | |
extern artifactlist *find_artifactlist ( int type ); | | |
extern char find_color ( char *name ); | | extern char find_color ( char *name ); |
extern int find_dir ( mapstruct *m, int x, int y, object *exclude ); | | extern int ReadBmapNames(void); |
extern int find_dir_2 ( int x, int y ); | | extern int FindFace(char *name, int error); |
extern int find_first_free_spot ( archetype *at, mapstruct *m, int x, int y ); | | |
extern int find_free_spot ( archetype *at, mapstruct *m, int x, int y, int start, int stop ); | | |
extern long find_ingred_cost ( char *name ); | | |
extern object *find_object ( int i ); | | |
extern object *find_object_name ( char *str ); | | |
extern object *find_skill ( object *op, int skillnr ); | | |
extern char * find_string ( const char *str ); | | |
extern treasurelist *find_treasurelist ( char *name ); | | |
extern archetype *find_treasure_by_name ( treasure *t, char *name, int depth ); | | |
extern void first_arch_pass ( FILE *fp ); | | |
extern void fix_container ( object *container ); | | |
extern void fix_flesh_item ( object *item, object *donor ); | | |
extern void fix_generated_item ( object *op, object *creator, int difficulty, int max_magic, int flags ); | | |
extern void fix_player ( object *op ); | | |
extern void free_all_anim ( void ); | | |
extern void free_all_archs ( void ); | | |
extern void free_all_god ( void ); | | |
extern void free_all_images ( void ); | | extern void free_all_images ( void ); |
extern void free_all_maps ( void ); | | /* init.c */ |
extern void free_all_objects ( mapstruct *m ); | | extern void init_library(void); |
extern void free_all_object_data ( void ); | | extern void init_environ(void); |
extern void free_all_readable ( void ); | | extern void init_globals(void); |
extern void free_all_recipes ( void ); | | extern void init_objects(void); |
extern void free_all_treasures ( void ); | | extern void init_defaults(void); |
extern void free_artifact ( artifact *at ); | | extern void init_dynamic(void); |
extern void free_artifactlist ( artifactlist *al ); | | /* item.c */ |
extern void free_charlinks ( linked_char *lc ); | | extern char *describe_resistance(object *op, int newline); |
extern void free_map ( mapstruct *m, int flag ); | | extern char *query_weight(object *op); |
extern void free_object ( object *ob ); | | |
extern void free_objectlink ( objectlink *ol ); | | |
extern void free_objectlinkpt ( oblinkpt *obp ); | | |
extern void free_player ( player *pl ); | | |
extern void free_string ( char *str ); | | |
extern void free_treasurestruct ( treasure *t ); | | |
extern void generate_artifact ( object *op, int difficulty ); | | |
extern object *generate_treasure ( treasurelist *t, int difficulty ); | | |
extern object *get_archetype ( char *name ); | | |
extern archetype *get_archetype_struct ( void ); | | |
extern signed char get_attr_value ( living *stats, int attr ); | | |
extern objectlink *get_button_links ( object *button ); | | |
extern int get_button_value ( object *button ); | | |
extern mapstruct *get_empty_map ( int sizex, int sizey ); | | |
extern recipelist * get_formulalist ( int i ); | | |
extern char *get_levelnumber ( int i ); | | extern char *get_levelnumber ( int i ); |
extern mapstruct *get_linked_map ( char *path ); | | |
extern int get_magic ( int diff ); | | |
extern object *get_nearest_part ( object *op, object *pl ); | | |
extern object * get_next_mon ( object *tmp ); | | |
extern char *get_number ( int i ); | | extern char *get_number ( int i ); |
extern object *get_object ( void ); | | extern char *ring_desc(object *op); |
| | extern char *query_short_name(object *op); |
| | extern char *query_name(object *op); |
| | extern char *query_base_name(object *op, int plural); |
| | extern char *describe_item(object *op); |
| | extern int is_magical(object *op); |
| | extern int need_identify(object *op); |
| | extern int look_up_spell_name(char *spname); |
| | extern void identify(object *op); |
| | /* links.c */ |
extern objectlink *get_objectlink ( void ); | | extern objectlink *get_objectlink ( void ); |
extern oblinkpt *get_objectlinkpt ( void ); | | extern oblinkpt *get_objectlinkpt ( void ); |
extern char *get_ob_diff ( object *op, object *op2 ); | | extern void free_objectlink(objectlink *ol); |
extern object *get_owner ( object *op ); | | extern void free_objectlinkpt(oblinkpt *obp); |
extern player *get_player_ob ( void ); | | /* living.c */ |
extern object * get_random_mon ( int level ); | | extern void set_attr_value(living *stats, int attr, signed char value); |
extern recipe * get_random_recipe ( recipelist *rpl ); | | extern void change_attr_value(living *stats, int attr, signed char value); |
extern recipelist * get_random_recipelist ( void ); | | extern signed char get_attr_value(living *stats, int attr); |
extern godlink * get_rand_god ( void ); | | extern void check_stat_bounds(living *stats); |
extern object *get_split_ob ( object *orig_ob, int nr ); | | extern int change_abil(object *op, object *tmp); |
extern void give_artifact_abilities ( object *op, object *artifct ); | | extern void drain_stat(object *op); |
extern char * god_info_msg ( int level, int booksize ); | | extern void drain_specific_stat(object *op, int deplete_stats); |
extern unsigned long hasharch ( char *str, int tablesize ); | | extern void change_luck(object *op, int value); |
extern int has_ability ( object *ob ); | | extern void remove_statbonus(object *op); |
extern mapstruct *has_been_loaded ( char *name ); | | extern void add_statbonus(object *op); |
extern int has_carried_lights ( object *op ); | | extern void fix_player(object *op); |
extern void identify ( object *op ); | | extern int allowed_class(object *op); |
extern char * ingred_name ( char *name ); | | |
extern void init_anim ( void ); | | |
extern void init_archetable ( void ); | | |
extern void init_archetypes ( void ); | | |
extern void init_archetype_pointers ( void ); | | |
extern void init_artifacts ( void ); | | |
extern void init_block ( void ); | | |
extern void init_defaults ( void ); | | |
extern void init_dynamic ( void ); | | |
extern void init_environ ( void ); | | |
extern void init_formulae ( void ); | | |
extern void init_function_pointers ( void ); | | |
extern void init_globals ( void ); | | |
extern void init_gods ( void ); | | |
extern void init_hash_table ( void ); | | |
extern void init_library ( void ); | | |
extern void init_objects ( void ); | | |
extern void init_readable ( void ); | | |
extern void init_vars ( void ); | | |
extern object *insert_ob_in_map ( object *op, mapstruct *m, object *originator ); | | |
extern void insert_ob_in_map_simple ( object *op, mapstruct *m ); | | |
extern object *insert_ob_in_ob ( object *op, object *where ); | | |
extern int isqrt ( int n ); | | |
extern int is_magical ( object *op ); | | |
extern object *is_player_inv ( object *op ); | | |
extern uint32 level_exp ( int level, double expmul ); | | extern uint32 level_exp ( int level, double expmul ); |
| | extern void add_exp(object *op, int exp); |
| | extern void player_lvl_adj(object *who, object *op); |
| | extern void calc_perm_exp(object *op); |
| | extern int adjust_exp(object *op, int exp); |
| | extern int check_dm_add_exp_to_obj(object *exp_ob, int i); |
| | extern void apply_death_exp_penalty(object *op); |
| | /* loader.c */ |
extern int lex_load ( object *op, int map_flags ); | | extern int lex_load ( object *op, int map_flags ); |
extern int light_not_listed ( object *op ); | | extern void yyrestart(FILE *input_file); |
extern void load_archetypes ( void ); | | extern void yy_load_buffer_state(void); |
| | extern int yyerror(char *s); |
extern int load_object ( FILE *fp, object *op, int bufstate, int map_flags ); | | extern int load_object ( FILE *fp, object *op, int bufstate, int map_flags ); |
extern void load_objects ( mapstruct *m, FILE *fp, int mapflags ); | | extern int set_variable(object *op, char *buf); |
extern mapstruct *load_original_map ( char *filename, int flags ); | | extern void save_double(char *buf, char *name, double v); |
extern void load_treasures ( void ); | | extern void init_vars(void); |
extern artifact * locate_recipe_artifact ( recipe *rp ); | | extern char *get_ob_diff(object *op, object *op2); |
| | extern void save_object(FILE *fp, object *op, int flag); |
| | /* logger.c */ |
extern void LOG ( LogLevel logLevel, char *format, ... ); | | extern void LOG ( LogLevel logLevel, char *format, ... ); |
extern void log_time ( long process_utime ); | | /* los.c */ |
extern int look_up_spell_name ( char * spname ); | | extern void set_block(int x, int y, int bx, int by); |
| | extern void init_block(void); |
| | extern void clear_los(object *op); |
| | extern int change_map_light(mapstruct *m, int change); |
| | extern void expand_sight(object *op); |
| | extern void add_light_to_list(object *light, object *op); |
| | extern void remove_light_from_list(object *light, object *op); |
| | extern int has_carried_lights(object *op); |
| | extern void add_carried_lights(object *pl); |
| | extern void remove_carried_lights(object *pl, mapstruct *map); |
| | extern void add_light_to_map(object *ob, mapstruct *map); |
| | extern int light_not_listed(object *op); |
| | extern void update_map_lights(mapstruct *m); |
| | extern void expand_lighted_sight(object *op); |
| | extern void blinded_sight(object *op); |
| | extern void update_los(object *op); |
| | extern void update_all_los(mapstruct *map); |
| | extern void print_los(object *op); |
| | extern void make_sure_seen(object *op); |
| | extern void make_sure_not_seen(object *op); |
| | /* ltostr.c */ |
extern char *ltostr10 ( signed long n ); | | extern char *ltostr10 ( signed long n ); |
extern int magic_from_difficulty ( int difficulty ); | | extern void save_long(char *buf, char *name, long n); |
extern void make_formula_book ( object *book, int level ); | | /* map.c */ |
| | extern mapstruct *has_been_loaded(char *name); |
| | extern char *create_pathname(char *name); |
| | extern int check_path(char *name, int prepend_dir); |
| | extern void dump_map_lights(mapstruct *m); |
| | extern void dump_map(mapstruct *m); |
| | extern void dump_all_maps(void); |
| | extern int wall(mapstruct *m, int x, int y); |
| | extern int blocks_view(mapstruct *m, int x, int y); |
| | extern int blocks_magic(mapstruct *m, int x, int y); |
| | extern int blocks_cleric(mapstruct *m, int x, int y); |
| | extern int blocked(mapstruct *m, int x, int y); |
| | extern int blocked_link(object *ob, int x, int y); |
| | extern int blocked_two(object *op, int x, int y); |
| | extern int arch_blocked(archetype *at, mapstruct *m, int x, int y); |
| | extern int arch_out_of_map(archetype *at, mapstruct *m, int x, int y); |
| | extern void refresh_map(mapstruct *m); |
| | extern FILE *open_and_uncompress(char *name, int flag, int *compressed); |
| | extern void close_and_delete(FILE *fp, int compressed); |
| | extern void fix_container(object *container); |
| | extern void load_objects(mapstruct *m, FILE *fp, int mapflags); |
| | extern void save_objects(mapstruct *m, FILE *fp, FILE *fp2); |
| | extern mapstruct *load_original_map(char *filename, int flags); |
| | extern int new_save_map(mapstruct *m, int flag); |
extern void make_path_to_file ( char *filename ); | | extern void make_path_to_file ( char *filename ); |
extern void make_sure_not_seen ( object *op ); | | extern void clear_map(mapstruct *m); |
extern void make_sure_seen ( object *op ); | | extern void copy_map(mapstruct *m1, mapstruct *m2); |
extern object * MapGetObjectZ ( mapstruct * emap, int x, int y, int z ); | | extern void relink_objs_offset(mapstruct *m1, mapstruct *m2, int dx, int dy); |
| | extern void clean_object(object *op); |
| | extern void free_all_objects(mapstruct *m); |
| | extern void move_all_objects(mapstruct *m1, mapstruct *m2); |
| | extern void delete_map(mapstruct *m); |
| | extern void free_map(mapstruct *m, int flag); |
| | extern mapstruct *get_linked_map(char *path); |
| | extern void allocate_map(mapstruct *m); |
| | extern mapstruct *get_empty_map(int sizex, int sizey); |
| | extern mapstruct *ready_map_name(char *name, int flags); |
| | extern void no_maps_file(char *filename); |
| | extern void set_map_reset_time(mapstruct *map); |
| | extern int calculate_difficulty(mapstruct *m); |
| | extern void clean_tmp_map(mapstruct *m); |
| | extern mapstruct *MapMoveScrollResize(mapstruct *source, int width, int height, int dx, int dy); |
| | extern void MapMoveScroll(mapstruct *target, mapstruct *source, int dx, int dy); |
extern object * MapGetRealObject ( mapstruct * emap, int x, int y, int z ); | | extern object * MapGetRealObject ( mapstruct * emap, int x, int y, int z ); |
extern int MapInsertObjectZ ( mapstruct *emap, object *o, int x, int y, int z ); | | extern int MapInsertObjectZ ( mapstruct *emap, object *o, int x, int y, int z ); |
extern void MapMoveScroll ( mapstruct *target, mapstruct *source, int dx, int dy ); | | |
extern mapstruct *MapMoveScrollResize ( mapstruct *source, int width, int height, int dx, int dy ); | | |
extern int MapObjectOut ( mapstruct *target, object *obj, int x, int y ); | | extern int MapObjectOut ( mapstruct *target, object *obj, int x, int y ); |
| | extern object *MapGetObjectZ(mapstruct *emap, int x, int y, int z); |
| | extern void free_all_maps(void); |
| | /* object.c */ |
| | extern signed long sum_weight(object *op); |
| | extern object *is_player_inv(object *op); |
| | extern void dump_object2(object *op); |
| | extern void dump_object(object *op); |
| | extern void dump_all_objects(void); |
| | extern object *get_nearest_part(object *op, object *pl); |
| | extern object *find_object(int i); |
| | extern object *find_object_name(char *str); |
| | extern void free_all_object_data(void); |
| | extern object *get_owner(object *op); |
| | extern void clear_owner(object *op); |
| | extern void set_owner(object *op, object *owner); |
| | extern void copy_owner(object *op, object *clone); |
| | extern void reset_object(object *op); |
| | extern void clear_object(object *op); |
| | extern void copy_object(object *op2, object *op); |
| | extern void expand_objects(void); |
| | extern object *get_object(void); |
| | extern void update_turn_face(object *op); |
| | extern void update_ob_speed(object *op); |
| | extern void update_object(object *op); |
| | extern object *update_position(mapstruct *m, int x, int y); |
| | extern void free_object(object *ob); |
| | extern int count_free(void); |
| | extern int count_used(void); |
| | extern int count_active(void); |
| | extern void sub_weight(object *op, signed long weight); |
| | extern void remove_ob(object *op); |
extern object *merge_ob ( object *op, object *top ); | | extern object *merge_ob ( object *op, object *top ); |
| | extern void insert_ob_in_map_simple(object *op, mapstruct *m); |
| | extern object *insert_ob_in_map(object *op, mapstruct *m, object *originator); |
| | extern void replace_insert_ob_in_map(char *arch_string, object *op); |
| | extern object *get_split_ob(object *orig_ob, int nr); |
| | extern object *decrease_ob_nr(object *op, int i); |
| | extern void add_weight(object *op, signed long weight); |
| | extern object *insert_ob_in_ob(object *op, object *where); |
| | extern int check_walk_on(object *op, object *originator); |
| | extern object *present_arch(archetype *at, mapstruct *m, int x, int y); |
| | extern object *present(unsigned char type, mapstruct *m, int x, int y); |
| | extern object *present_in_ob(unsigned char type, object *op); |
| | extern object *present_arch_in_ob(archetype *at, object *op); |
| | extern void set_cheat(object *op); |
| | extern int find_free_spot(archetype *at, mapstruct *m, int x, int y, int start, int stop); |
| | extern int find_first_free_spot(archetype *at, mapstruct *m, int x, int y); |
| | extern int find_dir(mapstruct *m, int x, int y, object *exclude); |
| | extern int distance(object *ob1, object *ob2); |
| | extern int find_dir_2(int x, int y); |
| | extern int absdir(int d); |
| | extern int dirdiff(int dir1, int dir2); |
| | extern int can_pick(object *who, object *item); |
| | extern object *ObjectCreateClone(object *asrc); |
| | extern int was_destroyed(object *op, tag_t old_tag); |
| | /* porting.c */ |
| | extern char *tempnam_local(char *dir, char *pfx); |
| | extern void remove_directory(const char *path); |
| | extern char *strdup_local(char *str); |
| | extern long strtol_local(register char *str, char **ptr, register int base); |
| | extern char *strerror_local(int errnum); |
| | /* player.c */ |
| | extern player *get_player_ob(void); |
| | extern void free_player(player *pl); |
| | extern object *find_skill(object *op, int skillnr); |
| | /* re-cmp.c */ |
| | extern char *re_cmp(char *str, char *regexp); |
| | /* readable.c */ |
| | extern int nstrtok(char *buf1, char *buf2); |
| | extern char *strtoktolin(char *buf1, char *buf2); |
| | extern int book_overflow(char *buf1, char *buf2, int booksize); |
| | extern void init_readable(void); |
| | extern void change_book(object *book, int msgtype); |
| | extern object *get_random_mon(int level); |
extern char * mon_desc ( object *mon ); | | extern char * mon_desc ( object *mon ); |
| | extern object *get_next_mon(object *tmp); |
extern char * mon_info_msg ( int level, int booksize ); | | extern char * mon_info_msg ( int level, int booksize ); |
extern void move_all_objects ( mapstruct *m1, mapstruct *m2 ); | | extern char *artifact_msg(int level, int booksize); |
| | extern char *spellpath_msg(int level, int booksize); |
| | extern void make_formula_book(object *book, int level); |
extern char * msgfile_msg ( int level, int booksize ); | | extern char * msgfile_msg ( int level, int booksize ); |
extern int need_identify ( object *op ); | | extern char *god_info_msg(int level, int booksize); |
extern int new_exp ( object *ob ); | | extern void tailor_readable_ob(object *book, int msg_type); |
extern int new_save_map ( mapstruct *m, int flag ); | | extern void free_all_readable(void); |
extern void no_maps_file ( char *filename ); | | extern void write_book_archive(void); |
extern int nstrtok ( char *buf1, char *buf2 ); | | /* recipe.c */ |
| | extern recipelist *get_formulalist(int i); |
| | extern void init_formulae(void); |
| | extern void check_formulae(void); |
| | extern void dump_alchemy(void); |
| | extern archetype *find_treasure_by_name(treasure *t, char *name, int depth); |
| | extern long find_ingred_cost(char *name); |
| | extern void dump_alchemy_costs(void); |
| | extern char *ingred_name(char *name); |
| | extern int strtoint(char *buf); |
| | extern artifact *locate_recipe_artifact(recipe *rp); |
extern int numb_ingred ( char *buf ); | | extern int numb_ingred ( char *buf ); |
extern object *ObjectCreateArch ( archetype * at ); | | extern recipelist *get_random_recipelist(void); |
extern object *ObjectCreateClone ( object *asrc ); | | extern recipe *get_random_recipe(recipelist *rpl); |
extern FILE *open_and_uncompress ( char *name, int flag, int *compressed ); | | extern void free_all_recipes(void); |
extern int operate_altar ( object *altar, object **sacrifice ); | | /* shstr.c */ |
extern void player_lvl_adj ( object *who, object *op ); | | extern void init_hash_table(void); |
extern object *pntr_to_god_obj ( godlink *godlnk ); | | extern char *add_string(const char *str); |
extern object *present ( unsigned char type, mapstruct *m, int x, int y ); | | extern char *add_refcount(char *str); |
extern object *present_arch ( archetype *at, mapstruct *m, int x, int y ); | | |
extern object *present_arch_in_ob ( archetype *at, object *op ); | | |
extern object *present_in_ob ( unsigned char type, object *op ); | | |
extern void print_los ( object *op ); | | |
extern void print_monsters ( void ); | | |
extern void push_button ( object *op ); | | |
extern char *query_base_name ( object *op, int plural ); | | |
extern char *query_name ( object *op ); | | |
extern int query_refcount ( const char *str ); | | extern int query_refcount ( const char *str ); |
extern char *query_short_name ( object *op ); | | extern char *find_string(const char *str); |
extern char *query_weight ( object *op ); | | extern void free_string(char *str); |
extern int ReadBmapNames ( void ); | | extern void ss_dump_statistics(void); |
extern mapstruct *ready_map_name ( char *name, int flags ); | | extern char *ss_dump_table(int what); |
extern void refresh_map ( mapstruct *m ); | | extern int buf_overflow(char *buf1, char *buf2, int bufsize); |
extern void relink_objs_offset ( mapstruct *m1, mapstruct *m2, int dx, int dy ); | | /* sqrt.c */ |
extern void remove_button_link ( object *op ); | | extern int isqrt(int n); |
extern void remove_carried_lights ( object *pl, mapstruct *map ); | | /* time.c */ |
extern void remove_directory ( const char *path ); | | |
extern void remove_friendly_object ( object *op ); | | |
extern void remove_light_from_list ( object *light, object *op ); | | |
extern void remove_ob ( object *op ); | | |
extern void remove_statbonus ( object *op ); | | |
extern void replace_insert_ob_in_map ( char *arch_string, object *op ); | | |
extern void reset_object ( object *op ); | | |
extern void reset_sleep ( void ); | | extern void reset_sleep ( void ); |
extern char * re_cmp ( char *str, char *regexp ); | | extern void log_time(long process_utime); |
extern char *ring_desc ( object *op ); | | extern int enough_elapsed_time(void); |
extern void save_double ( char *buf, char *name, double v ); | | extern void sleep_delta(void); |
extern void save_long ( char *buf, char *name, long n ); | | extern void set_max_time(long t); |
extern void save_object ( FILE *fp, object *op, int flag ); | | extern void time_info(object *op); |
extern void save_objects ( mapstruct *m, FILE *fp, FILE *fp2 ); | | |
extern long seconds ( void ); | | extern long seconds ( void ); |
extern void second_arch_pass ( FILE *fp ); | | /* treasure.c */ |
| | extern void init_archetype_pointers(void); |
| | extern void load_treasures(void); |
| | extern treasurelist *find_treasurelist(char *name); |
| | extern void create_all_treasures(treasure *t, object *op, int flag, int difficulty, int tries); |
| | extern void create_one_treasure(treasurelist *tl, object *op, int flag, int difficulty, int tries); |
| | extern void create_treasure(treasurelist *t, object *op, int flag, int difficulty, int tries); |
| | extern object *generate_treasure(treasurelist *t, int difficulty); |
| | extern int magic_from_difficulty(int difficulty); |
extern void set_abs_magic ( object *op, int magic ); | | extern void set_abs_magic ( object *op, int magic ); |
extern void set_attr_value ( living *stats, int attr, signed char value ); | | |
extern void set_block ( int x, int y, int bx, int by ); | | |
extern void set_cheat ( object *op ); | | |
extern void set_clean_tmp_files ( type_func_void addr ); | | |
extern void set_draw ( type_func_ob addr ); | | |
extern void set_draw_info ( type_func_int_int_ob_cchar addr ); | | |
extern void set_emergency_save ( type_func_int addr ); | | |
extern void set_esrv_del_item ( type_func_player_int addr ); | | |
extern void set_esrv_send_item ( type_func_ob_ob addr ); | | |
extern void set_esrv_update_item ( type_func_int_ob_ob addr ); | | |
extern void set_fix_auto_apply ( type_func_map addr ); | | |
extern void set_info_map ( type_func_int_map_char addr ); | | |
extern void set_init_blocksview_players ( type_func_void addr ); | | |
extern void set_map_reset_time ( mapstruct *map ); | | |
extern void set_max_time ( long t ); | | |
extern void set_monster_check_apply ( type_func_ob_ob addr ); | | |
extern void set_move_apply ( type_move_apply_func addr ); | | |
extern void set_move_creator ( type_func_ob addr ); | | |
extern void set_move_firewall ( type_func_ob addr ); | | |
extern void set_move_teleporter ( type_func_ob addr ); | | |
extern void set_owner ( object *op, object *owner ); | | |
extern void set_process_active_maps ( type_func_void addr ); | | |
extern void set_remove_friendly_object ( type_func_ob addr ); | | |
extern void set_ring_bonus ( object *op, int bonus ); | | extern void set_ring_bonus ( object *op, int bonus ); |
extern void set_trap_adjust ( type_func_ob_int addr ); | | extern int get_magic(int diff); |
extern void set_update_buttons ( type_func_map addr ); | | extern void fix_generated_item(object *op, object *creator, int difficulty, int max_magic, int flags); |
extern int set_variable ( object *op, char *buf ); | | extern artifactlist *find_artifactlist(int type); |
extern void sleep_delta ( void ); | | extern void dump_artifacts(void); |
| | extern void dump_monster_treasure_rec(char *name, treasure *t, int depth); |
| | extern void dump_monster_treasure(char *name); |
| | extern void init_artifacts(void); |
| | extern void add_abilities(object *op, object *change); |
| | extern void give_artifact_abilities(object *op, object *artifct); |
| | extern void generate_artifact(object *op, int difficulty); |
| | extern void fix_flesh_item(object *item, object *donor); |
extern int special_potion ( object *op ); | | extern int special_potion ( object *op ); |
extern char * spellpath_msg ( int level, int booksize ); | | extern void free_treasurestruct(treasure *t); |
extern void ss_dump_statistics ( void ); | | extern void free_charlinks(linked_char *lc); |
extern char * ss_dump_table ( int what ); | | extern void free_artifact(artifact *at); |
extern char *strdup_local ( char *str ); | | extern void free_artifactlist(artifactlist *al); |
extern char *strerror_local ( int errnum ); | | extern void free_all_treasures(void); |
extern int strtoint ( char *buf ); | | |
extern char * strtoktolin ( char *buf1, char *buf2 ); | | |
extern long strtol_local ( char *str, char **ptr, int base ); | | |
extern void sub_weight ( object *op, signed long weight ); | | |
extern signed long sum_weight ( object *op ); | | |
extern void tailor_readable_ob ( object *book, int msg_type ); | | |
extern char *tempnam_local ( char *dir, char *pfx ); | | |
extern void time_info ( object *op ); | | |
extern void trigger_move ( object *op, int state ); | | |
extern archetype *type_to_archetype ( int type ); | | |
extern void update_all_los ( mapstruct *map ); | | |
extern void update_button ( object *op ); | | |
extern void update_buttons ( mapstruct *m ); | | |
extern void update_los ( object *op ); | | |
extern void update_map_lights ( mapstruct *m ); | | |
extern void update_object ( object *op ); | | |
extern void update_ob_speed ( object *op ); | | |
extern object *update_position ( mapstruct *m, int x, int y ); | | |
extern void update_turn_face ( object *op ); | | |
extern void use_trigger ( object *op ); | | |
extern void verify_button_links ( mapstruct *map ); | | |
extern int wall ( mapstruct *m, int x, int y ); | | |
extern int was_destroyed ( object *op, tag_t old_tag ); | | |
extern void write_book_archive ( void ); | | |
extern int yyerror ( char *s ); | | |
extern void yyrestart ( FILE *input_file ); | | |
extern void yy_load_buffer_state ( void ); | | |
| | |
#endif /* __STDC__ */ | | |
#endif /* __CEXTRACT__ */ | | |