… | |
… | |
42 | extern void dump_arch(archetype *at); |
42 | extern void dump_arch(archetype *at); |
43 | extern void dump_all_archetypes(); |
43 | extern void dump_all_archetypes(); |
44 | extern void free_all_archs(); |
44 | extern void free_all_archs(); |
45 | extern void check_generators(); |
45 | extern void check_generators(); |
46 | extern bool load_archetype_file(const char *filename); |
46 | extern bool load_archetype_file(const char *filename); |
47 | extern object *arch_to_object(archetype *at); |
|
|
48 | extern object *create_singularity(const char *name); |
47 | extern object *create_singularity(const char *name); |
49 | extern object *get_archetype(const char *name); |
48 | extern object *get_archetype(const char *name); |
50 | extern unsigned long hasharch(const char *str, int tablesize); |
49 | extern unsigned long hasharch(const char *str, int tablesize); |
51 | extern archetype *type_to_archetype(int type); |
50 | extern archetype *type_to_archetype(int type); |
52 | extern object *clone_arch(int type); |
51 | extern object *clone_arch(int type); |
… | |
… | |
191 | extern int distance(const object *ob1, const object *ob2); |
190 | extern int distance(const object *ob1, const object *ob2); |
192 | extern int find_dir_2(int x, int y); |
191 | extern int find_dir_2(int x, int y); |
193 | extern int dirdiff(int dir1, int dir2); |
192 | extern int dirdiff(int dir1, int dir2); |
194 | extern int can_see_monsterP(maptile *m, int x, int y, int dir); |
193 | extern int can_see_monsterP(maptile *m, int x, int y, int dir); |
195 | extern int can_pick(const object *who, const object *item); |
194 | extern int can_pick(const object *who, const object *item); |
196 | extern object *object_create_clone(object *asrc); |
|
|
197 | extern object *find_obj_by_type_subtype(const object *who, int type, int subtype); |
195 | extern object *find_obj_by_type_subtype(const object *who, int type, int subtype); |
198 | extern key_value *get_ob_key_link(const object *ob, const char *key); |
|
|
199 | extern const char *get_ob_key_value(const object *op, const char *const key); |
|
|
200 | extern int set_ob_key_value_s(object *op, const char *canonical_key, const char *value, int add_key); |
|
|
201 | extern int set_ob_key_value(object *op, const char *key, const char *value, int add_key); |
|
|
202 | /* path.c */ |
196 | /* path.c */ |
203 | extern char *path_combine(const char *src, const char *dst); |
197 | extern char *path_combine(const char *src, const char *dst); |
204 | extern void path_normalize(char *path); |
198 | extern void path_normalize(char *path); |
205 | extern char *path_combine_and_normalize(const char *src, const char *dst); |
199 | extern char *path_combine_and_normalize(const char *src, const char *dst); |
206 | /* porting.c */ |
200 | /* porting.c */ |
… | |
… | |
312 | extern void make_list_like(char *input); |
306 | extern void make_list_like(char *input); |
313 | /* loader.c */ |
307 | /* loader.c */ |
314 | extern int set_variable(object *op, char *buf); |
308 | extern int set_variable(object *op, char *buf); |
315 | extern void init_vars(); |
309 | extern void init_vars(); |
316 | extern char *get_ob_diff(object *op, object *op2); |
310 | extern char *get_ob_diff(object *op, object *op2); |
|
|
311 | /* map.c */ |
|
|
312 | extern maptile *find_style (const char *dirname, const char *stylename, int difficulty); |
|
|
313 | extern object *pick_random_object (maptile *style); |
317 | |
314 | |
318 | /* former funcpoint.h */ |
315 | /* former funcpoint.h */ |
319 | /* |
316 | /* |
320 | * These function-pointers are defined in common/glue.c |
317 | * These function-pointers are defined in common/glue.c |
321 | * The functions used to set and initialise them are also there. |
318 | * The functions used to set and initialise them are also there. |