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); |
… | |
… | |
178 | void set_pickup_mode (object *op, int i); |
197 | void set_pickup_mode (object *op, int i); |
179 | int command_search_items (object *op, char *params); |
198 | int command_search_items (object *op, char *params); |
180 | int command_rename_item (object *op, char *params); |
199 | int command_rename_item (object *op, char *params); |
181 | |
200 | |
182 | /* c_party.c */ |
201 | /* c_party.c */ |
183 | int same_party (partylist *a, partylist *b); |
|
|
184 | partylist *get_firstparty (void); |
202 | partylist *get_firstparty (void); |
185 | void remove_party (partylist *target_party); |
203 | void remove_party (partylist *target_party); |
186 | void obsolete_parties (void); |
204 | void obsolete_parties (void); |
187 | 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); |
188 | int confirm_party_password (object *op); |
206 | int confirm_party_password (object *op); |
… | |
… | |
462 | 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); |
463 | object *pick_arrow_target (object *op, const char *type, int dir); |
481 | object *pick_arrow_target (object *op, const char *type, int dir); |
464 | 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); |
465 | int player_fire_bow (object *op, int dir); |
483 | int player_fire_bow (object *op, int dir); |
466 | void fire_misc_object (object *op, int dir); |
484 | void fire_misc_object (object *op, int dir); |
467 | void fire (object *op, int dir); |
485 | bool fire (object *op, int dir); |
468 | object *find_key (object *pl, object *container, object *door); |
486 | object *find_key (object *pl, object *container, object *door); |
469 | void move_player_attack (object *op, int dir); |
487 | bool move_player_attack (object *op, int dir); |
470 | int move_player (object *op, int dir); |
488 | bool move_player (object *op, int dir); |
471 | int handle_newcs_player (object *op); |
489 | bool handle_newcs_player (object *op); |
472 | int save_life (object *op); |
490 | int save_life (object *op); |
473 | void remove_unpaid_objects (object *op, object *env); |
491 | void remove_unpaid_objects (object *op, object *env); |
474 | char *gravestone_text (object *op); |
492 | char *gravestone_text (object *op); |
475 | void do_some_living (object *op); |
493 | void do_some_living (object *op); |
476 | void kill_player (object *op); |
494 | void kill_player (object *op); |
… | |
… | |
622 | 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); |
623 | |
641 | |
624 | /* skill_util.c */ |
642 | /* skill_util.c */ |
625 | void init_skills (void); |
643 | void init_skills (void); |
626 | void link_player_skills (object *op); |
644 | void link_player_skills (object *op); |
627 | object *find_skill_by_name (object *who, const char *name); |
|
|
628 | object *find_skill_by_number (object *who, int skillno); |
|
|
629 | int change_skill (object *who, object *new_skill, int flag); |
|
|
630 | void clear_skill (object *who); |
|
|
631 | 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); |
632 | int calc_skill_exp (object *who, object *op, object *skill); |
646 | int calc_skill_exp (object *who, object *op, object *skill); |
633 | int learn_skill (object *pl, object *scroll); |
647 | int learn_skill (object *pl, object *scroll); |
634 | void show_skills (object *op, const char *search); |
648 | void show_skills (object *op, const char *search); |
635 | int use_skill (object *op, const char *string); |
649 | int use_skill (object *op, const char *string); |
… | |
… | |
679 | int cast_earth_to_dust (object *op, object *caster, object *spell_ob); |
693 | int cast_earth_to_dust (object *op, object *caster, object *spell_ob); |
680 | void execute_word_of_recall (object *op); |
694 | void execute_word_of_recall (object *op); |
681 | int cast_word_of_recall (object *op, object *caster, object *spell_ob); |
695 | int cast_word_of_recall (object *op, object *caster, object *spell_ob); |
682 | int cast_wonder (object *op, object *caster, int dir, object *spell_ob); |
696 | int cast_wonder (object *op, object *caster, int dir, object *spell_ob); |
683 | int perceive_self (object *op); |
697 | int perceive_self (object *op); |
684 | int cast_create_town_portal (object *op, object *caster, object *spell, int dir); |
|
|
685 | int magic_wall (object *op, object *caster, int dir, object *spell_ob); |
698 | int magic_wall (object *op, object *caster, int dir, object *spell_ob); |
686 | int dimension_door (object *op, object *caster, object *spob, int dir); |
699 | int dimension_door (object *op, object *caster, object *spob, int dir); |
687 | int cast_heal (object *op, object *caster, object *spell, int dir); |
700 | int cast_heal (object *op, object *caster, object *spell, int dir); |
688 | int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent); |
701 | int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent); |
689 | int cast_bless (object *op, object *caster, object *spell_ob, int dir); |
702 | int cast_bless (object *op, object *caster, object *spell_ob, int dir); |
… | |
… | |
769 | void move_firewall (object *op); |
782 | void move_firewall (object *op); |
770 | void move_player_mover (object *op); |
783 | void move_player_mover (object *op); |
771 | void move_duplicator (object *op); |
784 | void move_duplicator (object *op); |
772 | void move_creator (object *creator); |
785 | void move_creator (object *creator); |
773 | void move_marker (object *op); |
786 | void move_marker (object *op); |
774 | int process_object (object *op); |
787 | void process_object (object *op); |
775 | |
788 | |
776 | /* timers.c */ |
789 | /* timers.c */ |
777 | void cftimer_process_timers (void); |
790 | void cftimer_process_timers (void); |
778 | void cftimer_process_event (object *ob); |
791 | void cftimer_process_event (object *ob); |
779 | int cftimer_create (int id, long delay, object *ob, int mode); |
792 | int cftimer_create (int id, long delay, object *ob, int mode); |