version 1.82 | | version 1.83 |
---|
| | |
/* map.c */ | | /* map.c */ |
extern mapstruct *has_been_loaded(const char *name); | | extern mapstruct *has_been_loaded(const char *name); |
extern const char *create_pathname(const char *name); | | extern const char *create_pathname(const char *name); |
extern const char *create_template_pathname(const char *name); | | |
extern const char *create_overlay_pathname(const char *name); | | extern const char *create_overlay_pathname(const char *name); |
| | extern const char *create_template_pathname(const char *name); |
extern int check_path(const char *name, int prepend_dir); | | extern int check_path(const char *name, int prepend_dir); |
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 get_map_flags(mapstruct *oldmap, mapstruct **newmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny); | | extern int get_map_flags(mapstruct *oldmap, mapstruct **newmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny); |
extern int blocked_link(object *ob, mapstruct *m, int sx, int sy); | | extern int blocked_link(object *ob, mapstruct *m, int sx, int sy); |
extern int arch_blocked(archetype *at, mapstruct *m, sint16 x, sint16 y); | | extern int ob_blocked(object *ob, mapstruct *m, sint16 x, sint16 y); |
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, int flag); | | extern void save_objects(mapstruct *m, FILE *fp, FILE *fp2, int flag); |
| | |
extern object *decrease_ob_nr(object *op, uint32 i); | | extern object *decrease_ob_nr(object *op, uint32 i); |
extern void add_weight(object *op, signed long weight); | | extern void add_weight(object *op, signed long weight); |
extern object *insert_ob_in_ob(object *op, object *where); | | extern object *insert_ob_in_ob(object *op, object *where); |
extern int check_walk_on(object *op, object *originator); | | extern int check_move_on(object *op, object *originator); |
extern object *present_arch(archetype *at, mapstruct *m, int x, int y); | | 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(unsigned char type, mapstruct *m, int x, int y); |
extern object *present_in_ob(unsigned char type, object *op); | | extern object *present_in_ob(unsigned char type, object *op); |
| | |
extern void flag_inv(object *op, int flag); | | extern void flag_inv(object *op, int flag); |
extern void unflag_inv(object *op, int flag); | | extern void unflag_inv(object *op, int flag); |
extern void set_cheat(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_free_spot(object *ob, 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_first_free_spot(object *ob, mapstruct *m, int x, int y); |
extern void get_search_arr(int *search_arr); | | extern void get_search_arr(int *search_arr); |
extern int find_dir(mapstruct *m, int x, int y, object *exclude); | | extern int find_dir(mapstruct *m, int x, int y, object *exclude); |
extern int distance(object *ob1, object *ob2); | | extern int distance(object *ob1, object *ob2); |
| | |
extern void set_materialname(object *op, int difficulty, materialtype_t *nmt); | | extern void set_materialname(object *op, int difficulty, materialtype_t *nmt); |
extern void strip_media_tag(char *message); | | extern void strip_media_tag(char *message); |
extern const char *strrstr(const char *haystack, const char *needle); | | extern const char *strrstr(const char *haystack, const char *needle); |
extern void replace(const char *src, const char *key, const char *replacement, char *result, size_t resultsize); | | |
extern void strip_endline(char *buf); | | extern void strip_endline(char *buf); |
| | extern void replace(const char *src, const char *key, const char *replacement, char *result, size_t resultsize); |
extern void make_list_like(char *input); | | extern void make_list_like(char *input); |
/* loader.c */ | | /* loader.c */ |
extern int lex_load(object *op, int map_flags); | | extern int lex_load(object *op, int map_flags); |