|
|
1 | int same_party (partylist *a, partylist *b); |
1 | /* alchemy.c */ |
2 | /* alchemy.c */ |
2 | int need_identify (const object *obj); |
3 | int need_identify (const object *obj); |
3 | int apply_shop_mat (object *shop_mat, object *op); |
4 | int apply_shop_mat (object *shop_mat, object *op); |
4 | const char *cost_string_from_value(uint64 cost, int approx); |
5 | const char *cost_string_from_value(sint64 cost, int approx); |
5 | void pay_player (object *pl, uint64 amount); |
6 | void pay_player (object *pl, sint64 amount); |
6 | uint64 pay_player_arch (object *pl, const char *arch, uint64 amount); |
7 | sint64 pay_player_arch (object *pl, const char *arch, sint64 amount); |
7 | void attempt_do_alchemy(object *caster, object *cauldron); |
8 | void attempt_do_alchemy(object *caster, object *cauldron); |
8 | int content_recipe_value(object *op); |
9 | int content_recipe_value(object *op); |
9 | int numb_ob_inside(object *op); |
10 | int numb_ob_inside(object *op); |
10 | object *attempt_recipe(object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
11 | object *attempt_recipe(object *caster, object *cauldron, int ability, recipe *rp, int nbatches); |
11 | void adjust_product(object *item, int lvl, int yield); |
12 | void adjust_product(object *item, int lvl, int yield); |
… | |
… | |
41 | int unapply_for_ob(object *who, object *op, int aflags); |
42 | int unapply_for_ob(object *who, object *op, int aflags); |
42 | int can_apply_object(object *who, object *op); |
43 | int can_apply_object(object *who, object *op); |
43 | int apply_special(object *who, object *op, int aflags); |
44 | int apply_special(object *who, object *op, int aflags); |
44 | int monster_apply_special(object *who, object *op, int aflags); |
45 | int monster_apply_special(object *who, object *op, int aflags); |
45 | int auto_apply(object *op); |
46 | int auto_apply(object *op); |
46 | void fix_auto_apply(mapstruct *m); |
47 | void fix_auto_apply(maptile *m); |
47 | void eat_special_food(object *who, object *food); |
48 | void eat_special_food(object *who, object *food); |
48 | void apply_lighter(object *who, object *lighter); |
49 | void apply_lighter(object *who, object *lighter); |
49 | void scroll_failure(object *op, int failure, int power); |
50 | void scroll_failure(object *op, int failure, int power); |
50 | void apply_changes_to_player(object *pl, object *change); |
51 | void apply_changes_to_player(object *pl, object *change); |
51 | void apply_item_transformer(object *pl, object *transformer); |
52 | void apply_item_transformer(object *pl, object *transformer); |
… | |
… | |
79 | int find_unused_connected_value(struct mapdef *map); |
80 | int find_unused_connected_value(struct mapdef *map); |
80 | int find_or_create_connection_for_map(object *pl, short x, short y, object *rune); |
81 | int find_or_create_connection_for_map(object *pl, short x, short y, object *rune); |
81 | object *get_connection_rune(object *pl, short x, short y); |
82 | object *get_connection_rune(object *pl, short x, short y); |
82 | object *get_msg_book(object *pl, short x, short y); |
83 | object *get_msg_book(object *pl, short x, short y); |
83 | object *get_wall(struct mapdef *map, int x, int y); |
84 | object *get_wall(struct mapdef *map, int x, int y); |
84 | void fix_walls(struct mapdef *map, int x, int y); |
85 | void fix_walls(maptile *map, int x, int y); |
|
|
86 | void fix_walls_around(maptile *map, int x, int y); |
85 | void apply_builder_floor(object *pl, object *material, short x, short y); |
87 | void apply_builder_floor(object *pl, object *material, short x, short y); |
86 | void apply_builder_wall(object *pl, object *material, short x, short y); |
88 | void apply_builder_wall(object *pl, object *material, short x, short y); |
87 | void apply_builder_item(object *pl, object *item, short x, short y); |
89 | void apply_builder_item(object *pl, object *item, short x, short y); |
88 | void apply_builder_remove(object *pl, int dir); |
90 | void apply_builder_remove(object *pl, int dir); |
89 | void apply_map_builder(object *pl, int dir); |
91 | void apply_map_builder(object *pl, int dir); |
90 | int adjust_sign_msg(object *pl, short x, short y, object *tmp); |
92 | int adjust_sign_msg(object *pl, short x, short y, object *tmp); |
91 | /* c_chat.c */ |
93 | /* c_chat.c */ |
92 | int command_say(object *op, char *params); |
|
|
93 | int command_me(object *op, char *params); |
|
|
94 | int command_cointoss(object *op, char *params); |
94 | int command_cointoss(object *op, char *params); |
95 | int command_orcknuckle(object *op, char *params); |
95 | int command_orcknuckle(object *op, char *params); |
96 | int command_shout(object *op, char *params); |
|
|
97 | int command_chat(object *op, char *params); |
|
|
98 | int command_tell(object *op, char *params); |
|
|
99 | int command_reply(object *op, char *params); |
|
|
100 | int command_nod(object *op, char *params); |
|
|
101 | int command_dance(object *op, char *params); |
|
|
102 | int command_kiss(object *op, char *params); |
|
|
103 | int command_bounce(object *op, char *params); |
|
|
104 | int command_smile(object *op, char *params); |
|
|
105 | int command_cackle(object *op, char *params); |
|
|
106 | int command_laugh(object *op, char *params); |
|
|
107 | int command_giggle(object *op, char *params); |
|
|
108 | int command_shake(object *op, char *params); |
|
|
109 | int command_puke(object *op, char *params); |
|
|
110 | int command_growl(object *op, char *params); |
|
|
111 | int command_scream(object *op, char *params); |
|
|
112 | int command_sigh(object *op, char *params); |
|
|
113 | int command_sulk(object *op, char *params); |
|
|
114 | int command_hug(object *op, char *params); |
|
|
115 | int command_cry(object *op, char *params); |
|
|
116 | int command_poke(object *op, char *params); |
|
|
117 | int command_accuse(object *op, char *params); |
|
|
118 | int command_grin(object *op, char *params); |
|
|
119 | int command_bow(object *op, char *params); |
|
|
120 | int command_clap(object *op, char *params); |
|
|
121 | int command_blush(object *op, char *params); |
|
|
122 | int command_burp(object *op, char *params); |
|
|
123 | int command_chuckle(object *op, char *params); |
|
|
124 | int command_cough(object *op, char *params); |
|
|
125 | int command_flip(object *op, char *params); |
|
|
126 | int command_frown(object *op, char *params); |
|
|
127 | int command_gasp(object *op, char *params); |
|
|
128 | int command_glare(object *op, char *params); |
|
|
129 | int command_groan(object *op, char *params); |
|
|
130 | int command_hiccup(object *op, char *params); |
|
|
131 | int command_lick(object *op, char *params); |
|
|
132 | int command_pout(object *op, char *params); |
|
|
133 | int command_shiver(object *op, char *params); |
|
|
134 | int command_shrug(object *op, char *params); |
|
|
135 | int command_slap(object *op, char *params); |
|
|
136 | int command_smirk(object *op, char *params); |
|
|
137 | int command_snap(object *op, char *params); |
|
|
138 | int command_sneeze(object *op, char *params); |
|
|
139 | int command_snicker(object *op, char *params); |
|
|
140 | int command_sniff(object *op, char *params); |
|
|
141 | int command_snore(object *op, char *params); |
|
|
142 | int command_spit(object *op, char *params); |
|
|
143 | int command_strut(object *op, char *params); |
|
|
144 | int command_thank(object *op, char *params); |
|
|
145 | int command_twiddle(object *op, char *params); |
|
|
146 | int command_wave(object *op, char *params); |
|
|
147 | int command_whistle(object *op, char *params); |
|
|
148 | int command_wink(object *op, char *params); |
|
|
149 | int command_yawn(object *op, char *params); |
|
|
150 | int command_beg(object *op, char *params); |
|
|
151 | int command_bleed(object *op, char *params); |
|
|
152 | int command_cringe(object *op, char *params); |
|
|
153 | int command_think(object *op, char *params); |
|
|
154 | /* c_misc.c */ |
96 | /* c_misc.c */ |
155 | void map_info(object *op, char *search); |
97 | void map_info(object *op, char *search); |
156 | int command_body(object *op, char *params); |
98 | int command_body(object *op, char *params); |
157 | int command_motd(object *op, char *params); |
99 | int command_motd(object *op, char *params); |
158 | int command_bug(object *op, char *params); |
100 | int command_bug(object *op, char *params); |
159 | void malloc_info(object *op); |
101 | void malloc_info(object *op); |
160 | void current_region_info(object *op); |
102 | void current_region_info(object *op); |
161 | void current_map_info(object *op); |
103 | void current_map_info(object *op); |
162 | int command_whereabouts(object *op, char *params); |
104 | int command_whereabouts(object *op, char *params); |
163 | int command_who(object *op, char *params); |
|
|
164 | void display_who_entry(object *op, player *pl, const char *format); |
|
|
165 | void get_who_escape_code_value(char *return_val, const char letter, player *pl); |
|
|
166 | int command_afk(object *op, char *params); |
105 | int command_afk(object *op, char *params); |
167 | int command_malloc(object *op, char *params); |
106 | int command_malloc(object *op, char *params); |
168 | int command_mapinfo(object *op, char *params); |
107 | int command_mapinfo(object *op, char *params); |
169 | int command_whereami(object *op, char *params); |
108 | int command_whereami(object *op, char *params); |
170 | int command_maps(object *op, char *params); |
109 | int command_maps(object *op, char *params); |
… | |
… | |
202 | int command_resistances(object *op, char *params); |
141 | int command_resistances(object *op, char *params); |
203 | int command_help(object *op, char *params); |
142 | int command_help(object *op, char *params); |
204 | int onoff_value(const char *line); |
143 | int onoff_value(const char *line); |
205 | int command_quit(object *op, char *params); |
144 | int command_quit(object *op, char *params); |
206 | int command_real_quit(object *op, char *params); |
145 | int command_real_quit(object *op, char *params); |
207 | int command_explore(object *op, char *params); |
|
|
208 | int command_sound(object *op, char *params); |
146 | int command_sound(object *op, char *params); |
209 | void receive_player_name(object *op, char k); |
147 | void receive_player_name(object *op, char k); |
210 | void receive_player_password(object *op, char k); |
148 | void receive_player_password(object *op, char k); |
211 | int explore_mode(void); |
|
|
212 | int command_title(object *op, char *params); |
149 | int command_title(object *op, char *params); |
213 | int command_save(object *op, char *params); |
150 | int command_save(object *op, char *params); |
214 | int command_peaceful(object *op, char *params); |
151 | int command_peaceful(object *op, char *params); |
215 | int command_wimpy(object *op, char *params); |
152 | int command_wimpy(object *op, char *params); |
216 | int command_brace(object *op, char *params); |
153 | int command_brace(object *op, char *params); |
… | |
… | |
226 | int command_southeast(object *op, char *params); |
163 | int command_southeast(object *op, char *params); |
227 | int command_southwest(object *op, char *params); |
164 | int command_southwest(object *op, char *params); |
228 | int command_west(object *op, char *params); |
165 | int command_west(object *op, char *params); |
229 | int command_stay(object *op, char *params); |
166 | int command_stay(object *op, char *params); |
230 | /* c_new.c */ |
167 | /* c_new.c */ |
231 | int execute_newserver_command(object *pl, char *command); |
168 | void execute_newserver_command(object *pl, char *command); |
232 | int command_run(object *op, char *params); |
169 | int command_run(object *op, char *params); |
233 | int command_run_stop(object *op, char *params); |
170 | int command_run_stop(object *op, char *params); |
234 | int command_fire(object *op, char *params); |
171 | int command_fire(object *op, char *params); |
235 | int command_fire_stop(object *op, char *params); |
172 | int command_fire_stop(object *op, char *params); |
236 | int bad_command(object *op, char *params); |
173 | int bad_command(object *op, char *params); |
… | |
… | |
289 | int command_banish(object *op, char *params); |
226 | int command_banish(object *op, char *params); |
290 | int command_kick(object *op, char *params); |
227 | int command_kick(object *op, char *params); |
291 | int command_save_overlay(object *op, char *params); |
228 | int command_save_overlay(object *op, char *params); |
292 | int command_toggle_shout(object *op, char *params); |
229 | int command_toggle_shout(object *op, char *params); |
293 | int command_shutdown(object *op, char *params); |
230 | int command_shutdown(object *op, char *params); |
294 | int command_goto(object *op, char *params); |
|
|
295 | int command_generate(object *op, char *params); |
|
|
296 | int command_freeze(object *op, char *params); |
231 | int command_freeze(object *op, char *params); |
297 | int command_arrest(object *op, char *params); |
232 | int command_arrest(object *op, char *params); |
298 | int command_summon(object *op, char *params); |
233 | int command_summon(object *op, char *params); |
299 | int command_teleport(object *op, char *params); |
234 | int command_teleport(object *op, char *params); |
300 | int command_create(object *op, char *params); |
235 | int command_create(object *op, char *params); |
… | |
… | |
416 | void rec_sighup(int i); |
351 | void rec_sighup(int i); |
417 | void rec_sigquit(int i); |
352 | void rec_sigquit(int i); |
418 | void rec_sigpipe(int i); |
353 | void rec_sigpipe(int i); |
419 | void rec_sigbus(int i); |
354 | void rec_sigbus(int i); |
420 | void rec_sigterm(int i); |
355 | void rec_sigterm(int i); |
421 | void fatal_signal(int make_core, int close_sockets); |
|
|
422 | void init_signals(void); |
356 | void init_signals(void); |
423 | void init_races(void); |
357 | void init_races(void); |
424 | void dump_races(void); |
358 | void dump_races(void); |
425 | void add_to_racelist(const char *race_name, object *op); |
359 | void add_to_racelist(const char *race_name, object *op); |
426 | racelink *get_racelist(void); |
360 | racelink *get_racelist(void); |
427 | racelink *find_racelink(const char *name); |
361 | racelink *find_racelink(const char *name); |
428 | /* login.c */ |
362 | /* login.c */ |
429 | void emergency_save(int flag); |
|
|
430 | void delete_character(const char *name, int); |
363 | void delete_character(const char *name); |
431 | int verify_player(const char *name, char *password); |
364 | int verify_player(const char *name, char *password); |
432 | int check_name(player *me, const char *name); |
365 | int check_name(player *me, const char *name); |
433 | int create_savedir_if_needed(char *savedir); |
366 | int create_savedir_if_needed(char *savedir); |
434 | void destroy_object(object *op); |
367 | void destroy_object(object *op); |
435 | int save_player(object *op, int flag); |
|
|
436 | void copy_file(const char *filename, FILE *fpout); |
368 | void copy_file(const char *filename, FILE *fpout); |
437 | void check_login(object *op); |
|
|
438 | /* main.c */ |
369 | /* main.c */ |
|
|
370 | void server_tick (); |
439 | void version(object *op); |
371 | void version(object *op); |
440 | void info_keys(object *op); |
372 | void info_keys(object *op); |
441 | void start_info(object *op); |
|
|
442 | char *crypt_string(char *str, char *salt); |
373 | char *crypt_string(char *str, char *salt); |
443 | int check_password(char *typed, char *crypted); |
374 | int check_password(char *typed, char *crypted); |
444 | void enter_player_savebed(object *op); |
375 | void enter_player_savebed(object *op); |
445 | void leave_map(object *op); |
376 | void leave_map(object *op); |
446 | void set_map_timeout(mapstruct *oldmap); |
377 | void set_map_timeout(maptile *oldmap); |
447 | char *clean_path(const char *file); |
378 | char *clean_path(const char *file); |
448 | char *unclean_path(const char *src); |
379 | char *unclean_path(const char *src); |
449 | void enter_exit(object *op, object *exit_ob); |
380 | void enter_exit(object *op, object *exit_ob); |
450 | void process_active_maps(void); |
|
|
451 | void process_players1(mapstruct *map); |
|
|
452 | void process_players2(mapstruct *map); |
|
|
453 | void process_events(mapstruct *map); |
381 | void process_events(); |
454 | void clean_tmp_files(void); |
382 | void clean_tmp_files(void); |
455 | void cleanup(void); |
|
|
456 | void leave(player *pl, int draw_exit); |
383 | void leave(player *pl,int draw_exit); |
457 | int forbid_play(void); |
384 | int forbid_play(void); |
458 | void do_specials(void); |
385 | void do_specials(void); |
459 | int main(int argc, char **argv); |
386 | int main(int argc, char **argv); |
460 | /* monster.c */ |
387 | /* monster.c */ |
461 | object *check_enemy(object *npc, rv_vector *rv); |
388 | object *check_enemy(object *npc, rv_vector *rv); |
… | |
… | |
489 | void pace_movev(object *ob); |
416 | void pace_movev(object *ob); |
490 | void pace_moveh(object *ob); |
417 | void pace_moveh(object *ob); |
491 | void pace2_movev(object *ob); |
418 | void pace2_movev(object *ob); |
492 | void pace2_moveh(object *ob); |
419 | void pace2_moveh(object *ob); |
493 | void rand_move(object *ob); |
420 | void rand_move(object *ob); |
494 | void check_earthwalls(object *op, mapstruct *m, int x, int y); |
421 | void check_earthwalls(object *op, maptile *m, int x, int y); |
495 | void check_doors(object *op, mapstruct *m, int x, int y); |
422 | void check_doors(object *op, maptile *m, int x, int y); |
496 | void communicate(object *op, const char *txt); |
423 | void communicate(object *op, const char *txt); |
497 | int talk_to_npc(object *op, object *npc, const char *txt); |
424 | int talk_to_npc(object *op, object *npc, const char *txt); |
498 | int talk_to_wall(object *pl, object *npc, const char *txt); |
425 | int talk_to_wall(object *pl, object *npc, const char *txt); |
499 | object *find_mon_throw_ob(object *op); |
426 | object *find_mon_throw_ob(object *op); |
500 | int can_detect_enemy(object *op, object *enemy, rv_vector *rv); |
427 | int can_detect_enemy(object *op, object *enemy, rv_vector *rv); |
… | |
… | |
504 | int move_object(object *op, int dir); |
431 | int move_object(object *op, int dir); |
505 | int move_ob(object *op, int dir, object *originator); |
432 | int move_ob(object *op, int dir, object *originator); |
506 | int transfer_ob(object *op, int x, int y, int randomly, object *originator); |
433 | int transfer_ob(object *op, int x, int y, int randomly, object *originator); |
507 | int teleport(object *teleporter, uint8 tele_type, object *user); |
434 | int teleport(object *teleporter, uint8 tele_type, object *user); |
508 | void recursive_roll(object *op, int dir, object *pusher); |
435 | void recursive_roll(object *op, int dir, object *pusher); |
509 | int try_fit(object *op, mapstruct *m, int x, int y); |
436 | int try_fit(object *op, maptile *m, int x, int y); |
510 | int roll_ob(object *op, int dir, object *pusher); |
437 | int roll_ob(object *op, int dir, object *pusher); |
511 | int push_ob(object *who, int dir, object *pusher); |
438 | int push_ob(object *who, int dir, object *pusher); |
512 | /* pets.c */ |
439 | /* pets.c */ |
513 | object *get_pet_enemy(object *pet, rv_vector *rv); |
440 | object *get_pet_enemy(object *pet, rv_vector *rv); |
514 | void terminate_all_pets(object *owner); |
441 | void terminate_all_pets(object *owner); |
515 | void remove_all_pets(mapstruct *map); |
442 | void remove_all_pets(maptile *map); |
516 | int follow_owner(object *ob, object *owner); |
443 | int follow_owner(object *ob, object *owner); |
517 | void pet_move(object *ob); |
444 | void pet_move(object *ob); |
518 | object *fix_summon_pet(archetype *at, object *op, int dir, int is_golem); |
445 | object *fix_summon_pet(archetype *at, object *op, int dir, int is_golem); |
519 | void move_golem(object *op); |
446 | void move_golem(object *op); |
520 | void control_golem(object *op, int dir); |
447 | void control_golem(object *op, int dir); |
… | |
… | |
528 | player *find_player_partial_name(const char *plname); |
455 | player *find_player_partial_name(const char *plname); |
529 | void display_motd(const object *op); |
456 | void display_motd(const object *op); |
530 | void send_rules(const object *op); |
457 | void send_rules(const object *op); |
531 | void send_news(const object *op); |
458 | void send_news(const object *op); |
532 | int playername_ok(const char *cp); |
459 | int playername_ok(const char *cp); |
533 | int add_player(NewSocket *ns); |
|
|
534 | archetype *get_player_archetype(archetype *at); |
460 | archetype *get_player_archetype(archetype *at); |
535 | object *get_nearest_player(object *mon); |
461 | object *get_nearest_player(object *mon); |
536 | int path_to_player(object *mon, object *pl, unsigned mindiff); |
462 | int path_to_player(object *mon, object *pl, unsigned mindiff); |
537 | void give_initial_items(object *pl, treasurelist *items); |
463 | void give_initial_items(object *pl, treasurelist *items); |
538 | void get_name(object *op); |
464 | void get_name(object *op); |
539 | void get_password(object *op); |
465 | void get_password(object *op); |
540 | void play_again(object *op); |
466 | void play_again(object *op); |
541 | int receive_play_again(object *op, char key); |
467 | int receive_play_again(object *op, char key); |
542 | void confirm_password(object *op); |
468 | void confirm_password(object *op); |
543 | void get_party_password(object *op, partylist *party); |
469 | void get_party_password(object *op, partylist *party); |
544 | int roll_stat(void); |
|
|
545 | void roll_stats(object *op); |
|
|
546 | void Roll_Again(object *op); |
470 | void Roll_Again(object *op); |
547 | void Swap_Stat(object *op, int Swap_Second); |
471 | void Swap_Stat(object *op, int Swap_Second); |
548 | int key_roll_stat(object *op, char key); |
472 | int key_roll_stat(object *op, char key); |
549 | int key_change_class(object *op, char key); |
473 | int key_change_class(object *op, char key); |
550 | int key_confirm_quit(object *op, char key); |
474 | int key_confirm_quit(object *op, char key); |
… | |
… | |
587 | void *cfapi_get_hooks(int *type, ...); |
511 | void *cfapi_get_hooks(int *type, ...); |
588 | int plugins_remove_plugin(const char *id); |
512 | int plugins_remove_plugin(const char *id); |
589 | crossfire_plugin *plugins_find_plugin(const char *id); |
513 | crossfire_plugin *plugins_find_plugin(const char *id); |
590 | void plugins_display_list(object *op); |
514 | void plugins_display_list(object *op); |
591 | void *cfapi_system_find_animation(int *type, ...); |
515 | void *cfapi_system_find_animation(int *type, ...); |
592 | void *cfapi_system_strdup_local(int *type, ...); |
516 | void *cfapi_system_strdup(int *type, ...); |
593 | void *cfapi_system_register_global_event(int *type, ...); |
517 | void *cfapi_system_register_global_event(int *type, ...); |
594 | void *cfapi_system_unregister_global_event(int *type, ...); |
518 | void *cfapi_system_unregister_global_event(int *type, ...); |
595 | void *cfapi_system_add_string(int *type, ...); |
|
|
596 | void *cfapi_system_remove_string(int *type, ...); |
|
|
597 | void *cfapi_system_check_path(int *type, ...); |
519 | void *cfapi_system_check_path(int *type, ...); |
598 | void *cfapi_system_re_cmp(int *type, ...); |
520 | void *cfapi_system_re_cmp(int *type, ...); |
599 | void *cfapi_system_directory(int *type, ...); |
521 | void *cfapi_system_directory(int *type, ...); |
600 | void *cfapi_map_get_map(int *type, ...); |
522 | void *cfapi_map_get_map(int *type, ...); |
601 | void *cfapi_map_has_been_loaded(int *type, ...); |
523 | void *cfapi_map_has_been_loaded(int *type, ...); |
… | |
… | |
679 | int trap_see(object *op, object *trap); |
601 | int trap_see(object *op, object *trap); |
680 | int trap_show(object *trap, object *where); |
602 | int trap_show(object *trap, object *where); |
681 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
603 | int trap_disarm(object *disarmer, object *trap, int risk, object *skill); |
682 | void trap_adjust(object *trap, int difficulty); |
604 | void trap_adjust(object *trap, int difficulty); |
683 | /* shop.c */ |
605 | /* shop.c */ |
|
|
606 | int get_payment(object *pl); |
684 | uint64 query_cost(const object *tmp, object *who, int flag); |
607 | sint64 query_cost(const object *tmp, object *who, int flag); |
685 | const char *query_cost_string(const object *tmp, object *who, int flag); |
608 | const char *query_cost_string(const object *tmp, object *who, int flag); |
686 | uint64 query_money(const object *op); |
609 | sint64 query_money(const object *op); |
687 | int pay_for_amount(uint64 to_pay, object *pl); |
610 | int pay_for_amount(sint64 to_pay, object *pl); |
688 | int pay_for_item(object *op, object *pl); |
611 | int pay_for_item(object *op, object *pl); |
689 | int can_pay(object *pl); |
612 | int can_pay(object *pl); |
690 | int get_payment(object *pl, object *op); |
|
|
691 | void sell_item(object *op, object *pl); |
613 | void sell_item(object *op, object *pl); |
692 | double shopkeeper_approval(const mapstruct *map, const object *player); |
614 | double shopkeeper_approval(const maptile *map, const object *player); |
693 | int describe_shop(const object *op); |
615 | int describe_shop(const object *op); |
694 | void shop_listing(object *op); |
616 | void shop_listing(object *op); |
|
|
617 | bool is_in_shop (object *o); |
|
|
618 | bool is_in_shop (maptile *map, int x, int y); |
695 | /* skills.c */ |
619 | /* skills.c */ |
696 | int steal(object *op, int dir, object *skill); |
620 | int steal(object *op, int dir, object *skill); |
697 | int pick_lock(object *pl, int dir, object *skill); |
621 | int pick_lock(object *pl, int dir, object *skill); |
698 | int hide(object *op, object *skill); |
622 | int hide(object *op, object *skill); |
699 | int jump(object *pl, int dir, object *skill); |
623 | int jump(object *pl, int dir, object *skill); |
… | |
… | |
787 | /* spell_util.c */ |
711 | /* spell_util.c */ |
788 | object *find_random_spell_in_ob(object *ob, const char *skill); |
712 | object *find_random_spell_in_ob(object *ob, const char *skill); |
789 | void set_spell_skill(object *op, object *caster, object *spob, object *dest); |
713 | void set_spell_skill(object *op, object *caster, object *spob, object *dest); |
790 | void init_spells(void); |
714 | void init_spells(void); |
791 | void dump_spells(void); |
715 | void dump_spells(void); |
792 | void spell_effect(object *spob, int x, int y, mapstruct *map, object *originator); |
716 | void spell_effect(object *spob, int x, int y, maptile *map, object *originator); |
793 | int min_casting_level(object *caster, object *spell); |
717 | int min_casting_level(object *caster, object *spell); |
794 | int caster_level(object *caster, object *spell); |
718 | int caster_level(object *caster, object *spell); |
795 | sint16 SP_level_spellpoint_cost(object *caster, object *spell, int flags); |
719 | sint16 SP_level_spellpoint_cost(object *caster, object *spell, int flags); |
796 | int SP_level_dam_adjust(object *caster, object *spob); |
720 | int SP_level_dam_adjust(object *caster, object *spob); |
797 | int SP_level_duration_adjust(object *caster, object *spob); |
721 | int SP_level_duration_adjust(object *caster, object *spob); |
798 | int SP_level_range_adjust(object *caster, object *spob); |
722 | int SP_level_range_adjust(object *caster, object *spob); |
799 | object *check_spell_known(object *op, const char *name); |
723 | object *check_spell_known(object *op, const char *name); |
800 | object *lookup_spell_by_name(object *op, const char *spname); |
724 | object *lookup_spell_by_name(object *op, const char *spname); |
801 | int reflwall(mapstruct *m, int x, int y, object *sp_op); |
725 | int reflwall(maptile *m, int x, int y, object *sp_op); |
802 | int cast_create_obj(object *op, object *caster, object *new_op, int dir); |
726 | int cast_create_obj(object *op, object *caster, object *new_op, int dir); |
803 | int ok_to_put_more(mapstruct *m, sint16 x, sint16 y, object *op, int immune_stop); |
727 | int ok_to_put_more(maptile *m, sint16 x, sint16 y, object *op, int immune_stop); |
804 | int fire_arch_from_position(object *op, object *caster, sint16 x, sint16 y, int dir, object *spell); |
728 | int fire_arch_from_position(object *op, object *caster, sint16 x, sint16 y, int dir, object *spell); |
805 | void regenerate_rod(object *rod); |
729 | void regenerate_rod(object *rod); |
806 | void drain_rod_charge(object *rod); |
730 | void drain_rod_charge(object *rod); |
807 | object *find_target_for_friendly_spell(object *op, int dir); |
731 | object *find_target_for_friendly_spell(object *op, int dir); |
808 | int spell_find_dir(mapstruct *m, int x, int y, object *exclude); |
732 | int spell_find_dir(maptile *m, int x, int y, object *exclude); |
809 | void put_a_monster(object *op, const char *monstername); |
733 | void put_a_monster(object *op, const char *monstername); |
810 | int summon_hostile_monsters(object *op, int n, const char *monstername); |
734 | int summon_hostile_monsters(object *op, int n, const char *monstername); |
811 | void shuffle_attack(object *op, int change_face); |
735 | void shuffle_attack(object *op, int change_face); |
812 | void prayer_failure(object *op, int failure, int power); |
736 | void prayer_failure(object *op, int failure, int power); |
813 | void spell_failure(object *op, int failure, int power, object *skill); |
737 | void spell_failure(object *op, int failure, int power, object *skill); |
… | |
… | |
819 | /* swamp.c */ |
743 | /* swamp.c */ |
820 | void walk_on_deep_swamp(object *op, object *victim); |
744 | void walk_on_deep_swamp(object *op, object *victim); |
821 | void move_deep_swamp(object *op); |
745 | void move_deep_swamp(object *op); |
822 | /* swap.c */ |
746 | /* swap.c */ |
823 | void read_map_log(void); |
747 | void read_map_log(void); |
824 | void swap_map(mapstruct *map); |
748 | void swap_map(maptile *map); |
825 | void check_active_maps(void); |
749 | void check_active_maps(void); |
826 | mapstruct *map_least_timeout(char *except_level); |
750 | maptile *map_least_timeout(char *except_level); |
827 | void swap_below_max(char *except_level); |
751 | void swap_below_max(char *except_level); |
828 | int players_on_map(mapstruct *m, int show_all); |
752 | int players_on_map(maptile *m, int show_all); |
829 | void flush_old_maps(void); |
753 | void flush_old_maps(void); |
830 | /* time.c */ |
754 | /* time.c */ |
831 | void remove_door(object *op); |
755 | void remove_door(object *op); |
832 | void remove_door2(object *op); |
756 | void remove_door2(object *op); |
833 | void generate_monster_inv(object *gen); |
757 | void generate_monster_inv(object *gen); |
… | |
… | |
840 | void move_timed_gate(object *op); |
764 | void move_timed_gate(object *op); |
841 | void move_detector(object *op); |
765 | void move_detector(object *op); |
842 | void animate_trigger(object *op); |
766 | void animate_trigger(object *op); |
843 | void move_hole(object *op); |
767 | void move_hole(object *op); |
844 | object *stop_item(object *op); |
768 | object *stop_item(object *op); |
845 | void fix_stopped_item(object *op, mapstruct *map, object *originator); |
769 | void fix_stopped_item(object *op, maptile *map, object *originator); |
846 | object *fix_stopped_arrow(object *op); |
770 | object *fix_stopped_arrow(object *op); |
847 | void move_arrow(object *op); |
771 | void move_arrow(object *op); |
848 | void change_object(object *op); |
772 | void change_object(object *op); |
849 | void move_teleporter(object *op); |
773 | void move_teleporter(object *op); |
850 | void move_player_changer(object *op); |
774 | void move_player_changer(object *op); |
… | |
… | |
859 | void cftimer_process_event(object *ob); |
783 | void cftimer_process_event(object *ob); |
860 | int cftimer_create(int id, long delay, object *ob, int mode); |
784 | int cftimer_create(int id, long delay, object *ob, int mode); |
861 | int cftimer_destroy(int id); |
785 | int cftimer_destroy(int id); |
862 | int cftimer_find_free_id(void); |
786 | int cftimer_find_free_id(void); |
863 | /* weather.c */ |
787 | /* weather.c */ |
864 | void set_darkness_map(mapstruct *m); |
788 | void set_darkness_map(maptile *m); |
865 | void tick_the_clock(void); |
789 | void tick_the_clock(void); |
866 | void init_weather(void); |
790 | void init_weather(void); |
867 | void weather_effect(const char *filename); |
791 | void weather_effect(const char *filename); |
868 | int worldmap_to_weathermap(int x, int y, int *wx, int *wy, mapstruct *m); |
792 | int worldmap_to_weathermap(int x, int y, int *wx, int *wy, maptile *m); |
869 | int real_world_temperature(int x, int y, mapstruct *m); |
793 | int real_world_temperature(int x, int y, maptile *m); |
870 | int similar_direction(int a, int b); |
794 | int similar_direction(int a, int b); |