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.57 by root, Sun Mar 18 03:05:40 2007 UTC vs.
Revision 1.68 by root, Thu Jun 7 19:30:55 2007 UTC

1// server/c_party.C 1/*
2int 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 */
5int need_identify (const object *obj); 24int need_identify (const object *obj);
6int apply_shop_mat (object *shop_mat, object *op); 25int apply_shop_mat (object *shop_mat, object *op);
7const char *cost_string_from_value (sint64 cost, int approx); 26const char *cost_string_from_value (sint64 cost, int approx);
39void apply_poison (object *op, object *tmp); 58void apply_poison (object *op, object *tmp);
40int is_legal_2ways_exit (object *op, object *exit); 59int is_legal_2ways_exit (object *op, object *exit);
41int manual_apply (object *op, object *tmp, int aflag); 60int manual_apply (object *op, object *tmp, int aflag);
42int player_apply (object *pl, object *op, int aflag, int quiet); 61int player_apply (object *pl, object *op, int aflag, int quiet);
43void player_apply_below (object *pl); 62void 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); 63int unapply_for_ob (object *who, object *op, int aflags);
46int can_apply_object (object *who, object *op); 64int can_apply_object (object *who, object *op);
47int apply_special (object *who, object *op, int aflags); 65int apply_special (object *who, object *op, int aflags);
48int monster_apply_special (object *who, object *op, int aflags); 66int monster_apply_special (object *who, object *op, int aflags);
49int auto_apply (object *op); 67int auto_apply (object *op);
179void set_pickup_mode (object *op, int i); 197void set_pickup_mode (object *op, int i);
180int command_search_items (object *op, char *params); 198int command_search_items (object *op, char *params);
181int command_rename_item (object *op, char *params); 199int command_rename_item (object *op, char *params);
182 200
183/* c_party.c */ 201/* c_party.c */
184int same_party (partylist *a, partylist *b);
185partylist *get_firstparty (void); 202partylist *get_firstparty (void);
186void remove_party (partylist *target_party); 203void remove_party (partylist *target_party);
187void obsolete_parties (void); 204void obsolete_parties (void);
188void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); 205void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp);
189int confirm_party_password (object *op); 206int confirm_party_password (object *op);
330void usage (void); 347void usage (void);
331void help (void); 348void help (void);
332void init_beforeplay (void); 349void init_beforeplay (void);
333void init_startup (void); 350void init_startup (void);
334void compile_info (void); 351void compile_info (void);
335void rec_sigsegv (int i);
336void rec_sigint (int i);
337void rec_sighup (int i);
338void rec_sigquit (int i);
339void rec_sigpipe (int i);
340void rec_sigbus (int i);
341void rec_sigterm (int i);
342void init_signals (void); 352void init_signals (void);
343void init_races (void); 353void init_races (void);
344void dump_races (void); 354void dump_races (void);
345void add_to_racelist (const char *race_name, object *op); 355void add_to_racelist (const char *race_name, object *op);
346racelink *get_racelist (void); 356racelink *get_racelist (void);
470object *find_better_arrow (object *op, object *target, const char *type, int *better); 480object *find_better_arrow (object *op, object *target, const char *type, int *better);
471object *pick_arrow_target (object *op, const char *type, int dir); 481object *pick_arrow_target (object *op, const char *type, int dir);
472int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); 482int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy);
473int player_fire_bow (object *op, int dir); 483int player_fire_bow (object *op, int dir);
474void fire_misc_object (object *op, int dir); 484void fire_misc_object (object *op, int dir);
475void fire (object *op, int dir); 485bool fire (object *op, int dir);
476object *find_key (object *pl, object *container, object *door); 486object *find_key (object *pl, object *container, object *door);
477void move_player_attack (object *op, int dir); 487bool move_player_attack (object *op, int dir);
478int move_player (object *op, int dir); 488bool move_player (object *op, int dir);
479int handle_newcs_player (object *op); 489bool handle_newcs_player (object *op);
480int save_life (object *op); 490int save_life (object *op);
481void remove_unpaid_objects (object *op, object *env); 491void remove_unpaid_objects (object *op, object *env);
482char *gravestone_text (object *op); 492char *gravestone_text (object *op);
483void do_some_living (object *op); 493void do_some_living (object *op);
484void kill_player (object *op); 494void kill_player (object *op);
607int pay_for_item (object *op, object *pl); 617int pay_for_item (object *op, object *pl);
608int can_pay (object *pl); 618int can_pay (object *pl);
609void sell_item (object *op, object *pl); 619void sell_item (object *op, object *pl);
610double shopkeeper_approval (const maptile *map, const object *player); 620double shopkeeper_approval (const maptile *map, const object *player);
611int describe_shop (const object *op); 621int describe_shop (const object *op);
612void shop_listing (object *op); 622void shop_listing (object *sign, object *op);
613bool is_in_shop (object *o); 623bool is_in_shop (object *o);
614bool is_in_shop (maptile *map, int x, int y); 624bool is_in_shop (maptile *map, int x, int y);
615 625
616/* skills.c */ 626/* skills.c */
617int steal (object *op, int dir, object *skill); 627int steal (object *op, int dir, object *skill);
630int skill_throw (object *op, object *part, int dir, const char *params, object *skill); 640int skill_throw (object *op, object *part, int dir, const char *params, object *skill);
631 641
632/* skill_util.c */ 642/* skill_util.c */
633void init_skills (void); 643void init_skills (void);
634void link_player_skills (object *op); 644void link_player_skills (object *op);
635object *find_skill_by_name (object *who, const char *name);
636object *find_skill_by_number (object *who, int skillno);
637int change_skill (object *who, object *new_skill, int flag);
638void clear_skill (object *who);
639int do_skill (object *op, object *part, object *skill, int dir, const char *string); 645int do_skill (object *op, object *part, object *skill, int dir, const char *string);
640int calc_skill_exp (object *who, object *op, object *skill); 646int calc_skill_exp (object *who, object *op, object *skill);
641int learn_skill (object *pl, object *scroll); 647int learn_skill (object *pl, object *scroll);
642void show_skills (object *op, const char *search); 648void show_skills (object *op, const char *search);
643int use_skill (object *op, const char *string); 649int use_skill (object *op, const char *string);
687int cast_earth_to_dust (object *op, object *caster, object *spell_ob); 693int cast_earth_to_dust (object *op, object *caster, object *spell_ob);
688void execute_word_of_recall (object *op); 694void execute_word_of_recall (object *op);
689int cast_word_of_recall (object *op, object *caster, object *spell_ob); 695int cast_word_of_recall (object *op, object *caster, object *spell_ob);
690int cast_wonder (object *op, object *caster, int dir, object *spell_ob); 696int cast_wonder (object *op, object *caster, int dir, object *spell_ob);
691int perceive_self (object *op); 697int perceive_self (object *op);
692int cast_create_town_portal (object *op, object *caster, object *spell, int dir);
693int magic_wall (object *op, object *caster, int dir, object *spell_ob); 698int magic_wall (object *op, object *caster, int dir, object *spell_ob);
694int dimension_door (object *op, object *caster, object *spob, int dir); 699int dimension_door (object *op, object *caster, object *spob, int dir);
695int cast_heal (object *op, object *caster, object *spell, int dir); 700int cast_heal (object *op, object *caster, object *spell, int dir);
696int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent); 701int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent);
697int cast_bless (object *op, object *caster, object *spell_ob, int dir); 702int cast_bless (object *op, object *caster, object *spell_ob, int dir);
756void flush_old_maps (void); 761void flush_old_maps (void);
757 762
758/* time.c */ 763/* time.c */
759void remove_door (object *op); 764void remove_door (object *op);
760void remove_door2 (object *op); 765void remove_door2 (object *op);
761void generate_monster_inv (object *gen);
762void generate_monster_arch (object *gen);
763void generate_monster (object *gen); 766void generate_monster (object *gen);
764void remove_force (object *op); 767void remove_force (object *op);
765void remove_blindness (object *op); 768void remove_blindness (object *op);
766void poison_more (object *op); 769void poison_more (object *op);
767void move_gate (object *op); 770void move_gate (object *op);
779void move_firewall (object *op); 782void move_firewall (object *op);
780void move_player_mover (object *op); 783void move_player_mover (object *op);
781void move_duplicator (object *op); 784void move_duplicator (object *op);
782void move_creator (object *creator); 785void move_creator (object *creator);
783void move_marker (object *op); 786void move_marker (object *op);
784int process_object (object *op); 787void process_object (object *op);
785 788
786/* timers.c */ 789/* timers.c */
787void cftimer_process_timers (void); 790void cftimer_process_timers (void);
788void cftimer_process_event (object *ob); 791void cftimer_process_event (object *ob);
789int cftimer_create (int id, long delay, object *ob, int mode); 792int cftimer_create (int id, long delay, object *ob, int mode);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines