ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/sproto.h
(Generate patch)

Comparing deliantra/server/include/sproto.h (file contents):
Revision 1.60 by root, Sat Apr 28 05:55:55 2007 UTC vs.
Revision 1.74 by root, Thu Aug 16 06:36:56 2007 UTC

1// server/c_party.C 1/*
2int same_party (partylist *a, partylist *b); 2 * This file is part of Crossfire TRT, the Roguelike Realtime MORPG.
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
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * The authors can be reached via e-mail to <crossfire@schmorp.de>
20 */
3 21
4/* alchemy.c */ 22/* alchemy.c */
5int need_identify (const object *obj); 23int need_identify (const object *obj);
6int apply_shop_mat (object *shop_mat, object *op); 24int apply_shop_mat (object *shop_mat, object *op);
7const char *cost_string_from_value (sint64 cost, int approx); 25const char *cost_string_from_value (sint64 cost, int approx);
21/* apply.c */ 39/* apply.c */
22int transport_can_hold (const object *transport, const object *op, int nrof); 40int transport_can_hold (const object *transport, const object *op, int nrof);
23int apply_transport (object *pl, object *transport, int aflag); 41int apply_transport (object *pl, object *transport, int aflag);
24int should_director_abort (object *op, object *victim); 42int should_director_abort (object *op, object *victim);
25int apply_potion (object *op, object *tmp); 43int apply_potion (object *op, object *tmp);
26int improve_weapon_stat (object *op, object *improver, object *weapon, signed char *stat, int sacrifice_count, const char *statname);
27int prepare_weapon (object *op, object *improver, object *weapon); 44int prepare_weapon (object *op, object *improver, object *weapon);
28int improve_weapon (object *op, object *improver, object *weapon); 45int improve_weapon (object *op, object *improver, object *weapon);
29int check_improve_weapon (object *op, object *tmp); 46int check_improve_weapon (object *op, object *tmp);
30int improve_armour (object *op, object *improver, object *armour); 47int improve_armour (object *op, object *improver, object *armour);
31int convert_item (object *item, object *converter); 48int convert_item (object *item, object *converter);
39void apply_poison (object *op, object *tmp); 56void apply_poison (object *op, object *tmp);
40int is_legal_2ways_exit (object *op, object *exit); 57int is_legal_2ways_exit (object *op, object *exit);
41int manual_apply (object *op, object *tmp, int aflag); 58int manual_apply (object *op, object *tmp, int aflag);
42int player_apply (object *pl, object *op, int aflag, int quiet); 59int player_apply (object *pl, object *op, int aflag, int quiet);
43void player_apply_below (object *pl); 60void player_apply_below (object *pl);
44object *get_item_from_body_location (object *start, int loc);
45int unapply_for_ob (object *who, object *op, int aflags); 61int unapply_for_ob (object *who, object *op, int aflags);
46int can_apply_object (object *who, object *op); 62int can_apply_object (object *who, object *op);
47int apply_special (object *who, object *op, int aflags); 63int apply_special (object *who, object *op, int aflags);
48int monster_apply_special (object *who, object *op, int aflags); 64int monster_apply_special (object *who, object *op, int aflags);
49int auto_apply (object *op); 65int auto_apply (object *op);
51void eat_special_food (object *who, object *food); 67void eat_special_food (object *who, object *food);
52void apply_lighter (object *who, object *lighter); 68void apply_lighter (object *who, object *lighter);
53void scroll_failure (object *op, int failure, int power); 69void scroll_failure (object *op, int failure, int power);
54void apply_changes_to_player (object *pl, object *change); 70void apply_changes_to_player (object *pl, object *change);
55void apply_item_transformer (object *pl, object *transformer); 71void apply_item_transformer (object *pl, object *transformer);
72extern void handle_apply_yield (object *op);
56 73
57/* attack.c */ 74/* attack.c */
58void cancellation (object *op); 75void cancellation (object *op);
59int did_make_save_item (object *op, int type, object *originator); 76int did_make_save_item (object *op, int type, object *originator);
60void save_throw_object (object *op, int type, object *originator); 77void save_throw_object (object *op, int type, object *originator);
107int command_weather (object *op, char *params); 124int command_weather (object *op, char *params);
108int command_archs (object *op, char *params); 125int command_archs (object *op, char *params);
109int command_hiscore (object *op, char *params); 126int command_hiscore (object *op, char *params);
110int command_debug (object *op, char *params); 127int command_debug (object *op, char *params);
111int command_dumpbelow (object *op, char *params); 128int command_dumpbelow (object *op, char *params);
129int command_dumpfriendlyobjects (object *op, char *params);
112int command_wizpass (object *op, char *params); 130int command_wizpass (object *op, char *params);
113int command_wizcast (object *op, char *params); 131int command_wizcast (object *op, char *params);
114int command_dumpallobjects (object *op, char *params);
115int command_dumpfriendlyobjects (object *op, char *params);
116int command_dumpallarchetypes (object *op, char *params);
117int command_ssdumptable (object *op, char *params);
118int command_dumpmap (object *op, char *params);
119int command_dumpallmaps (object *op, char *params);
120int command_printlos (object *op, char *params); 132int command_printlos (object *op, char *params);
121int command_version (object *op, char *params); 133int command_version (object *op, char *params);
122void bug_report (const char *reportstring); 134void bug_report (const char *reportstring);
123int command_statistics (object *pl, char *params); 135int command_statistics (object *pl, char *params);
124int command_fix_me (object *op, char *params); 136int command_fix_me (object *op, char *params);
179void set_pickup_mode (object *op, int i); 191void set_pickup_mode (object *op, int i);
180int command_search_items (object *op, char *params); 192int command_search_items (object *op, char *params);
181int command_rename_item (object *op, char *params); 193int command_rename_item (object *op, char *params);
182 194
183/* c_party.c */ 195/* c_party.c */
184int same_party (partylist *a, partylist *b);
185partylist *get_firstparty (void); 196partylist *get_firstparty (void);
186void remove_party (partylist *target_party); 197void remove_party (partylist *target_party);
187void obsolete_parties (void); 198void obsolete_parties (void);
188void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); 199void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp);
189int confirm_party_password (object *op); 200int confirm_party_password (object *op);
206void do_wizard_hide (object *op, int silent_dm); 217void do_wizard_hide (object *op, int silent_dm);
207int command_hide (object *op, char *params); 218int command_hide (object *op, char *params);
208int command_setgod (object *op, char *params); 219int command_setgod (object *op, char *params);
209int command_banish (object *op, char *params); 220int command_banish (object *op, char *params);
210int command_save_overlay (object *op, char *params); 221int command_save_overlay (object *op, char *params);
211int command_toggle_shout (object *op, char *params);
212int command_freeze (object *op, char *params); 222int command_freeze (object *op, char *params);
213int command_arrest (object *op, char *params); 223int command_arrest (object *op, char *params);
214int command_summon (object *op, char *params); 224int command_summon (object *op, char *params);
215int command_teleport (object *op, char *params); 225int command_teleport (object *op, char *params);
216int command_create (object *op, char *params); 226int command_create (object *op, char *params);
350/* main.c */ 360/* main.c */
351void server_tick (); 361void server_tick ();
352void version (object *op); 362void version (object *op);
353void info_keys (object *op); 363void info_keys (object *op);
354char *crypt_string (char *str, char *salt); 364char *crypt_string (char *str, char *salt);
355int check_password (char *typed, char *crypted);
356void enter_player_savebed (object *op); 365void enter_player_savebed (object *op);
357void leave_map (object *op); 366void leave_map (object *op);
358void set_map_timeout (maptile *oldmap); 367void set_map_timeout (maptile *oldmap);
359char *clean_path (const char *file); 368char *clean_path (const char *file);
360char *unclean_path (const char *src); 369char *unclean_path (const char *src);
463object *find_better_arrow (object *op, object *target, const char *type, int *better); 472object *find_better_arrow (object *op, object *target, const char *type, int *better);
464object *pick_arrow_target (object *op, const char *type, int dir); 473object *pick_arrow_target (object *op, const char *type, int dir);
465int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); 474int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy);
466int player_fire_bow (object *op, int dir); 475int player_fire_bow (object *op, int dir);
467void fire_misc_object (object *op, int dir); 476void fire_misc_object (object *op, int dir);
468void fire (object *op, int dir); 477bool fire (object *op, int dir);
469object *find_key (object *pl, object *container, object *door); 478object *find_key (object *pl, object *container, object *door);
470void move_player_attack (object *op, int dir); 479bool move_player_attack (object *op, int dir);
471int move_player (object *op, int dir); 480bool move_player (object *op, int dir);
472int handle_newcs_player (object *op); 481bool handle_newcs_player (object *op);
473int save_life (object *op); 482int save_life (object *op);
474void remove_unpaid_objects (object *op, object *env);
475char *gravestone_text (object *op); 483char *gravestone_text (object *op);
476void do_some_living (object *op); 484void do_some_living (object *op);
477void kill_player (object *op); 485void kill_player (object *op);
478void loot_object (object *op); 486void loot_object (object *op);
479void fix_weight (void); 487void fix_weight (void);
500void plugins_display_list (object *op); 508void plugins_display_list (object *op);
501void *cfapi_system_find_animation (int *type, ...); 509void *cfapi_system_find_animation (int *type, ...);
502void *cfapi_system_strdup (int *type, ...); 510void *cfapi_system_strdup (int *type, ...);
503void *cfapi_system_register_global_event (int *type, ...); 511void *cfapi_system_register_global_event (int *type, ...);
504void *cfapi_system_unregister_global_event (int *type, ...); 512void *cfapi_system_unregister_global_event (int *type, ...);
505void *cfapi_system_check_path (int *type, ...);
506void *cfapi_system_re_cmp (int *type, ...); 513void *cfapi_system_re_cmp (int *type, ...);
507void *cfapi_system_directory (int *type, ...); 514void *cfapi_system_directory (int *type, ...);
508void *cfapi_map_get_map (int *type, ...); 515void *cfapi_map_get_map (int *type, ...);
509void *cfapi_map_has_been_loaded (int *type, ...); 516void *cfapi_map_has_been_loaded (int *type, ...);
510void *cfapi_map_create_path (int *type, ...); 517void *cfapi_map_create_path (int *type, ...);
623int skill_throw (object *op, object *part, int dir, const char *params, object *skill); 630int skill_throw (object *op, object *part, int dir, const char *params, object *skill);
624 631
625/* skill_util.c */ 632/* skill_util.c */
626void init_skills (void); 633void init_skills (void);
627void link_player_skills (object *op); 634void link_player_skills (object *op);
628object *find_skill_by_name (object *who, const char *name);
629object *find_skill_by_number (object *who, int skillno);
630int change_skill (object *who, object *new_skill, int flag);
631void clear_skill (object *who);
632int do_skill (object *op, object *part, object *skill, int dir, const char *string); 635int do_skill (object *op, object *part, object *skill, int dir, const char *string);
633int calc_skill_exp (object *who, object *op, object *skill); 636int calc_skill_exp (object *who, object *op, object *skill);
634int learn_skill (object *pl, object *scroll); 637int learn_skill (object *pl, object *scroll);
635void show_skills (object *op, const char *search); 638void show_skills (object *op, const char *search);
636int use_skill (object *op, const char *string); 639int use_skill (object *op, const char *string);
680int cast_earth_to_dust (object *op, object *caster, object *spell_ob); 683int cast_earth_to_dust (object *op, object *caster, object *spell_ob);
681void execute_word_of_recall (object *op); 684void execute_word_of_recall (object *op);
682int cast_word_of_recall (object *op, object *caster, object *spell_ob); 685int cast_word_of_recall (object *op, object *caster, object *spell_ob);
683int cast_wonder (object *op, object *caster, int dir, object *spell_ob); 686int cast_wonder (object *op, object *caster, int dir, object *spell_ob);
684int perceive_self (object *op); 687int perceive_self (object *op);
685int cast_create_town_portal (object *op, object *caster, object *spell, int dir);
686int magic_wall (object *op, object *caster, int dir, object *spell_ob); 688int magic_wall (object *op, object *caster, int dir, object *spell_ob);
687int dimension_door (object *op, object *caster, object *spob, int dir); 689int dimension_door (object *op, object *caster, object *spob, int dir);
688int cast_heal (object *op, object *caster, object *spell, int dir); 690int cast_heal (object *op, object *caster, object *spell, int dir);
689int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent); 691int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent);
690int cast_bless (object *op, object *caster, object *spell_ob, int dir); 692int cast_bless (object *op, object *caster, object *spell_ob, int dir);
770void move_firewall (object *op); 772void move_firewall (object *op);
771void move_player_mover (object *op); 773void move_player_mover (object *op);
772void move_duplicator (object *op); 774void move_duplicator (object *op);
773void move_creator (object *creator); 775void move_creator (object *creator);
774void move_marker (object *op); 776void move_marker (object *op);
775int process_object (object *op); 777void process_object (object *op);
776 778
777/* timers.c */ 779/* timers.c */
778void cftimer_process_timers (void); 780void cftimer_process_timers (void);
779void cftimer_process_event (object *ob); 781void cftimer_process_event (object *ob);
780int cftimer_create (int id, long delay, object *ob, int mode); 782int cftimer_create (int id, long delay, object *ob, int mode);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines