version 1.15 | | version 1.16 |
---|
| | |
extern void set_block(int x, int y, int bx, int by); | | extern void set_block(int x, int y, int bx, int by); |
extern void init_block(void); | | extern void init_block(void); |
extern void clear_los(object *op); | | extern void clear_los(object *op); |
extern int change_map_light(mapstruct *m, int change); | | |
extern void expand_sight(object *op); | | 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 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 expand_lighted_sight(object *op); |
extern void blinded_sight(object *op); | | extern void blinded_sight(object *op); |
extern void update_los(object *op); | | extern void update_los(object *op); |
extern void update_all_los(mapstruct *map); | | extern void update_all_map_los(mapstruct *map); |
| | extern void update_all_los(mapstruct *map, int x, int y); |
extern void print_los(object *op); | | extern void print_los(object *op); |
extern void make_sure_seen(object *op); | | extern void make_sure_seen(object *op); |
extern void make_sure_not_seen(object *op); | | extern void make_sure_not_seen(object *op); |
/* ltostr.c */ | | |
extern char *ltostr10(signed long n); | | |
extern void save_long(char *buf, char *name, long n); | | |
/* map.c */ | | /* map.c */ |
extern mapstruct *has_been_loaded(char *name); | | extern mapstruct *has_been_loaded(char *name); |
extern char *create_pathname(char *name); | | extern char *create_pathname(char *name); |
extern int check_path(char *name, int prepend_dir); | | 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_map(mapstruct *m); |
extern void dump_all_maps(void); | | extern void dump_all_maps(void); |
extern int wall(mapstruct *m, int x, int y); | | extern int wall(mapstruct *m, int x, int y); |
| | |
extern int blocked_two(object *op, 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_blocked(archetype *at, mapstruct *m, int x, int y); |
extern int arch_out_of_map(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 fix_container(object *container); |
extern void load_objects(mapstruct *m, FILE *fp, int mapflags); | | extern void load_objects(mapstruct *m, FILE *fp, int mapflags); |
extern void save_objects(mapstruct *m, FILE *fp, FILE *fp2); | | extern void save_objects(mapstruct *m, FILE *fp, FILE *fp2); |
| | extern mapstruct *get_linked_map(void); |
| | extern void allocate_map(mapstruct *m); |
| | extern mapstruct *get_empty_map(int sizex, int sizey); |
extern mapstruct *load_original_map(char *filename, int flags); | | extern mapstruct *load_original_map(char *filename, int flags); |
extern int new_save_map(mapstruct *m, int flag); | | extern int new_save_map(mapstruct *m, int flag); |
extern void make_path_to_file(char *filename); | | |
extern void clear_map(mapstruct *m); | | |
extern void copy_map(mapstruct *m1, mapstruct *m2); | | |
extern void relink_objs_offset(mapstruct *m1, mapstruct *m2, int dx, int dy); | | |
extern void clean_object(object *op); | | extern void clean_object(object *op); |
extern void free_all_objects(mapstruct *m); | | 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 void free_map(mapstruct *m, int flag); |
extern mapstruct *get_linked_map(char *path); | | extern void delete_map(mapstruct *m); |
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 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 int calculate_difficulty(mapstruct *m); |
extern void clean_tmp_map(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 int MapInsertObjectZ(mapstruct *emap, object *o, int x, int y, int z); | | |
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); | | extern void free_all_maps(void); |
| | extern int change_map_light(mapstruct *m, int change); |
| | extern void update_position(mapstruct *m, int x, int y); |
| | extern void set_map_reset_time(mapstruct *map); |
| | extern int out_of_map(mapstruct *m, int x, int y); |
| | extern mapstruct *get_map_from_coord(mapstruct *m, int *x, int *y); |
/* object.c */ | | /* object.c */ |
extern signed long sum_weight(object *op); | | extern signed long sum_weight(object *op); |
extern object *is_player_inv(object *op); | | extern object *is_player_inv(object *op); |
| | |
extern object *get_object(void); | | extern object *get_object(void); |
extern void update_turn_face(object *op); | | extern void update_turn_face(object *op); |
extern void update_ob_speed(object *op); | | extern void update_ob_speed(object *op); |
extern void update_object(object *op); | | extern void update_object(object *op, int action); |
extern object *update_position(mapstruct *m, int x, int y); | | |
extern void free_object(object *ob); | | extern void free_object(object *ob); |
extern int count_free(void); | | extern int count_free(void); |
extern int count_used(void); | | extern int count_used(void); |
| | |
extern void sub_weight(object *op, signed long weight); | | extern void sub_weight(object *op, signed long weight); |
extern void remove_ob(object *op); | | 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, int flag); |
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 void replace_insert_ob_in_map(char *arch_string, object *op); |
extern object *get_split_ob(object *orig_ob, int nr); | | extern object *get_split_ob(object *orig_ob, int nr); |
extern object *decrease_ob_nr(object *op, int i); | | extern object *decrease_ob_nr(object *op, int i); |
| | |
extern char *strdup_local(char *str); | | extern char *strdup_local(char *str); |
extern long strtol_local(register char *str, char **ptr, register int base); | | extern long strtol_local(register char *str, char **ptr, register int base); |
extern char *strerror_local(int errnum); | | extern char *strerror_local(int errnum); |
| | extern int isqrt(int n); |
| | extern char *ltostr10(signed long n); |
| | extern void save_long(char *buf, char *name, long n); |
| | extern FILE *open_and_uncompress(char *name, int flag, int *compressed); |
| | extern void close_and_delete(FILE *fp, int compressed); |
| | extern void make_path_to_file(char *filename); |
/* player.c */ | | /* player.c */ |
extern player *get_player_ob(void); | | extern player *get_player_ob(void); |
extern void free_player(player *pl); | | extern void free_player(player *pl); |
| | |
extern void ss_dump_statistics(void); | | extern void ss_dump_statistics(void); |
extern char *ss_dump_table(int what); | | extern char *ss_dump_table(int what); |
extern int buf_overflow(char *buf1, char *buf2, int bufsize); | | extern int buf_overflow(char *buf1, char *buf2, int bufsize); |
/* sqrt.c */ | | |
extern int isqrt(int n); | | |
/* time.c */ | | /* time.c */ |
extern void reset_sleep(void); | | extern void reset_sleep(void); |
extern void log_time(long process_utime); | | extern void log_time(long process_utime); |