… | |
… | |
149 | object *merge_ob (object *op, object *top); |
149 | object *merge_ob (object *op, object *top); |
150 | object *insert_ob_in_map_at (object *op, maptile *m, object *originator, int flag, int x, int y); |
150 | object *insert_ob_in_map_at (object *op, maptile *m, object *originator, int flag, int x, int y); |
151 | object *insert_ob_in_map (object *op, maptile *m, object *originator, int flag); |
151 | object *insert_ob_in_map (object *op, maptile *m, object *originator, int flag); |
152 | void replace_insert_ob_in_map (shstr_tmp archname, object *op); |
152 | void replace_insert_ob_in_map (shstr_tmp archname, object *op); |
153 | object *insert_ob_in_ob (object *op, object *where); |
153 | object *insert_ob_in_ob (object *op, object *where); |
154 | int check_move_on (object *op, object *originator); |
154 | int check_move_on (object *op, object *originator, int flags = 0); |
155 | object *present_arch (const archetype *at, maptile *m, int x, int y); |
155 | object *present_arch (const archetype *at, maptile *m, int x, int y); |
156 | object *present (unsigned char type, maptile *m, int x, int y); |
156 | object *present (unsigned char type, maptile *m, int x, int y); |
157 | object *present_in_ob (unsigned char type, const object *op); |
157 | object *present_in_ob (unsigned char type, const object *op); |
158 | object *present_in_ob_by_name (int type, const char *str, const object *op); |
158 | object *present_in_ob_by_name (int type, const char *str, const object *op); |
159 | object *present_arch_in_ob (const archetype *at, const object *op); |
159 | object *present_arch_in_ob (const archetype *at, const object *op); |
… | |
… | |
170 | int can_pick (const object *who, const object *item); |
170 | int can_pick (const object *who, const object *item); |
171 | object *find_obj_by_type_subtype (const object *who, int type, int subtype); |
171 | object *find_obj_by_type_subtype (const object *who, int type, int subtype); |
172 | /* path.c */ |
172 | /* path.c */ |
173 | char *path_combine (const char *src, const char *dst); |
173 | char *path_combine (const char *src, const char *dst); |
174 | char *path_combine_and_normalize (const char *src, const char *dst); |
174 | char *path_combine_and_normalize (const char *src, const char *dst); |
175 | /* porting.c */ |
|
|
176 | void remove_directory (const char *path); |
|
|
177 | char *ltostr10 (signed long n); |
|
|
178 | char *doubletostr10 (double v); |
|
|
179 | FILE *open_and_uncompress (const char *name, int flag, int *compressed); |
|
|
180 | void close_and_delete (FILE *fp, int compressed); |
|
|
181 | void make_path_to_file (char *filename); |
|
|
182 | /* player.c */ |
175 | /* player.c */ |
183 | void free_player (player *pl); |
176 | void free_player (player *pl); |
184 | int atnr_is_dragon_enabled (int attacknr); |
177 | int atnr_is_dragon_enabled (int attacknr); |
185 | /* quest.c */ |
178 | /* quest.c */ |
186 | int quest_is_quest_marker (const object *marker, int task); |
179 | int quest_is_quest_marker (const object *marker, int task); |
… | |
… | |
238 | int random_roll (int min, int max, const object *op, int goodbad); |
231 | int random_roll (int min, int max, const object *op, int goodbad); |
239 | sint64 random_roll64 (sint64 min, sint64 max, const object *op, int goodbad); |
232 | sint64 random_roll64 (sint64 min, sint64 max, const object *op, int goodbad); |
240 | int die_roll (int num, int size, const object *op, int goodbad); |
233 | int die_roll (int num, int size, const object *op, int goodbad); |
241 | materialtype_t *name_to_material (const shstr_tmp name); |
234 | materialtype_t *name_to_material (const shstr_tmp name); |
242 | void transmute_materialname (object *op, const object *change); |
235 | void transmute_materialname (object *op, const object *change); |
243 | void strip_media_tag (char *message); |
|
|
244 | void strip_endline (char *buf); |
236 | void strip_endline (char *buf); |
245 | void replace (const char *src, const char *key, const char *replacement, char *result, size_t resultsize); |
237 | void replace (const char *src, const char *key, const char *replacement, char *result, size_t resultsize); |
246 | /* loader.c */ |
238 | /* loader.c */ |
247 | int set_variable (object *op, char *buf); |
239 | int set_variable (object *op, char *buf); |
248 | void init_vars (); |
240 | void init_vars (); |