version 1.60 | | version 1.61 |
---|
| | |
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 x, int y); | | 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 arch_blocked(archetype *at, 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 get_rangevector_from_mapcoord(mapstruct *m, int x, int y, object *op2, rv_vector *retval, int flags); | | extern void get_rangevector_from_mapcoord(mapstruct *m, int x, int y, object *op2, rv_vector *retval, int flags); |
extern int on_same_map(object *op1, object *op2); | | extern int on_same_map(object *op1, object *op2); |
/* object.c */ | | /* object.c */ |
| | extern int CAN_MERGE(object *ob1, object *ob2); |
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 void dump_object2(object *op); | | extern void dump_object2(object *op); |
| | |
extern void init_formulae(void); | | extern void init_formulae(void); |
extern void check_formulae(void); | | extern void check_formulae(void); |
extern void dump_alchemy(void); | | extern void dump_alchemy(void); |
extern archetype *find_treasure_by_name(treasure *t, char *name, int depth); | | extern archetype *find_treasure_by_name(treasure *t, const char *name, int depth); |
extern long find_ingred_cost(char *name); | | extern long find_ingred_cost(char *name); |
extern void dump_alchemy_costs(void); | | extern void dump_alchemy_costs(void); |
extern char *ingred_name(char *name); | | extern char *ingred_name(char *name); |
| | |
extern recipe *get_random_recipe(recipelist *rpl); | | extern recipe *get_random_recipe(recipelist *rpl); |
extern void free_all_recipes(void); | | extern void free_all_recipes(void); |
/* region.c */ | | /* region.c */ |
extern char *get_region_longname(region *r); | | extern region *get_region_by_name(const char *region_name); |
extern int region_is_child_of_region(region *child, region *r); | | |
extern region *get_region_from_string(char *name); | | |
extern char *get_region_msg(region *r); | | |
extern region *get_region_by_name(char *region_name); | | |
extern region *get_region_by_map(mapstruct *m); | | extern region *get_region_by_map(mapstruct *m); |
extern char *get_name_of_region_for_map(mapstruct *m); | | extern char *get_name_of_region_for_map(mapstruct *m); |
extern void parse_regions(); | | extern region *get_region_from_string(const char *name); |
extern void init_regions(); | | extern int region_is_child_of_region(region *child, region *r); |
extern region *get_region_struct(); | | extern char *get_region_longname(region *r); |
extern void assign_region_parents(); | | extern char *get_region_msg(region *r); |
| | extern void init_regions(void); |
| | extern region *get_region_struct(void); |
| | extern void parse_regions(FILE *fp); |
| | extern void assign_region_parents(void); |
/* shstr.c */ | | /* shstr.c */ |
extern void init_hash_table(void); | | extern void init_hash_table(void); |
extern char *add_string(const char *str); | | extern char *add_string(const char *str); |
| | |
/* treasure.c */ | | /* treasure.c */ |
extern void init_archetype_pointers(void); | | extern void init_archetype_pointers(void); |
extern void load_treasures(void); | | extern void load_treasures(void); |
extern treasurelist *find_treasurelist(char *name); | | extern treasurelist *find_treasurelist(const char *name); |
extern void create_all_treasures(treasure *t, object *op, int flag, int difficulty, int tries); | | 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_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 void create_treasure(treasurelist *t, object *op, int flag, int difficulty, int tries); |
| | |
extern int die_roll(int num, int size, object *op, int goodbad); | | extern int die_roll(int num, int size, object *op, int goodbad); |
extern int rndm(int min, int max); | | extern int rndm(int min, int max); |
extern void decay_objects(mapstruct *m); | | extern void decay_objects(mapstruct *m); |
extern materialtype_t *name_to_material(char *name); | | extern materialtype_t *name_to_material(const char *name); |
extern void transmute_materialname(object *op, object *change); | | extern void transmute_materialname(object *op, object *change); |
extern void set_materialname(object *op, int difficulty, materialtype_t *nmt); | | extern void set_materialname(object *op, int difficulty, materialtype_t *nmt); |
/* loader.c */ | | /* loader.c */ |