Crossfire Server, Trunk  R20911
libproto.h
Go to the documentation of this file.
1 /* anim.c */
2 extern void free_all_anim(void);
3 extern void init_anim(void);
4 extern int find_animation(const char *name);
5 extern int try_find_animation(const char *name);
6 extern void animate_object(object *op, int dir);
7 extern void apply_anim_suffix(object *who, sstring suffix);
8 extern void dump_animations(void);
9 /* arch.c */
10 extern archetype *find_archetype_by_object_name(const char *name);
11 extern archetype *find_archetype_by_object_type_name(int type, const char *name);
12 extern archetype *get_archetype_by_skill_name(const char *skill, int type);
13 extern archetype *get_archetype_by_type_subtype(int type, int subtype);
14 extern object *create_archetype_by_object_name(const char *name);
15 extern void init_archetypes(void);
16 extern void arch_info(object *op);
17 extern void clear_archetable(void);
18 extern void dump_arch(archetype *at, StringBuffer *sb);
19 extern void dump_all_archetypes(void);
20 extern void free_arch(archetype *at);
21 extern void free_all_archs(void);
22 extern archetype *get_archetype_struct(void);
23 extern void check_generators(void);
24 extern void check_summoned(void);
25 extern object *arch_to_object(archetype *at);
26 extern object *create_singularity(const char *name);
27 extern object *create_archetype(const char *name);
28 extern archetype *try_find_archetype(const char *name);
29 extern archetype *find_archetype(const char *name);
30 extern object *object_create_arch(archetype *at);
31 /* arch_types_valid.c */
32 extern int is_type_valid(uint8_t type);
33 /* artifact.c */
34 extern void free_all_artifacts(void);
35 extern void generate_artifact(object *op, int difficulty);
36 extern void give_artifact_abilities(object *op, const object *artifact);
37 extern int legal_artifact_combination(const object *op, const artifact *art);
38 extern void add_abilities(object *op, const object *change);
39 extern void init_artifacts(void);
40 extern const artifactlist *find_artifactlist(int type);
41 extern const artifact *find_artifact(const object *op, const char *name);
42 extern void dump_artifacts(void);
43 extern unsigned artifact_get_face(const artifact *art);
44 /* button.c */
45 extern void trigger_connected(objectlink *ol, object *cause, const int state);
46 extern void push_button(object *op);
47 extern void update_button(object *op);
48 extern void update_buttons(mapstruct *m);
49 extern void use_trigger(object *op);
50 extern void animate_turning(object *op);
51 extern int check_altar_sacrifice(const object *altar, const object *sacrifice, int remove_others, int *toremove);
52 extern int operate_altar(object *altar, object **sacrifice);
53 extern int check_trigger(object *op, object *cause);
54 extern void add_button_link(object *button, mapstruct *map, int connected);
55 extern void remove_button_link(object *op);
56 extern int get_button_value(const object *button);
57 extern object *check_inv_recursive(object *op, const object *trig);
58 extern void check_inv(object *op, object *trig);
59 extern void verify_button_links(const mapstruct *map);
60 /* dialog.c */
61 extern void free_dialog_information(object *op);
62 extern int get_dialog_message(object *op, const char *text, struct_dialog_message **message, struct_dialog_reply **reply);
63 /* exp.c */
64 extern int64_t new_exp(const object *ob);
65 extern int has_ability(const object *ob);
66 extern void init_experience(void);
67 extern void dump_experience(void);
68 extern void free_experience(void);
69 /* friend.c */
70 extern void add_friendly_object(object *op);
71 extern void remove_friendly_object(object *op);
72 extern void dump_friendly_objects(void);
73 extern void clean_friendly_list(void);
74 extern int is_friendly(const object *op);
75 /* glue.c */
76 extern void fatal(enum fatal_error err);
77 /* holy.c */
78 extern void init_gods(void);
79 extern godlink *get_rand_god(void);
80 extern const object *pntr_to_god_obj(godlink *godlnk);
81 extern int describe_god(const object *god, int what, StringBuffer *buf, size_t maxlen);
82 extern void free_all_god(void);
83 extern void dump_gods(void);
84 /* info.c */
85 extern void dump_abilities(void);
86 extern void print_monsters(void);
87 /* image.c */
88 extern void read_bmap_names(void);
89 extern unsigned find_face(const char *name, unsigned error);
90 extern int read_smooth(void);
91 extern int find_smooth(uint16_t face, uint16_t *smoothed);
92 extern void free_all_images(void);
93 extern void read_client_images(void);
94 extern int is_valid_faceset(int fsn);
95 extern void free_socket_images(void);
96 extern int get_face_fallback(int faceset, int imageno);
97 /* init.c */
98 extern void init_library(void);
99 extern void init_globals(void);
100 extern void free_globals(void);
101 extern void init_objects(void);
102 extern void write_todclock(void);
103 /* item.c */
104 extern int get_power_from_ench(int ench);
105 extern int calc_item_power(const object *op);
106 extern const typedata *get_typedata(int itemtype);
107 extern const typedata *get_typedata_by_name(const char *name);
108 extern StringBuffer *describe_resistance(const object *op, int newline, int use_media_tags, StringBuffer *buf);
109 extern void query_weight(const object *op, char *buf, size_t size);
110 extern void get_levelnumber(int i, char *buf, size_t size);
111 extern void query_short_name(const object *op, char *buf, size_t size);
112 extern void query_name(const object *op, char *buf, size_t size);
113 extern void query_base_name(const object *op, int plural, char *buf, size_t size);
114 extern StringBuffer *describe_monster(const object *op, int use_media_tags, StringBuffer *buf);
115 extern StringBuffer *describe_item(const object *op, const object *owner, int use_media_tags, StringBuffer *buf);
116 extern int is_magical(const object *op);
117 extern int need_identify(const object *op);
118 extern void object_give_identified_properties(object *op);
119 extern object *identify(object *op);
120 /* languages.c */
121 extern int get_language(object *op);
122 extern const char *i18n(const object *who, const char *code);
123 extern int i18n_find_language_by_code(const char *code);
124 extern int i18n_get_language_by_code(const char *code);
125 extern sstring i18n_get_language_code(int language);
126 extern void i18n_list_languages(object *who);
127 extern void i18n_init(void);
128 extern void i18n_free(void);
129 /* links.c */
130 extern objectlink *get_objectlink(void);
131 extern oblinkpt *get_objectlinkpt(void);
132 extern void free_objectlink(objectlink *ol);
133 extern void free_objectlinkpt(oblinkpt *obp);
134 /* living.c */
135 extern void set_attr_value(living *stats, int attr, int8_t value);
136 extern void change_attr_value(living *stats, int attr, int8_t value);
137 extern int8_t get_attr_value(const living *stats, int attr);
138 extern void check_stat_bounds(living *stats, int8_t min_stat, int8_t max_stat);
139 extern int change_abil(object *op, object *tmp);
140 extern void drain_stat(object *op);
141 extern void drain_specific_stat(object *op, int deplete_stats);
142 extern int remove_depletion(object *op, int level);
143 extern void change_luck(object *op, int value);
144 extern void remove_statbonus(object *op);
145 extern void add_statbonus(object *op);
146 extern void fix_object(object *op);
147 extern int allowed_class(const object *op);
148 extern void set_dragon_name(object *pl, const object *abil, const object *skin);
149 extern object *give_skill_by_name(object *op, const char *skill_name);
150 extern void player_lvl_adj(object *who, object *op);
151 extern int64_t level_exp(int level, double expmul);
152 extern void calc_perm_exp(object *op);
153 extern int64_t check_exp_loss(const object *op, int64_t exp);
154 extern int64_t check_exp_adjust(const object *op, int64_t exp);
155 extern void change_exp(object *op, int64_t exp, const char *skill_name, int flag);
156 extern void apply_death_exp_penalty(object *op);
157 extern int did_make_save(const object *op, int level, int bonus);
158 extern void share_exp(object *op, int64_t exp, const char *skill, int flag);
159 extern int get_cha_bonus(int stat);
160 extern int get_dex_bonus(int stat);
161 extern int get_thaco_bonus(int stat);
162 extern uint32_t get_weight_limit(int stat);
163 extern int get_learn_spell(int stat);
164 extern int get_cleric_chance(int stat);
165 extern int get_turn_bonus(int stat);
166 extern int get_dam_bonus(int stat);
167 extern float get_speed_bonus(int stat);
168 extern int get_fear_bonus(int stat);
169 extern void init_stats(int reload);
170 /* logger.c */
171 extern void LOG(LogLevel logLevel, const char *format, ...);
172 /* los.c */
173 extern void init_block(void);
174 extern void clear_los(object *op);
175 extern int has_carried_lights(const object *op);
176 extern void update_los(object *op);
177 extern void update_all_map_los(mapstruct *map);
178 extern void update_all_los(const mapstruct *map, int x, int y);
179 extern void print_los(object *op);
180 extern void make_sure_seen(const object *op);
181 extern void make_sure_not_seen(const object *op);
182 /* map.c */
183 extern mapstruct *has_been_loaded(const char *name);
184 extern char *create_pathname(const char *name, char *buf, size_t size);
185 extern void create_overlay_pathname(const char *name, char *buf, size_t size);
186 extern void create_template_pathname(const char *name, char *buf, size_t size);
187 extern int check_path(const char *name, int prepend_dir);
188 extern void dump_map(const mapstruct *m);
189 extern void dump_all_maps(void);
190 extern int get_map_flags(mapstruct *oldmap, mapstruct **newmap, int16_t x, int16_t y, int16_t *nx, int16_t *ny);
191 extern int blocked_link(object *ob, mapstruct *m, int sx, int sy);
192 extern int ob_blocked(const object *ob, mapstruct *m, int16_t x, int16_t y);
193 extern void fix_container(object *container);
194 extern mapstruct *get_linked_map(void);
195 extern mapstruct *get_empty_map(int sizex, int sizey);
196 extern mapstruct *mapfile_load(const char *map, int flags);
197 extern int save_map(mapstruct *m, int flag);
198 extern void clean_object(object *op);
199 extern void free_map(mapstruct *m);
200 extern void delete_map(mapstruct *m);
201 extern mapstruct *ready_map_name(const char *name, int flags);
202 extern int calculate_difficulty(mapstruct *m);
203 extern void clean_tmp_map(mapstruct *m);
204 extern void free_all_maps(void);
205 extern int change_map_light(mapstruct *m, int change);
206 extern void update_position(mapstruct *m, int x, int y);
207 extern void set_map_reset_time(mapstruct *map);
208 extern int out_of_map(mapstruct *m, int x, int y);
210 extern int get_rangevector(object *op1, const object *op2, rv_vector *retval, int flags);
211 extern int get_rangevector_from_mapcoord(const mapstruct *m, int x, int y, const object *op2, rv_vector *retval, int flags);
212 extern int on_same_map(const object *op1, const object *op2);
213 extern object *map_find_by_flag(mapstruct *map, int x, int y, int flag);
214 extern void map_remove_unique_files(const mapstruct *map);
215 extern const char *map_get_path(const object *item);
216 /* ob_methods.c */
217 extern method_ret ob_apply(object *op, object *applier, int aflags);
218 extern method_ret ob_process(object *op);
219 extern char *ob_describe(const object *op, const object *observer, char *buf, size_t size);
220 extern method_ret ob_move_on(object *op, object *victim, object *originator);
221 extern method_ret ob_trigger(object *op, object *cause, int state);
222 /* ob_types.c */
223 extern void init_ob_method_struct(ob_methods *methods, ob_methods *fallback);
224 extern void init_ob_types(ob_methods *base_type);
225 extern void register_apply(int ob_type, apply_func method);
226 extern void register_process(int ob_type, process_func method);
227 extern void register_describe(int ob_type, describe_func method);
228 extern void register_move_on(int ob_type, move_on_func method);
229 extern void register_trigger(int ob_type, trigger_func method);
230 /* object.c */
231 extern int object_can_merge(object *ob1, object *ob2);
232 extern signed long object_sum_weight(object *op);
233 extern object *object_get_env_recursive(object *op);
234 extern object *object_get_player_container(object *op);
235 extern void object_dump(const object *op, StringBuffer *sb);
236 extern void object_dump_all(void);
237 extern object *object_find_by_tag_global(tag_t i);
238 extern object *object_find_by_name_global(const char *str);
239 extern void object_free_all_data(void);
240 extern object *object_get_owner(object *op);
241 extern void object_clear_owner(object *op);
242 extern void object_set_owner(object *op, object *owner);
243 extern void object_copy_owner(object *op, object *clone);
244 extern void object_set_enemy(object *op, object *enemy);
245 extern void object_reset(object *op);
246 extern void object_free_key_values(object *op);
247 extern void object_clear(object *op);
248 extern void object_copy(const object *src_ob, object *dest_ob);
249 extern void object_copy_with_inv(const object *src_ob, object *dest_ob);
250 extern object *object_new(void);
251 extern void object_update_turn_face(object *op);
252 extern void object_update_speed(object *op);
253 extern void object_remove_from_active_list(object *op);
254 extern void object_update(object *op, int action);
255 extern void object_free_drop_inventory(object *ob);
256 extern void object_free2(object *ob, int flags);
257 extern int object_count_free(void);
258 extern int object_count_used(void);
259 extern int object_count_active(void);
260 extern void object_sub_weight(object *op, signed long weight);
261 extern void object_remove(object *op);
262 extern object *object_merge(object *op, object *top);
263 extern object *object_insert_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y);
264 extern void object_merge_spell(object *op, int16_t x, int16_t y);
265 extern object *object_insert_in_map(object *op, mapstruct *m, object *originator, int flag);
266 extern void object_replace_insert_in_map(const char *arch_string, object *op);
267 extern object *object_split(object *orig_ob, uint32_t nr, char *err, size_t size);
268 extern object *object_decrease_nrof(object *op, uint32_t i);
269 extern void object_add_weight(object *op, signed long weight);
270 extern object *object_insert_in_ob(object *op, object *where);
271 extern int object_check_move_on(object *op, object *originator);
272 extern object *map_find_by_archetype(mapstruct *m, int x, int y, const archetype *at);
273 extern object *map_find_by_type(mapstruct *m, int x, int y, uint8_t type);
274 extern object *object_present_in_ob(uint8_t type, const object *op);
275 extern object *object_present_in_ob_by_name(int type, const char *str, const object *op);
276 extern object *arch_present_in_ob(const archetype *at, const object *op);
277 extern void object_set_flag_inv(object *op, int flag);
278 extern void object_unset_flag_inv(object *op, int flag);
279 extern void object_set_cheat(object *op);
280 extern int object_find_multi_free_spot_around(const object *ob, const object *gen, int16_t *hx, int16_t *hy);
281 extern int object_find_multi_free_spot_within_radius(const object *ob, const object *gen, int *hx, int *hy);
282 extern int object_find_free_spot(const object *ob, mapstruct *m, int x, int y, int start, int stop);
283 extern int object_find_first_free_spot(const object *ob, mapstruct *m, int x, int y);
284 extern void get_search_arr(int *search_arr);
285 extern int map_find_dir(mapstruct *m, int x, int y, object *exclude);
286 extern int object_distance(const object *ob1, const object *ob2);
287 extern int find_dir_2(int x, int y);
288 extern int absdir(int d);
289 extern int dirdiff(int dir1, int dir2);
290 extern int can_see_monsterP(mapstruct *m, int x, int y, int dir);
291 extern int object_can_pick(const object *who, const object *item);
292 extern object *object_create_clone(object *asrc);
293 extern object *object_find_by_name(const object *who, const char *name);
294 extern object *object_find_by_type(const object *who, int type);
295 extern object *object_find_by_type2(const object *who, int type1, int type2);
296 extern object *object_find_by_tag(const object *who, tag_t tag);
297 extern object *object_find_by_type_applied(const object *who, int type);
298 extern object *object_find_by_type_and_name(const object *who, int type, const char *name);
299 extern object *object_find_by_type_and_race(const object *who, int type, const char *race);
300 extern object *object_find_by_type_and_slaying(const object *who, int type, const char *slaying);
301 extern object *object_find_by_type_and_skill(const object *who, int type, const char *skill);
302 extern object *object_find_by_flag(const object *who, int flag);
303 extern object *object_find_by_flag_applied(const object *who, int flag);
304 extern object *object_find_by_arch_name(const object *who, const char *name);
305 extern object *object_find_by_type_and_arch_name(const object *who, int type, const char *name);
306 extern object *object_find_by_type_subtype(const object *who, int type, int subtype);
307 extern key_value *object_get_key_value(const object *ob, const char *key);
308 extern const char *object_get_value(const object *op, const char *const key);
309 extern int object_set_value(object *op, const char *key, const char *value, int add_key);
310 extern int object_matches_string(object *pl, object *op, const char *name);
311 extern void object_fix_multipart(object *tmp);
312 extern void object_get_multi_size(const object *ob, int *sx, int *sy, int *hx, int *hy);
313 extern void object_insert_to_free_spot_or_free(object *op, mapstruct *map, int x, int y, int start, int stop, object *originator);
314 extern void object_set_msg(object *op, const char *msg);
315 extern void get_ob_diff(StringBuffer *sb, const object *op, const object *op2);
316 extern int save_object(FILE *fp, object *op, int flag);
317 /* path.c */
318 extern char *path_combine(const char *src, const char *dst, char *path, size_t size);
319 extern void path_normalize(char *path);
320 extern char *path_combine_and_normalize(const char *src, const char *dst, char *path, size_t size);
321 /* porting.c */
322 extern FILE *tempnam_secure(const char *dir, const char *pfx, char **filename);
323 extern void remove_directory(const char *path);
324 extern int isqrt(int n);
325 extern void make_path_to_file(const char *filename);
326 /* player.c */
327 extern void clear_player(player *pl);
328 extern void free_player(player *pl);
329 extern int atnr_is_dragon_enabled(int attacknr);
330 extern int is_dragon_pl(const object *op);
331 extern client_spell *get_client_spell_state(player *pl, object *spell);
332 extern int is_wraith_pl(object *op);
333 extern int is_old_wraith_pl(object *op);
334 extern void player_set_dragon_title(struct pl *pl, int level, const char *attack, int skin_resist);
335 extern void player_get_title(const struct pl *pl, char *buf, size_t bufsize);
336 extern int player_has_own_title(const struct pl *pl);
337 extern const char *player_get_own_title(const struct pl *pl);
338 extern void player_set_own_title(struct pl *pl, const char *title);
339 /* re-cmp.c */
340 extern const char *re_cmp(const char *str, const char *regexp);
341 /* readable.c */
342 extern int nstrtok(const char *buf1, const char *buf2);
343 extern char *strtoktolin(const char *buf1, const char *buf2, char *retbuf, size_t size);
344 extern int book_overflow(const char *buf1, const char *buf2, size_t booksize);
345 extern void init_readable(void);
346 extern object *get_random_mon(int level);
347 extern void tailor_readable_ob(object *book, int msg_type);
348 extern void free_all_readable(void);
349 extern void write_book_archive(void);
350 extern const readable_message_type *get_readable_message_type(object *readable);
351 extern const GeneralMessage *get_message_from_identifier(const char *identifier);
352 extern sstring get_message_title(const GeneralMessage *message);
353 extern sstring get_message_body(const GeneralMessage *message);
354 extern unsigned int get_message_face(const GeneralMessage *message);
355 /* recipe.c */
356 extern recipelist *get_formulalist(int i);
357 extern void init_formulae(void);
358 extern void dump_alchemy(void);
359 extern archetype *find_treasure_by_name(const treasure *t, const char *name, int depth);
360 extern void dump_alchemy_costs(void);
361 extern int strtoint(const char *buf);
362 extern const artifact *locate_recipe_artifact(const recipe *rp, size_t idx);
363 extern recipe *get_random_recipe(recipelist *rpl);
364 extern void free_all_recipes(void);
365 extern recipe *find_recipe_for_tool(const char *tool, recipe *from);
366 /* region.c */
367 extern region *get_region_by_name(const char *region_name);
369 extern const char *get_name_of_region_for_map(const mapstruct *m);
370 extern region *get_region_from_string(const char *name);
371 extern int region_is_child_of_region(const region *child, const region *r);
372 extern const char *get_region_longname(const region *r);
373 extern const char *get_region_msg(const region *r);
374 extern object *get_jail_exit(object *op);
375 extern int init_regions(void);
376 extern region *get_region_struct(void);
377 /* shstr.c */
378 extern void init_hash_table(void);
379 extern sstring add_string(const char *str);
380 extern sstring add_refcount(sstring str);
381 extern int query_refcount(sstring str);
382 extern sstring find_string(const char *str);
383 extern void free_string(sstring str);
384 extern void ss_dump_statistics(char *buf, size_t size);
385 extern char *ss_dump_table(int what, char *buf, size_t size);
386 extern int buf_overflow(const char *buf1, const char *buf2, size_t bufsize);
387 /* stringbuffer.c */
388 extern StringBuffer *stringbuffer_new(void);
389 extern void stringbuffer_delete(StringBuffer *sb);
390 extern char *stringbuffer_finish(StringBuffer *sb);
392 extern void stringbuffer_append_string(StringBuffer *sb, const char *str);
393 extern void stringbuffer_append_printf(StringBuffer *sb, const char *format, ...);
394 extern void stringbuffer_append_stringbuffer(StringBuffer *sb, const StringBuffer *sb2);
395 extern size_t stringbuffer_length(StringBuffer *sb);
396 /* time.c */
397 extern const char *get_periodofday(const int index);
398 extern const char *get_month_name(const int index);
399 extern const char *get_weekday(const int index);
400 extern const char *get_season_name(const int index);
401 extern void reset_sleep(void);
402 extern long usec_elapsed(struct timespec first, struct timespec second);
403 extern void sleep_delta(void);
404 extern void set_max_time(long t);
405 extern void get_tod(timeofday_t *tod);
406 extern void time_info(object *op);
407 extern long seconds(void);
408 extern const char *time_format_time(const timeofday_t *tod, char *buf, size_t bufsize);
409 /* treasure.c */
410 extern void init_archetype_pointers(void);
411 extern void load_treasures(void);
412 extern treasurelist *find_treasurelist(const char *name);
413 extern void create_treasure(treasurelist *t, object *op, int flag, int difficulty, int tries);
414 extern object *generate_treasure(treasurelist *t, int difficulty);
415 extern void set_abs_magic(object *op, int magic);
416 extern void fix_generated_item(object *op, object *creator, int difficulty, int max_magic, int flags);
417 extern void dump_monster_treasure(const char *name);
418 extern void free_all_treasures(void);
419 extern objectlink *treasurelist_find_matching_type(const treasurelist *randomitems, int type, int traverse);
420 /* utils.c */
421 extern int random_roll(int min, int max, const object *op, int goodbad);
422 extern int64_t random_roll64(int64_t min, int64_t max, const object *op, int goodbad);
423 extern int die_roll(int num, int size, const object *op, int goodbad);
424 extern int rndm(int min, int max);
425 extern void decay_objects(mapstruct *m);
426 extern materialtype_t *name_to_material(const char *name);
427 extern void transmute_materialname(object *op, const object *change);
428 extern void set_materialname(object *op);
429 extern const char *strrstr(const char *haystack, const char *needle);
430 extern void strip_endline(char *buf);
431 extern void replace(const char *src, const char *key, const char *replacement, char *result, size_t resultsize);
432 extern void make_list_like(char *input);
433 extern int get_random_dir(void);
434 extern int get_randomized_dir(int dir);
435 extern int adjust_dir(int dir, int destination_dir);
436 extern void replace_unprintable_chars(char *buf);
437 extern size_t split_string(char *str, char *array[], size_t array_size, char sep);
438 extern StringBuffer *describe_spellpath_attenuation(const char *attenuation, int value, StringBuffer *buf);
439 extern StringBuffer *describe_attacktype(const char *attack, int value, StringBuffer *buf);
440 /* loader.c */
441 extern int lex_load(int *depth, object **items, int maxdepth, int map_flags, int linemode);
442 extern void yyrestart(FILE *input_file);
443 extern void yypop_buffer_state(void);
444 extern int yyget_lineno(void);
445 extern FILE *yyget_in(void);
446 extern FILE *yyget_out(void);
447 extern char *yyget_text(void);
448 extern void yyset_lineno(int line_number);
449 extern void yyset_in(FILE *in_str);
450 extern void yyset_out(FILE *out_str);
451 extern int yyget_debug(void);
452 extern void yyset_debug(int bdebug);
453 extern int yylex_destroy(void);
454 extern void yyfree(void *ptr);
455 extern int load_object(FILE *fp, object *op, int bufstate, int map_flags);
456 extern int set_variable(object *op, const char *buf);
457 extern void free_loader(void);
void init_objects(void)
Definition: init.c:367
int init_regions(void)
Definition: region.c:292
void object_set_owner(object *op, object *owner)
Definition: object.c:601
void object_reset(object *op)
Definition: object.c:704
int object_count_free(void)
Definition: object.c:1560
object * create_archetype_by_object_name(const char *name)
Definition: arch.c:160
int yyget_debug(void)
void dump_map(const mapstruct *m)
Definition: map.c:247
const char * player_get_own_title(const struct pl *pl)
Definition: player.c:252
void free_all_recipes(void)
Definition: recipe.c:727
const object * pntr_to_god_obj(godlink *godlnk)
Definition: holy.c:123
mapstruct * ready_map_name(const char *name, int flags)
Definition: map.c:1817
object * object_find_by_tag_global(tag_t i)
Definition: object.c:476
archetype * find_archetype_by_object_name(const char *name)
Definition: arch.c:57
Definition: player.h:92
char * yyget_text(void)
char * path_combine_and_normalize(const char *src, const char *dst, char *path, size_t size)
Definition: path.c:172
int is_type_valid(uint8_t type)
oblinkpt * get_objectlinkpt(void)
Definition: links.c:51
int check_altar_sacrifice(const object *altar, const object *sacrifice, int remove_others, int *toremove)
Definition: button.c:352
void verify_button_links(const mapstruct *map)
Definition: button.c:851
int need_identify(const object *op)
Definition: item.c:1332
int on_same_map(const object *op1, const object *op2)
Definition: map.c:2652
void make_sure_not_seen(const object *op)
Definition: los.c:655
void free_all_archs(void)
Definition: arch.c:287
int object_matches_string(object *pl, object *op, const char *name)
Definition: object.c:4456
Definition: map.h:380
int object_find_multi_free_spot_around(const object *ob, const object *gen, int16_t *hx, int16_t *hy)
Definition: object.c:3147
void(* describe_func)(const ob_methods *, const object *, const object *, char *buf, size_t size)
Definition: ob_methods.h:41
void init_hash_table(void)
Definition: shstr.c:55
void free_map(mapstruct *m)
Definition: map.c:1708
void object_merge_spell(object *op, int16_t x, int16_t y)
Definition: object.c:1953
Definition: object.h:442
int i18n_find_language_by_code(const char *code)
Definition: languages.c:95
void object_copy_owner(object *op, object *clone)
Definition: object.c:657
void free_arch(archetype *at)
Definition: arch.c:263
void add_abilities(object *op, const object *change)
Definition: artifact.c:284
sstring stringbuffer_finish_shared(StringBuffer *sb)
Definition: stringbuffer.c:85
const char * get_month_name(const int index)
Definition: time.c:109
FILE * yyget_in(void)
object * map_find_by_archetype(mapstruct *m, int x, int y, const archetype *at)
Definition: object.c:2944
int player_has_own_title(const struct pl *pl)
Definition: player.c:239
void replace_unprintable_chars(char *buf)
Definition: utils.c:474
StringBuffer * describe_resistance(const object *op, int newline, int use_media_tags, StringBuffer *buf)
Definition: item.c:384
void init_formulae(void)
Definition: recipe.c:143
object * object_find_by_type_and_skill(const object *who, int type, const char *skill)
Definition: object.c:4077
void sleep_delta(void)
Definition: time.c:180
int adjust_dir(int dir, int destination_dir)
Definition: utils.c:453
void register_apply(int ob_type, apply_func method)
Definition: ob_types.c:62
void clear_los(object *op)
Definition: los.c:248
void ss_dump_statistics(char *buf, size_t size)
Definition: shstr.c:323
unsigned char uint8_t
Definition: win32.h:161
int is_old_wraith_pl(object *op)
Definition: player.c:177
objectlink * get_objectlink(void)
Definition: links.c:33
void dump_abilities(void)
Definition: info.c:63
void decay_objects(mapstruct *m)
Definition: utils.c:175
void print_los(object *op)
Definition: los.c:602
int get_dex_bonus(int stat)
Definition: living.c:2271
void check_generators(void)
Definition: arch.c:467
int random_roll(int min, int max, const object *op, int goodbad)
Definition: utils.c:42
void update_all_map_los(mapstruct *map)
Definition: los.c:504
void dump_experience(void)
Definition: exp.c:249
void dump_all_archetypes(void)
Definition: arch.c:242
object * object_find_by_type_subtype(const object *who, int type, int subtype)
Definition: object.c:4198
int describe_god(const object *god, int what, StringBuffer *buf, size_t maxlen)
Definition: holy.c:137
int change_abil(object *op, object *tmp)
Definition: living.c:394
void object_insert_to_free_spot_or_free(object *op, mapstruct *map, int x, int y, int start, int stop, object *originator)
Definition: object.c:4678
region * get_region_by_map(mapstruct *m)
Definition: region.c:74
void object_replace_insert_in_map(const char *arch_string, object *op)
Definition: object.c:2425
void clean_friendly_list(void)
Definition: friend.c:111
void free_socket_images(void)
Definition: image.c:572
int can_see_monsterP(mapstruct *m, int x, int y, int dir)
Definition: object.c:3745
object * create_singularity(const char *name)
Definition: arch.c:595
treasurelist * find_treasurelist(const char *name)
Definition: treasure.c:292
void object_dump(const object *op, StringBuffer *sb)
Definition: object.c:394
void object_dump_all(void)
Definition: object.c:450
void change_luck(object *op, int value)
Definition: living.c:791
void object_copy_with_inv(const object *src_ob, object *dest_ob)
Definition: object.c:975
int get_power_from_ench(int ench)
Definition: item.c:229
void map_remove_unique_files(const mapstruct *map)
Definition: map.c:2692
void init_gods(void)
Definition: holy.c:53
void stringbuffer_append_stringbuffer(StringBuffer *sb, const StringBuffer *sb2)
Definition: stringbuffer.c:131
archetype * find_archetype(const char *name)
Definition: arch.c:692
void delete_map(mapstruct *m)
Definition: map.c:1755
void yypop_buffer_state(void)
int get_thaco_bonus(int stat)
Definition: living.c:2275
void init_archetype_pointers(void)
Definition: treasure.c:64
void apply_anim_suffix(object *who, sstring suffix)
Definition: anim.c:318
void yyfree(void *ptr)
void yyset_out(FILE *out_str)
void update_button(object *op)
Definition: button.c:167
void use_trigger(object *op)
Definition: button.c:259
archetype * find_archetype_by_object_type_name(int type, const char *name)
Definition: arch.c:83
int try_find_animation(const char *name)
Definition: anim.c:185
int object_set_value(object *op, const char *key, const char *value, int add_key)
Definition: object.c:4378
int8_t get_attr_value(const living *stats, int attr)
Definition: living.c:313
Definition: god.h:12
int yylex_destroy(void)
int operate_altar(object *altar, object **sacrifice)
Definition: button.c:468
object * give_skill_by_name(object *op, const char *skill_name)
Definition: living.c:1750
void object_set_msg(object *op, const char *msg)
Definition: object.c:4698
object * object_insert_in_ob(object *op, object *where)
Definition: object.c:2690
void query_short_name(const object *op, char *buf, size_t size)
Definition: item.c:548
void dump_gods(void)
Definition: holy.c:386
size_t split_string(char *str, char *array[], size_t array_size, char sep)
Definition: utils.c:500
int die_roll(int num, int size, const object *op, int goodbad)
Definition: utils.c:122
region * get_region_by_name(const char *region_name)
Definition: region.c:46
region * get_region_from_string(const char *name)
Definition: region.c:121
object * object_find_by_type_and_arch_name(const object *who, int type, const char *name)
Definition: object.c:4171
Definition: living.h:34
void dump_alchemy_costs(void)
Definition: recipe.c:501
void dump_friendly_objects(void)
Definition: friend.c:100
void object_update_turn_face(object *op)
Definition: object.c:1109
const typedata * get_typedata(int itemtype)
Definition: item.c:335
int object_find_multi_free_spot_within_radius(const object *ob, const object *gen, int *hx, int *hy)
Definition: object.c:3266
void stringbuffer_append_printf(StringBuffer *sb, const char *format,...)
Definition: stringbuffer.c:104
int object_can_pick(const object *who, const object *item)
Definition: object.c:3793
region * get_region_struct(void)
Definition: region.c:325
int get_fear_bonus(int stat)
Definition: living.c:2303
void init_experience(void)
Definition: exp.c:167
object * object_merge(object *op, object *top)
Definition: object.c:1869
void generate_artifact(object *op, int difficulty)
Definition: artifact.c:155
const char * strrstr(const char *haystack, const char *needle)
Definition: utils.c:325
int object_find_free_spot(const object *ob, mapstruct *m, int x, int y, int start, int stop)
Definition: object.c:3415
Definition: object.h:465
void free_objectlinkpt(oblinkpt *obp)
Definition: links.c:79
void fatal(enum fatal_error err)
Definition: utils.c:597
signed long object_sum_weight(object *op)
Definition: object.c:311
int get_dialog_message(object *op, const char *text, struct_dialog_message **message, struct_dialog_reply **reply)
Definition: dialog.c:209
void write_todclock(void)
Definition: init.c:447
int yyget_lineno(void)
mapstruct * mapfile_load(const char *map, int flags)
Definition: map.c:1237
int get_cha_bonus(int stat)
Definition: living.c:2267
int64_t check_exp_loss(const object *op, int64_t exp)
Definition: living.c:1998
int find_dir_2(int x, int y)
Definition: object.c:3600
void query_base_name(const object *op, int plural, char *buf, size_t size)
Definition: item.c:723
object * object_find_by_type_and_slaying(const object *who, int type, const char *slaying)
Definition: object.c:4052
void yyset_in(FILE *in_str)
int get_face_fallback(int faceset, int imageno)
Definition: image.c:602
int get_cleric_chance(int stat)
Definition: living.c:2287
void path_normalize(char *path)
Definition: path.c:85
char * strtoktolin(const char *buf1, const char *buf2, char *retbuf, size_t size)
Definition: readable.c:686
void object_remove_from_active_list(object *op)
Definition: object.c:1194
void create_treasure(treasurelist *t, object *op, int flag, int difficulty, int tries)
Definition: treasure.c:490
int check_trigger(object *op, object *cause)
Definition: button.c:523
char method_ret
Definition: ob_methods.h:14
void init_readable(void)
Definition: readable.c:1027
void object_fix_multipart(object *tmp)
Definition: object.c:4567
object * map_find_by_type(mapstruct *m, int x, int y, uint8_t type)
Definition: object.c:2974
void push_button(object *op)
Definition: button.c:154
const char * destination_dir
void free_string(sstring str)
Definition: shstr.c:280
int set_variable(object *op, const char *buf)
int object_can_merge(object *ob1, object *ob2)
Definition: object.c:171
FILE * yyget_out(void)
int absdir(int d)
Definition: object.c:3637
void free_loader(void)
object * map_find_by_flag(mapstruct *map, int x, int y, int flag)
Definition: map.c:2675
StringBuffer * describe_spellpath_attenuation(const char *attenuation, int value, StringBuffer *buf)
Definition: utils.c:534
sstring get_message_body(const GeneralMessage *message)
Definition: readable.c:2257
void init_block(void)
Definition: los.c:88
void query_name(const object *op, char *buf, size_t size)
Definition: item.c:626
void object_clear_owner(object *op)
Definition: object.c:581
void object_unset_flag_inv(object *op, int flag)
Definition: object.c:3101
void object_add_weight(object *op, signed long weight)
Definition: object.c:2663
void i18n_free(void)
Definition: languages.c:252
int atnr_is_dragon_enabled(int attacknr)
Definition: player.c:95
object * arch_present_in_ob(const archetype *at, const object *op)
Definition: object.c:3061
void free_dialog_information(object *op)
Definition: dialog.c:32
archetype * get_archetype_struct(void)
Definition: arch.c:312
const char * get_periodofday(const int index)
Definition: time.c:102
void free_all_treasures(void)
Definition: treasure.c:1597
void create_template_pathname(const char *name, char *buf, size_t size)
Definition: map.c:145
const char * get_weekday(const int index)
Definition: time.c:116
object * create_archetype(const char *name)
Definition: arch.c:617
void player_set_dragon_title(struct pl *pl, int level, const char *attack, int skin_resist)
Definition: player.c:194
archetype * get_archetype_by_type_subtype(int type, int subtype)
Definition: arch.c:136
int read_smooth(void)
Definition: image.c:323
object * object_present_in_ob(uint8_t type, const object *op)
Definition: object.c:3001
int get_rangevector(object *op1, const object *op2, rv_vector *retval, int flags)
Definition: map.c:2541
void object_clear(object *op)
Definition: object.c:759
signed short int16_t
Definition: win32.h:160
object * object_find_by_type_and_race(const object *who, int type, const char *race)
Definition: object.c:4027
int get_rangevector_from_mapcoord(const mapstruct *m, int x, int y, const object *op2, rv_vector *retval, int flags)
Definition: map.c:2614
void free_experience(void)
Definition: exp.c:261
int save_map(mapstruct *m, int flag)
Definition: map.c:1442
const char * object_get_value(const object *op, const char *const key)
Definition: object.c:4249
char * ob_describe(const object *op, const object *observer, char *buf, size_t size)
Definition: ob_methods.c:85
void fix_generated_item(object *op, object *creator, int difficulty, int max_magic, int flags)
Definition: treasure.c:1110
void object_free_drop_inventory(object *ob)
Definition: object.c:1368
int object_find_first_free_spot(const object *ob, mapstruct *m, int x, int y)
Definition: object.c:3458
StringBuffer * describe_monster(const object *op, int use_media_tags, StringBuffer *buf)
Definition: item.c:807
Definition: map.h:276
void remove_statbonus(object *op)
Definition: living.c:840
void object_copy(const object *src_ob, object *dest_ob)
Definition: object.c:838
void object_update_speed(object *op)
Definition: object.c:1129
void change_exp(object *op, int64_t exp, const char *skill_name, int flag)
Definition: living.c:2100
client_spell * get_client_spell_state(player *pl, object *spell)
Definition: player.c:136
uint32_t get_weight_limit(int stat)
Definition: living.c:2279
sstring add_string(const char *str)
Definition: shstr.c:124
const char * get_region_msg(const region *r)
Definition: region.c:238
object * object_find_by_tag(const object *who, tag_t tag)
Definition: object.c:3954
void clean_object(object *op)
Definition: map.c:1645
materialtype_t * name_to_material(const char *name)
Definition: utils.c:248
void update_los(object *op)
Definition: los.c:455
int query_refcount(sstring str)
Definition: shstr.c:224
void tailor_readable_ob(object *book, int msg_type)
Definition: readable.c:2041
void read_bmap_names(void)
Definition: image.c:180
void transmute_materialname(object *op, const object *change)
Definition: utils.c:267
void free_globals(void)
Definition: init.c:327
int object_distance(const object *ob1, const object *ob2)
Definition: object.c:3584
void update_buttons(mapstruct *m)
Definition: button.c:232
void drain_stat(object *op)
Definition: living.c:712
void yyrestart(FILE *input_file)
archetype * find_treasure_by_name(const treasure *t, const char *name, int depth)
Definition: recipe.c:371
mapstruct * get_empty_map(int sizex, int sizey)
Definition: map.c:874
int64_t new_exp(const object *ob)
Definition: exp.c:100
const readable_message_type * get_readable_message_type(object *readable)
Definition: readable.c:2222
const char * get_region_longname(const region *r)
Definition: region.c:217
object * object_find_by_type_and_name(const object *who, int type, const char *name)
Definition: object.c:4002
void load_treasures(void)
Definition: treasure.c:221
void dump_animations(void)
Definition: anim.c:348
int object_count_active(void)
Definition: object.c:1598
void register_trigger(int ob_type, trigger_func method)
Definition: ob_types.c:98
int out_of_map(mapstruct *m, int x, int y)
Definition: map.c:2308
int get_learn_spell(int stat)
Definition: living.c:2283
int has_ability(const object *ob)
Definition: exp.c:153
int is_friendly(const object *op)
Definition: friend.c:144
void init_library(void)
Definition: init.c:203
StringBuffer * stringbuffer_new(void)
Definition: stringbuffer.c:57
float get_speed_bonus(int stat)
Definition: living.c:2299
int check_path(const char *name, int prepend_dir)
Definition: map.c:203
int get_map_flags(mapstruct *oldmap, mapstruct **newmap, int16_t x, int16_t y, int16_t *nx, int16_t *ny)
Definition: map.c:302
void free_all_god(void)
Definition: holy.c:337
char * create_pathname(const char *name, char *buf, size_t size)
Definition: map.c:104
void animate_turning(object *op)
Definition: button.c:275
void object_free2(object *ob, int flags)
Definition: object.c:1391
int has_carried_lights(const object *op)
Definition: los.c:311
void make_path_to_file(const char *filename)
Definition: porting.c:312
void dump_artifacts(void)
Definition: artifact.c:683
void add_friendly_object(object *op)
Definition: friend.c:30
char * stringbuffer_finish(StringBuffer *sb)
Definition: stringbuffer.c:76
object * object_insert_in_map(object *op, mapstruct *m, object *originator, int flag)
Definition: object.c:2152
object * object_present_in_ob_by_name(int type, const char *str, const object *op)
Definition: object.c:3039
object * object_find_by_type_applied(const object *who, int type)
Definition: object.c:3977
unsigned int get_message_face(const GeneralMessage *message)
Definition: readable.c:2266
const artifactlist * find_artifactlist(int type)
Definition: artifact.c:647
object * object_split(object *orig_ob, uint32_t nr, char *err, size_t size)
Definition: object.c:2463
void init_stats(int reload)
Definition: living.c:2511
void object_update(object *op, int action)
Definition: object.c:1239
uint32_t tag_t
Definition: object.h:12
void object_get_multi_size(const object *ob, int *sx, int *sy, int *hx, int *hy)
Definition: object.c:4629
void init_artifacts(void)
Definition: artifact.c:530
object * arch_to_object(archetype *at)
Definition: arch.c:569
void stringbuffer_append_string(StringBuffer *sb, const char *str)
Definition: stringbuffer.c:95
void free_all_artifacts(void)
Definition: artifact.c:140
void set_map_reset_time(mapstruct *map)
Definition: map.c:2247
int nstrtok(const char *buf1, const char *buf2)
Definition: readable.c:656
int allowed_class(const object *op)
Definition: living.c:1623
method_ret ob_process(object *op)
Definition: ob_methods.c:62
mapstruct * has_been_loaded(const char *name)
Definition: map.c:79
void yyset_lineno(int line_number)
object * object_find_by_type2(const object *who, int type1, int type2)
Definition: object.c:3931
void yyset_debug(int bdebug)
int find_smooth(uint16_t face, uint16_t *smoothed)
Definition: image.c:379
void init_ob_method_struct(ob_methods *methods, ob_methods *fallback)
Definition: ob_types.c:32
void read_client_images(void)
Definition: image.c:448
void set_attr_value(living *stats, int attr, int8_t value)
Definition: living.c:218
int calculate_difficulty(mapstruct *m)
Definition: map.c:1927
int dirdiff(int dir1, int dir2)
Definition: object.c:3655
void i18n_list_languages(object *who)
Definition: languages.c:132
int get_button_value(const object *button)
Definition: button.c:754
LogLevel
Definition: logger.h:10
const char * time_format_time(const timeofday_t *tod, char *buf, size_t bufsize)
Definition: time.c:365
void free_all_images(void)
Definition: image.c:396
int save_object(FILE *fp, object *op, int flag)
Definition: object.c:5189
FILE * tempnam_secure(const char *dir, const char *pfx, char **filename)
Definition: porting.c:108
char * ss_dump_table(int what, char *buf, size_t size)
Definition: shstr.c:354
int calc_item_power(const object *op)
Definition: item.c:247
object * get_random_mon(int level)
Definition: readable.c:1393
method_ret(* process_func)(ob_methods *, object *)
Definition: ob_methods.h:40
key_value * object_get_key_value(const object *ob, const char *key)
Definition: object.c:4221
void make_list_like(char *input)
Definition: utils.c:395
void trigger_connected(objectlink *ol, object *cause, const int state)
Definition: button.c:41
int get_randomized_dir(int dir)
Definition: utils.c:439
void fix_container(object *container)
Definition: map.c:544
mapstruct * get_map_from_coord(mapstruct *m, int16_t *x, int16_t *y)
Definition: map.c:2382
int book_overflow(const char *buf1, const char *buf2, size_t booksize)
Definition: readable.c:716
void free_player(player *pl)
Definition: player.c:57
unsigned short uint16_t
Definition: win32.h:163
int strtoint(const char *buf)
Definition: recipe.c:622
sstring add_refcount(sstring str)
Definition: shstr.c:210
void remove_button_link(object *op)
Definition: button.c:698
int i18n_get_language_by_code(const char *code)
Definition: languages.c:110
signed __int64 int64_t
Definition: win32.h:168
int get_language(object *op)
Definition: languages.c:55
void remove_directory(const char *path)
Definition: porting.c:154
static const flag_definition flags[]
void object_sub_weight(object *op, signed long weight)
Definition: object.c:1625
object * check_inv_recursive(object *op, const object *trig)
Definition: button.c:786
void object_set_enemy(object *op, object *enemy)
Definition: object.c:679
int blocked_link(object *ob, mapstruct *m, int sx, int sy)
Definition: map.c:346
const char * get_season_name(const int index)
Definition: time.c:123
void object_free_all_data(void)
Definition: object.c:522
void clear_archetable(void)
Definition: arch.c:205
const artifact * find_artifact(const object *op, const char *name)
Definition: artifact.c:657
int is_magical(const object *op)
Definition: item.c:1243
const char * sstring
Definition: global.h:40
object * object_find_by_type(const object *who, int type)
Definition: object.c:3906
recipe * find_recipe_for_tool(const char *tool, recipe *from)
Definition: recipe.c:810
int get_random_dir(void)
Definition: utils.c:427
void object_give_identified_properties(object *op)
Definition: item.c:1376
unsigned artifact_get_face(const artifact *art)
Definition: artifact.c:709
unsigned int uint32_t
Definition: win32.h:162
method_ret ob_apply(object *op, object *applier, int aflags)
Definition: ob_methods.c:42
size_t stringbuffer_length(StringBuffer *sb)
Definition: stringbuffer.c:154
object * object_get_player_container(object *op)
Definition: object.c:353
void create_overlay_pathname(const char *name, char *buf, size_t size)
Definition: map.c:125
void update_all_los(const mapstruct *map, int x, int y)
Definition: los.c:532
objectlink * treasurelist_find_matching_type(const treasurelist *randomitems, int type, int traverse)
Definition: treasure.c:1707
const char * re_cmp(const char *str, const char *regexp)
Definition: re-cmp.c:69
recipelist * get_formulalist(int i)
Definition: recipe.c:96
archetype * try_find_archetype(const char *name)
Definition: arch.c:663
int get_dam_bonus(int stat)
Definition: living.c:2295
const artifact * locate_recipe_artifact(const recipe *rp, size_t idx)
Definition: recipe.c:643
void free_objectlink(objectlink *ol)
Definition: links.c:67
method_ret(* apply_func)(ob_methods *, object *, object *, int)
Definition: ob_methods.h:39
int64_t check_exp_adjust(const object *op, int64_t exp)
Definition: living.c:2023
void change_attr_value(living *stats, int attr, int8_t value)
Definition: living.c:264
archetype * get_archetype_by_skill_name(const char *skill, int type)
Definition: arch.c:107
int is_dragon_pl(const object *op)
Definition: player.c:114
void register_describe(int ob_type, describe_func method)
Definition: ob_types.c:80
int region_is_child_of_region(const region *child, const region *r)
Definition: region.c:190
void object_remove(object *op)
Definition: object.c:1654
method_ret(* trigger_func)(ob_methods *, object *, object *, int)
Definition: ob_methods.h:43
mapstruct * get_linked_map(void)
Definition: map.c:793
signed char int8_t
Definition: win32.h:158
void init_ob_types(ob_methods *base_type)
Definition: ob_types.c:49
void drain_specific_stat(object *op, int deplete_stats)
Definition: living.c:724
void replace(const char *src, const char *key, const char *replacement, char *result, size_t resultsize)
Definition: utils.c:354
int load_object(FILE *fp, object *op, int bufstate, int map_flags)
int map_find_dir(mapstruct *m, int x, int y, object *exclude)
Definition: object.c:3534
method_ret ob_trigger(object *op, object *cause, int state)
Definition: ob_methods.c:127
int get_turn_bonus(int stat)
Definition: living.c:2291
long usec_elapsed(struct timespec first, struct timespec second)
Definition: cfanim.c:1099
object * object_create_clone(object *asrc)
Definition: object.c:3835
void init_archetypes(void)
Definition: arch.c:182
void free_all_maps(void)
Definition: map.c:1977
Definition: tod.h:34
object * object_new(void)
Definition: object.c:1037
int change_map_light(mapstruct *m, int change)
Definition: map.c:2009
void player_lvl_adj(object *who, object *op)
Definition: living.c:1791
const char * map_get_path(const object *item)
Definition: map.c:2715
int64_t level_exp(int level, double expmul)
Definition: living.c:1846
void free_all_anim(void)
Definition: anim.c:30
int did_make_save(const object *op, int level, int bonus)
Definition: living.c:2199
void add_statbonus(object *op)
Definition: living.c:863
recipe * get_random_recipe(recipelist *rpl)
Definition: recipe.c:703
void player_set_own_title(struct pl *pl, const char *title)
Definition: player.c:264
void get_search_arr(int *search_arr)
Definition: object.c:3501
void get_levelnumber(int i, char *buf, size_t size)
Definition: item.c:447
object * get_jail_exit(object *op)
Definition: region.c:260
sstring find_string(const char *str)
Definition: shstr.c:236
const char * get_name_of_region_for_map(const mapstruct *m)
Definition: region.c:92
void object_free_key_values(object *op)
Definition: object.c:727
void animate_object(object *op, int dir)
Definition: anim.c:212
void player_get_title(const struct pl *pl, char *buf, size_t bufsize)
Definition: player.c:224
int remove_depletion(object *op, int level)
Definition: living.c:751
void check_stat_bounds(living *stats, int8_t min_stat, int8_t max_stat)
Definition: living.c:354
int object_count_used(void)
Definition: object.c:1579
void check_summoned(void)
Definition: arch.c:495
void calc_perm_exp(object *op)
Definition: living.c:1862
void init_anim(void)
Definition: anim.c:44
int is_valid_faceset(int fsn)
Definition: image.c:563
void set_max_time(long t)
Definition: time.c:203
object * object_insert_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
Definition: object.c:1921
char * path_combine(const char *src, const char *dst, char *path, size_t size)
Definition: path.c:51
long seconds(void)
Definition: time.c:344
void dump_monster_treasure(const char *name)
Definition: treasure.c:1449
int isqrt(int n)
Definition: utils.c:586
int rndm(int min, int max)
Definition: utils.c:162
object * object_find_by_name_global(const char *str)
Definition: object.c:499
int buf_overflow(const char *buf1, const char *buf2, size_t bufsize)
Definition: shstr.c:398
object * object_find_by_flag(const object *who, int flag)
Definition: object.c:4100
object * identify(object *op)
Definition: item.c:1438
void update_position(mapstruct *m, int x, int y)
Definition: map.c:2133
sstring i18n_get_language_code(int language)
Definition: languages.c:122
void check_inv(object *op, object *trig)
Definition: button.c:826
void set_dragon_name(object *pl, const object *abil, const object *skin)
Definition: living.c:1650
const typedata * get_typedata_by_name(const char *name)
Definition: item.c:355
void print_monsters(void)
Definition: info.c:95
godlink * get_rand_god(void)
Definition: holy.c:101
sstring get_message_title(const GeneralMessage *message)
Definition: readable.c:2248
void make_sure_seen(const object *op)
Definition: los.c:632
void register_move_on(int ob_type, move_on_func method)
Definition: ob_types.c:89
void register_process(int ob_type, process_func method)
Definition: ob_types.c:71
const GeneralMessage * get_message_from_identifier(const char *identifier)
Definition: readable.c:2235
void arch_info(object *op)
Definition: arch.c:196
void set_materialname(object *op)
Definition: utils.c:301
void object_set_flag_inv(object *op, int flag)
Definition: object.c:3081
void i18n_init(void)
Definition: languages.c:168
void dump_arch(archetype *at, StringBuffer *sb)
Definition: arch.c:233
int is_wraith_pl(object *op)
Definition: player.c:165
int64_t random_roll64(int64_t min, int64_t max, const object *op, int goodbad)
Definition: utils.c:77
void get_tod(timeofday_t *tod)
Definition: time.c:215
void free_all_readable(void)
Definition: readable.c:2123
void write_book_archive(void)
Definition: readable.c:2172
void apply_death_exp_penalty(object *op)
Definition: living.c:2150
object * generate_treasure(treasurelist *t, int difficulty)
Definition: treasure.c:518
void add_button_link(object *button, mapstruct *map, int connected)
Definition: button.c:661
object * object_find_by_arch_name(const object *who, const char *name)
Definition: object.c:4146
int find_animation(const char *name)
Definition: anim.c:170
Definition: map.h:325
StringBuffer * describe_item(const object *op, const object *owner, int use_media_tags, StringBuffer *buf)
Definition: item.c:981
int lex_load(int *depth, object **items, int maxdepth, int map_flags, int linemode)
void stringbuffer_delete(StringBuffer *sb)
Definition: stringbuffer.c:71
void clear_player(player *pl)
Definition: player.c:33
void fix_object(object *op)
Definition: living.c:1118
void share_exp(object *op, int64_t exp, const char *skill, int flag)
Definition: living.c:2229
void strip_endline(char *buf)
Definition: utils.c:341
void time_info(object *op)
Definition: time.c:294
object * object_decrease_nrof(object *op, uint32_t i)
Definition: object.c:2505
unsigned find_face(const char *name, unsigned error)
Definition: image.c:303
object * object_create_arch(archetype *at)
Definition: arch.c:733
object * object_get_owner(object *op)
Definition: object.c:559
void query_weight(const object *op, char *buf, size_t size)
Definition: item.c:427
fatal_error
Definition: define.h:47
void object_set_cheat(object *op)
Definition: object.c:3122
static ob_methods base_type
Definition: ob_methods.c:27
void init_globals(void)
Definition: init.c:274
int ob_blocked(const object *ob, mapstruct *m, int16_t x, int16_t y)
Definition: map.c:489
object * object_get_env_recursive(object *op)
Definition: object.c:333
method_ret ob_move_on(object *op, object *victim, object *originator)
Definition: ob_methods.c:105
void clean_tmp_map(mapstruct *m)
Definition: map.c:1968
void reset_sleep(void)
Definition: time.c:130
void give_artifact_abilities(object *op, const object *artifact)
Definition: artifact.c:203
void set_abs_magic(object *op, int magic)
Definition: treasure.c:836
void LOG(LogLevel logLevel, const char *format,...)
Definition: logger.c:51
StringBuffer * describe_attacktype(const char *attack, int value, StringBuffer *buf)
Definition: utils.c:562
void get_ob_diff(StringBuffer *sb, const object *op, const object *op2)
Definition: object.c:4848
method_ret(* move_on_func)(ob_methods *, object *, object *, object *)
Definition: ob_methods.h:42
int object_check_move_on(object *op, object *originator)
Definition: object.c:2835
int legal_artifact_combination(const object *op, const artifact *art)
Definition: artifact.c:221
object * object_find_by_name(const object *who, const char *name)
Definition: object.c:3882
void dump_alchemy(void)
Definition: recipe.c:299
object * object_find_by_flag_applied(const object *who, int flag)
Definition: object.c:4123
void dump_all_maps(void)
Definition: map.c:270
void remove_friendly_object(object *op)
Definition: friend.c:56
const char * i18n(const object *who, const char *code)
Definition: languages.c:69