… | |
… | |
175 | extern int find_first_free_spot(const object *ob, maptile *m, int x, int y); |
175 | extern int find_first_free_spot(const object *ob, maptile *m, int x, int y); |
176 | extern void get_search_arr(int *search_arr); |
176 | extern void get_search_arr(int *search_arr); |
177 | extern int find_dir(maptile *m, int x, int y, object *exclude); |
177 | extern int find_dir(maptile *m, int x, int y, object *exclude); |
178 | extern int distance(const object *ob1, const object *ob2); |
178 | extern int distance(const object *ob1, const object *ob2); |
179 | extern int find_dir_2(int x, int y); |
179 | extern int find_dir_2(int x, int y); |
180 | extern int absdir(int d); |
|
|
181 | extern int dirdiff(int dir1, int dir2); |
180 | extern int dirdiff(int dir1, int dir2); |
182 | extern int can_see_monsterP(maptile *m, int x, int y, int dir); |
181 | extern int can_see_monsterP(maptile *m, int x, int y, int dir); |
183 | extern int can_pick(const object *who, const object *item); |
182 | extern int can_pick(const object *who, const object *item); |
184 | extern object *object_create_clone(object *asrc); |
183 | extern object *object_create_clone(object *asrc); |
185 | extern object *load_object_str(const char *obstr); |
184 | extern object *load_object_str(const char *obstr); |
… | |
… | |
193 | extern void path_normalize(char *path); |
192 | extern void path_normalize(char *path); |
194 | extern char *path_combine_and_normalize(const char *src, const char *dst); |
193 | extern char *path_combine_and_normalize(const char *src, const char *dst); |
195 | /* porting.c */ |
194 | /* porting.c */ |
196 | extern void remove_directory(const char *path); |
195 | extern void remove_directory(const char *path); |
197 | extern char *strcasestr_local(const char *s, const char *find); |
196 | extern char *strcasestr_local(const char *s, const char *find); |
198 | extern int isqrt(int n); |
|
|
199 | extern char *ltostr10(signed long n); |
197 | extern char *ltostr10(signed long n); |
200 | extern char *doubletostr10(double v); |
198 | extern char *doubletostr10(double v); |
201 | extern FILE *open_and_uncompress(const char *name, int flag, int *compressed); |
199 | extern FILE *open_and_uncompress(const char *name, int flag, int *compressed); |
202 | extern void close_and_delete(FILE *fp, int compressed); |
200 | extern void close_and_delete(FILE *fp, int compressed); |
203 | extern void make_path_to_file(char *filename); |
201 | extern void make_path_to_file(char *filename); |