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.54 by pippijn, Fri Mar 2 16:06:41 2007 UTC vs.
Revision 1.72 by elmex, Mon Jul 16 14:49:00 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);
39void apply_poison (object *op, object *tmp); 57void apply_poison (object *op, object *tmp);
40int is_legal_2ways_exit (object *op, object *exit); 58int is_legal_2ways_exit (object *op, object *exit);
41int manual_apply (object *op, object *tmp, int aflag); 59int manual_apply (object *op, object *tmp, int aflag);
42int player_apply (object *pl, object *op, int aflag, int quiet); 60int player_apply (object *pl, object *op, int aflag, int quiet);
43void player_apply_below (object *pl); 61void 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); 62int unapply_for_ob (object *who, object *op, int aflags);
46int can_apply_object (object *who, object *op); 63int can_apply_object (object *who, object *op);
47int apply_special (object *who, object *op, int aflags); 64int apply_special (object *who, object *op, int aflags);
48int monster_apply_special (object *who, object *op, int aflags); 65int monster_apply_special (object *who, object *op, int aflags);
49int auto_apply (object *op); 66int auto_apply (object *op);
51void eat_special_food (object *who, object *food); 68void eat_special_food (object *who, object *food);
52void apply_lighter (object *who, object *lighter); 69void apply_lighter (object *who, object *lighter);
53void scroll_failure (object *op, int failure, int power); 70void scroll_failure (object *op, int failure, int power);
54void apply_changes_to_player (object *pl, object *change); 71void apply_changes_to_player (object *pl, object *change);
55void apply_item_transformer (object *pl, object *transformer); 72void apply_item_transformer (object *pl, object *transformer);
73extern void handle_apply_yield (object *op);
56 74
57/* attack.c */ 75/* attack.c */
58void cancellation (object *op); 76void cancellation (object *op);
59int did_make_save_item (object *op, int type, object *originator); 77int did_make_save_item (object *op, int type, object *originator);
60void save_throw_object (object *op, int type, object *originator); 78void save_throw_object (object *op, int type, object *originator);
75void paralyze_player (object *op, object *hitter, int dam); 93void paralyze_player (object *op, object *hitter, int dam);
76void deathstrike_player (object *op, object *hitter, int *dam); 94void deathstrike_player (object *op, object *hitter, int *dam);
77int adj_attackroll (object *hitter, object *target); 95int adj_attackroll (object *hitter, object *target);
78int is_aimed_missile (object *op); 96int is_aimed_missile (object *op);
79 97
80/* ban.c */
81int checkbanned (const char *login, const char *host);
82
83/* build_map.c */ 98/* build_map.c */
84int can_build_over (struct mapdef *map, object *tmp, short x, short y); 99int can_build_over (struct mapdef *map, object *tmp, short x, short y);
85void remove_marking_runes (struct mapdef *map, short x, short y); 100void remove_marking_runes (struct mapdef *map, short x, short y);
86int find_unused_connected_value (struct mapdef *map); 101int find_unused_connected_value (struct mapdef *map);
87int find_or_create_connection_for_map (object *pl, short x, short y, object *rune); 102int find_or_create_connection_for_map (object *pl, short x, short y, object *rune);
110int command_weather (object *op, char *params); 125int command_weather (object *op, char *params);
111int command_archs (object *op, char *params); 126int command_archs (object *op, char *params);
112int command_hiscore (object *op, char *params); 127int command_hiscore (object *op, char *params);
113int command_debug (object *op, char *params); 128int command_debug (object *op, char *params);
114int command_dumpbelow (object *op, char *params); 129int command_dumpbelow (object *op, char *params);
130int command_dumpfriendlyobjects (object *op, char *params);
115int command_wizpass (object *op, char *params); 131int command_wizpass (object *op, char *params);
116int command_wizcast (object *op, char *params); 132int command_wizcast (object *op, char *params);
117int command_dumpallobjects (object *op, char *params);
118int command_dumpfriendlyobjects (object *op, char *params);
119int command_dumpallarchetypes (object *op, char *params);
120int command_ssdumptable (object *op, char *params);
121int command_dumpmap (object *op, char *params);
122int command_dumpallmaps (object *op, char *params);
123int command_printlos (object *op, char *params); 133int command_printlos (object *op, char *params);
124int command_version (object *op, char *params); 134int command_version (object *op, char *params);
125void bug_report (const char *reportstring); 135void bug_report (const char *reportstring);
126int command_statistics (object *pl, char *params); 136int command_statistics (object *pl, char *params);
127int command_fix_me (object *op, char *params); 137int command_fix_me (object *op, char *params);
173int command_dropall (object *op, char *params); 183int command_dropall (object *op, char *params);
174int command_drop (object *op, char *params); 184int command_drop (object *op, char *params);
175int command_examine (object *op, char *params); 185int command_examine (object *op, char *params);
176object *find_marked_object (object *op); 186object *find_marked_object (object *op);
177void examine_monster (object *op, object *tmp); 187void examine_monster (object *op, object *tmp);
178char *long_desc (object *tmp, object *pl); 188const char *long_desc (object *tmp, object *pl);
179void examine (object *op, object *tmp); 189void examine (object *op, object *tmp);
180void inventory (object *op, object *inv); 190void inventory (object *op, object *inv);
181int command_pickup (object *op, char *params); 191int command_pickup (object *op, char *params);
182void set_pickup_mode (object *op, int i); 192void set_pickup_mode (object *op, int i);
183int command_search_items (object *op, char *params); 193int command_search_items (object *op, char *params);
184int command_rename_item (object *op, char *params); 194int command_rename_item (object *op, char *params);
185 195
186/* c_party.c */ 196/* c_party.c */
187int same_party (partylist *a, partylist *b);
188partylist *get_firstparty (void); 197partylist *get_firstparty (void);
189void remove_party (partylist *target_party); 198void remove_party (partylist *target_party);
190void obsolete_parties (void); 199void obsolete_parties (void);
191void add_kill_to_party (partylist *party, char *killer, char *dead, long exp); 200void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp);
192int confirm_party_password (object *op); 201int confirm_party_password (object *op);
193void receive_party_password (object *op, char k); 202void receive_party_password (object *op, char k);
194void send_party_message (object *op, char *msg); 203void send_party_message (object *op, char *msg);
195int command_gsay (object *op, char *params); 204int command_gsay (object *op, char *params);
196int command_party (object *op, char *params); 205int command_party (object *op, char *params);
209void do_wizard_hide (object *op, int silent_dm); 218void do_wizard_hide (object *op, int silent_dm);
210int command_hide (object *op, char *params); 219int command_hide (object *op, char *params);
211int command_setgod (object *op, char *params); 220int command_setgod (object *op, char *params);
212int command_banish (object *op, char *params); 221int command_banish (object *op, char *params);
213int command_save_overlay (object *op, char *params); 222int command_save_overlay (object *op, char *params);
214int command_toggle_shout (object *op, char *params);
215int command_freeze (object *op, char *params); 223int command_freeze (object *op, char *params);
216int command_arrest (object *op, char *params); 224int command_arrest (object *op, char *params);
217int command_summon (object *op, char *params); 225int command_summon (object *op, char *params);
218int command_teleport (object *op, char *params); 226int command_teleport (object *op, char *params);
219int command_create (object *op, char *params); 227int command_create (object *op, char *params);
333void usage (void); 341void usage (void);
334void help (void); 342void help (void);
335void init_beforeplay (void); 343void init_beforeplay (void);
336void init_startup (void); 344void init_startup (void);
337void compile_info (void); 345void compile_info (void);
338void rec_sigsegv (int i);
339void rec_sigint (int i);
340void rec_sighup (int i);
341void rec_sigquit (int i);
342void rec_sigpipe (int i);
343void rec_sigbus (int i);
344void rec_sigterm (int i);
345void init_signals (void); 346void init_signals (void);
346void init_races (void); 347void init_races (void);
347void dump_races (void); 348void dump_races (void);
348void add_to_racelist (const char *race_name, object *op); 349void add_to_racelist (const char *race_name, object *op);
349racelink *get_racelist (void); 350racelink *get_racelist (void);
473object *find_better_arrow (object *op, object *target, const char *type, int *better); 474object *find_better_arrow (object *op, object *target, const char *type, int *better);
474object *pick_arrow_target (object *op, const char *type, int dir); 475object *pick_arrow_target (object *op, const char *type, int dir);
475int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); 476int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy);
476int player_fire_bow (object *op, int dir); 477int player_fire_bow (object *op, int dir);
477void fire_misc_object (object *op, int dir); 478void fire_misc_object (object *op, int dir);
478void fire (object *op, int dir); 479bool fire (object *op, int dir);
479object *find_key (object *pl, object *container, object *door); 480object *find_key (object *pl, object *container, object *door);
480void move_player_attack (object *op, int dir); 481bool move_player_attack (object *op, int dir);
481int move_player (object *op, int dir); 482bool move_player (object *op, int dir);
482int handle_newcs_player (object *op); 483bool handle_newcs_player (object *op);
483int save_life (object *op); 484int save_life (object *op);
484void remove_unpaid_objects (object *op, object *env);
485char *gravestone_text (object *op); 485char *gravestone_text (object *op);
486void do_some_living (object *op); 486void do_some_living (object *op);
487void kill_player (object *op); 487void kill_player (object *op);
488void loot_object (object *op); 488void loot_object (object *op);
489void fix_weight (void); 489void fix_weight (void);
610int pay_for_item (object *op, object *pl); 610int pay_for_item (object *op, object *pl);
611int can_pay (object *pl); 611int can_pay (object *pl);
612void sell_item (object *op, object *pl); 612void sell_item (object *op, object *pl);
613double shopkeeper_approval (const maptile *map, const object *player); 613double shopkeeper_approval (const maptile *map, const object *player);
614int describe_shop (const object *op); 614int describe_shop (const object *op);
615void shop_listing (object *op); 615void shop_listing (object *sign, object *op);
616bool is_in_shop (object *o); 616bool is_in_shop (object *o);
617bool is_in_shop (maptile *map, int x, int y); 617bool is_in_shop (maptile *map, int x, int y);
618 618
619/* skills.c */ 619/* skills.c */
620int steal (object *op, int dir, object *skill); 620int steal (object *op, int dir, object *skill);
633int skill_throw (object *op, object *part, int dir, const char *params, object *skill); 633int skill_throw (object *op, object *part, int dir, const char *params, object *skill);
634 634
635/* skill_util.c */ 635/* skill_util.c */
636void init_skills (void); 636void init_skills (void);
637void link_player_skills (object *op); 637void link_player_skills (object *op);
638object *find_skill_by_name (object *who, const char *name);
639object *find_skill_by_number (object *who, int skillno);
640int change_skill (object *who, object *new_skill, int flag);
641void clear_skill (object *who);
642int do_skill (object *op, object *part, object *skill, int dir, const char *string); 638int do_skill (object *op, object *part, object *skill, int dir, const char *string);
643int calc_skill_exp (object *who, object *op, object *skill); 639int calc_skill_exp (object *who, object *op, object *skill);
644int learn_skill (object *pl, object *scroll); 640int learn_skill (object *pl, object *scroll);
645void show_skills (object *op, const char *search); 641void show_skills (object *op, const char *search);
646int use_skill (object *op, const char *string); 642int use_skill (object *op, const char *string);
690int cast_earth_to_dust (object *op, object *caster, object *spell_ob); 686int cast_earth_to_dust (object *op, object *caster, object *spell_ob);
691void execute_word_of_recall (object *op); 687void execute_word_of_recall (object *op);
692int cast_word_of_recall (object *op, object *caster, object *spell_ob); 688int cast_word_of_recall (object *op, object *caster, object *spell_ob);
693int cast_wonder (object *op, object *caster, int dir, object *spell_ob); 689int cast_wonder (object *op, object *caster, int dir, object *spell_ob);
694int perceive_self (object *op); 690int perceive_self (object *op);
695int cast_create_town_portal (object *op, object *caster, object *spell, int dir);
696int magic_wall (object *op, object *caster, int dir, object *spell_ob); 691int magic_wall (object *op, object *caster, int dir, object *spell_ob);
697int dimension_door (object *op, object *caster, object *spob, int dir); 692int dimension_door (object *op, object *caster, object *spob, int dir);
698int cast_heal (object *op, object *caster, object *spell, int dir); 693int cast_heal (object *op, object *caster, object *spell, int dir);
699int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent); 694int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent);
700int cast_bless (object *op, object *caster, object *spell_ob, int dir); 695int cast_bless (object *op, object *caster, object *spell_ob, int dir);
759void flush_old_maps (void); 754void flush_old_maps (void);
760 755
761/* time.c */ 756/* time.c */
762void remove_door (object *op); 757void remove_door (object *op);
763void remove_door2 (object *op); 758void remove_door2 (object *op);
764void generate_monster_inv (object *gen);
765void generate_monster_arch (object *gen);
766void generate_monster (object *gen); 759void generate_monster (object *gen);
767void remove_force (object *op); 760void remove_force (object *op);
768void remove_blindness (object *op); 761void remove_blindness (object *op);
769void poison_more (object *op); 762void poison_more (object *op);
770void move_gate (object *op); 763void move_gate (object *op);
782void move_firewall (object *op); 775void move_firewall (object *op);
783void move_player_mover (object *op); 776void move_player_mover (object *op);
784void move_duplicator (object *op); 777void move_duplicator (object *op);
785void move_creator (object *creator); 778void move_creator (object *creator);
786void move_marker (object *op); 779void move_marker (object *op);
787int process_object (object *op); 780void process_object (object *op);
788 781
789/* timers.c */ 782/* timers.c */
790void cftimer_process_timers (void); 783void cftimer_process_timers (void);
791void cftimer_process_event (object *ob); 784void cftimer_process_event (object *ob);
792int cftimer_create (int id, long delay, object *ob, int mode); 785int cftimer_create (int id, long delay, object *ob, int mode);
793int cftimer_destroy (int id); 786int cftimer_destroy (int id);
794int cftimer_find_free_id (void); 787int cftimer_find_free_id (void);
795 788
796/* weather.c */ 789/* weather.c */
797void set_darkness_map (maptile *m); 790void set_darkness_map (maptile *m);
798void tick_the_clock (void); 791void adjust_daylight (void);
799void init_weather (void);
800void weather_effect (const char *filename);
801int worldmap_to_weathermap (int x, int y, int *wx, int *wy, maptile *m);
802int real_world_temperature (int x, int y, maptile *m);
803int similar_direction (int a, int b);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines