1 | // server/c_party.C |
1 | /* |
2 | int same_party (partylist *a, partylist *b); |
2 | * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game. |
|
|
3 | * |
|
|
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team |
|
|
5 | * |
|
|
6 | * Crossfire TRT is free software; you can redistribute it and/or modify it |
|
|
7 | * under the terms of the GNU General Public License as published by the Free |
|
|
8 | * Software Foundation; either version 2 of the License, or (at your option) |
|
|
9 | * any later version. |
|
|
10 | * |
|
|
11 | * This program is distributed in the hope that it will be useful, but |
|
|
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
|
|
13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
|
14 | * for more details. |
|
|
15 | * |
|
|
16 | * You should have received a copy of the GNU General Public License along |
|
|
17 | * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51 |
|
|
18 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
|
19 | * |
|
|
20 | * The authors can be reached via e-mail to <crossfire@schmorp.de> |
|
|
21 | */ |
3 | |
22 | |
4 | /* alchemy.c */ |
23 | /* alchemy.c */ |
5 | int need_identify (const object *obj); |
24 | int need_identify (const object *obj); |
6 | int apply_shop_mat (object *shop_mat, object *op); |
25 | int apply_shop_mat (object *shop_mat, object *op); |
7 | const char *cost_string_from_value (sint64 cost, int approx); |
26 | const char *cost_string_from_value (sint64 cost, int approx); |
… | |
… | |
39 | void apply_poison (object *op, object *tmp); |
58 | void apply_poison (object *op, object *tmp); |
40 | int is_legal_2ways_exit (object *op, object *exit); |
59 | int is_legal_2ways_exit (object *op, object *exit); |
41 | int manual_apply (object *op, object *tmp, int aflag); |
60 | int manual_apply (object *op, object *tmp, int aflag); |
42 | int player_apply (object *pl, object *op, int aflag, int quiet); |
61 | int player_apply (object *pl, object *op, int aflag, int quiet); |
43 | void player_apply_below (object *pl); |
62 | void player_apply_below (object *pl); |
44 | object *get_item_from_body_location (object *start, int loc); |
|
|
45 | int unapply_for_ob (object *who, object *op, int aflags); |
63 | int unapply_for_ob (object *who, object *op, int aflags); |
46 | int can_apply_object (object *who, object *op); |
64 | int can_apply_object (object *who, object *op); |
47 | int apply_special (object *who, object *op, int aflags); |
65 | int apply_special (object *who, object *op, int aflags); |
48 | int monster_apply_special (object *who, object *op, int aflags); |
66 | int monster_apply_special (object *who, object *op, int aflags); |
49 | int auto_apply (object *op); |
67 | int auto_apply (object *op); |
… | |
… | |
179 | void set_pickup_mode (object *op, int i); |
197 | void set_pickup_mode (object *op, int i); |
180 | int command_search_items (object *op, char *params); |
198 | int command_search_items (object *op, char *params); |
181 | int command_rename_item (object *op, char *params); |
199 | int command_rename_item (object *op, char *params); |
182 | |
200 | |
183 | /* c_party.c */ |
201 | /* c_party.c */ |
184 | int same_party (partylist *a, partylist *b); |
|
|
185 | partylist *get_firstparty (void); |
202 | partylist *get_firstparty (void); |
186 | void remove_party (partylist *target_party); |
203 | void remove_party (partylist *target_party); |
187 | void obsolete_parties (void); |
204 | void obsolete_parties (void); |
188 | void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); |
205 | void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); |
189 | int confirm_party_password (object *op); |
206 | int confirm_party_password (object *op); |
… | |
… | |
463 | object *find_better_arrow (object *op, object *target, const char *type, int *better); |
480 | object *find_better_arrow (object *op, object *target, const char *type, int *better); |
464 | object *pick_arrow_target (object *op, const char *type, int dir); |
481 | object *pick_arrow_target (object *op, const char *type, int dir); |
465 | int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); |
482 | int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); |
466 | int player_fire_bow (object *op, int dir); |
483 | int player_fire_bow (object *op, int dir); |
467 | void fire_misc_object (object *op, int dir); |
484 | void fire_misc_object (object *op, int dir); |
468 | void fire (object *op, int dir); |
485 | bool fire (object *op, int dir); |
469 | object *find_key (object *pl, object *container, object *door); |
486 | object *find_key (object *pl, object *container, object *door); |
470 | void move_player_attack (object *op, int dir); |
487 | bool move_player_attack (object *op, int dir); |
471 | int move_player (object *op, int dir); |
488 | bool move_player (object *op, int dir); |
472 | int handle_newcs_player (object *op); |
489 | bool handle_newcs_player (object *op); |
473 | int save_life (object *op); |
490 | int save_life (object *op); |
474 | void remove_unpaid_objects (object *op, object *env); |
491 | void remove_unpaid_objects (object *op, object *env); |
475 | char *gravestone_text (object *op); |
492 | char *gravestone_text (object *op); |
476 | void do_some_living (object *op); |
493 | void do_some_living (object *op); |
477 | void kill_player (object *op); |
494 | void kill_player (object *op); |
… | |
… | |
623 | int skill_throw (object *op, object *part, int dir, const char *params, object *skill); |
640 | int skill_throw (object *op, object *part, int dir, const char *params, object *skill); |
624 | |
641 | |
625 | /* skill_util.c */ |
642 | /* skill_util.c */ |
626 | void init_skills (void); |
643 | void init_skills (void); |
627 | void link_player_skills (object *op); |
644 | void link_player_skills (object *op); |
628 | object *find_skill_by_name (object *who, const char *name); |
|
|
629 | object *find_skill_by_number (object *who, int skillno); |
|
|
630 | int change_skill (object *who, object *new_skill, int flag); |
|
|
631 | void clear_skill (object *who); |
|
|
632 | int do_skill (object *op, object *part, object *skill, int dir, const char *string); |
645 | int do_skill (object *op, object *part, object *skill, int dir, const char *string); |
633 | int calc_skill_exp (object *who, object *op, object *skill); |
646 | int calc_skill_exp (object *who, object *op, object *skill); |
634 | int learn_skill (object *pl, object *scroll); |
647 | int learn_skill (object *pl, object *scroll); |
635 | void show_skills (object *op, const char *search); |
648 | void show_skills (object *op, const char *search); |
636 | int use_skill (object *op, const char *string); |
649 | int use_skill (object *op, const char *string); |
… | |
… | |
770 | void move_firewall (object *op); |
783 | void move_firewall (object *op); |
771 | void move_player_mover (object *op); |
784 | void move_player_mover (object *op); |
772 | void move_duplicator (object *op); |
785 | void move_duplicator (object *op); |
773 | void move_creator (object *creator); |
786 | void move_creator (object *creator); |
774 | void move_marker (object *op); |
787 | void move_marker (object *op); |
775 | int process_object (object *op); |
788 | void process_object (object *op); |
776 | |
789 | |
777 | /* timers.c */ |
790 | /* timers.c */ |
778 | void cftimer_process_timers (void); |
791 | void cftimer_process_timers (void); |
779 | void cftimer_process_event (object *ob); |
792 | void cftimer_process_event (object *ob); |
780 | int cftimer_create (int id, long delay, object *ob, int mode); |
793 | int cftimer_create (int id, long delay, object *ob, int mode); |