… | |
… | |
22 | * The authors can be reached via e-mail to <support@deliantra.net> |
22 | * The authors can be reached via e-mail to <support@deliantra.net> |
23 | */ |
23 | */ |
24 | |
24 | |
25 | #ifndef LIBPROTO_H_ |
25 | #ifndef LIBPROTO_H_ |
26 | #define LIBPROTO_H_ |
26 | #define LIBPROTO_H_ |
27 | |
|
|
28 | void load_materials (); |
|
|
29 | |
27 | |
30 | /* anim.c */ |
28 | /* anim.c */ |
31 | void free_all_anim (); |
29 | void free_all_anim (); |
32 | void init_anim (); |
30 | void init_anim (); |
33 | int find_animation (const char *name); |
31 | int find_animation (const char *name); |
… | |
… | |
181 | void close_and_delete (FILE *fp, int compressed); |
179 | void close_and_delete (FILE *fp, int compressed); |
182 | void make_path_to_file (char *filename); |
180 | void make_path_to_file (char *filename); |
183 | /* player.c */ |
181 | /* player.c */ |
184 | void free_player (player *pl); |
182 | void free_player (player *pl); |
185 | int atnr_is_dragon_enabled (int attacknr); |
183 | int atnr_is_dragon_enabled (int attacknr); |
186 | int is_dragon_pl (const object *op); |
|
|
187 | /* quest.c */ |
184 | /* quest.c */ |
188 | int quest_is_quest_marker (const object *marker, int task); |
185 | int quest_is_quest_marker (const object *marker, int task); |
189 | int quest_is_in_progress (const object *marker, int task); |
186 | int quest_is_in_progress (const object *marker, int task); |
190 | int quest_is_completed (const object *marker, int task); |
187 | int quest_is_completed (const object *marker, int task); |
191 | const char *quest_get_name (const object *marker); |
188 | const char *quest_get_name (const object *marker); |
… | |
… | |
238 | void fix_flesh_item (object *item, object *donor); |
235 | void fix_flesh_item (object *item, object *donor); |
239 | /* utils.c */ |
236 | /* utils.c */ |
240 | int random_roll (int min, int max, const object *op, int goodbad); |
237 | int random_roll (int min, int max, const object *op, int goodbad); |
241 | sint64 random_roll64 (sint64 min, sint64 max, const object *op, int goodbad); |
238 | sint64 random_roll64 (sint64 min, sint64 max, const object *op, int goodbad); |
242 | int die_roll (int num, int size, const object *op, int goodbad); |
239 | int die_roll (int num, int size, const object *op, int goodbad); |
243 | materialtype_t *name_to_material (const shstr_cmp name); |
240 | materialtype_t *name_to_material (const shstr_tmp name); |
244 | void transmute_materialname (object *op, const object *change); |
241 | void transmute_materialname (object *op, const object *change); |
245 | void set_materialname (object *op, int difficulty, materialtype_t *nmt); |
|
|
246 | void strip_media_tag (char *message); |
242 | void strip_media_tag (char *message); |
247 | void strip_endline (char *buf); |
243 | void strip_endline (char *buf); |
248 | void replace (const char *src, const char *key, const char *replacement, char *result, size_t resultsize); |
244 | void replace (const char *src, const char *key, const char *replacement, char *result, size_t resultsize); |
249 | /* loader.c */ |
245 | /* loader.c */ |
250 | int set_variable (object *op, char *buf); |
246 | int set_variable (object *op, char *buf); |
251 | void init_vars (); |
247 | void init_vars (); |
252 | char *get_ob_diff (object *op, object *op2); |
248 | char *get_ob_diff (object *op, object *op2); |
|
|
249 | bool load_resource_file_ (const char *filename); |
253 | /* map.c */ |
250 | /* map.c */ |
254 | maptile *find_style (const char *dirname, const char *stylename, int difficulty); |
251 | maptile *find_style (const char *dirname, const char *stylename, int difficulty); |
255 | object *pick_random_object (maptile *style); |
252 | object *pick_random_object (maptile *style); |
256 | |
253 | |
257 | /* former funcpoint.h */ |
254 | /* former funcpoint.h */ |