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.84 by root, Mon Apr 21 23:35:24 2008 UTC vs.
Revision 1.100 by elmex, Mon Jan 12 00:17:23 2009 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * 5 *
6 * Deliantra is free software: you can redistribute it and/or modify 6 * Deliantra is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 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 8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version. 9 * (at your option) any later version.
23int need_identify (const object *obj); 23int need_identify (const object *obj);
24int apply_shop_mat (object *shop_mat, object *op); 24int apply_shop_mat (object *shop_mat, object *op);
25const char *cost_string_from_value (sint64 cost, int approx); 25const char *cost_string_from_value (sint64 cost, int approx);
26void pay_player (object *pl, sint64 amount); 26void pay_player (object *pl, sint64 amount);
27sint64 pay_player_arch (object *pl, const char *arch, sint64 amount); 27sint64 pay_player_arch (object *pl, const char *arch, sint64 amount);
28void attempt_do_alchemy (object *caster, object *cauldron); 28void attempt_do_alchemy (object *caster, object *cauldron, object *skill);
29int content_recipe_value (object *op); 29int content_recipe_value (object *op);
30int numb_ob_inside (object *op); 30int numb_ob_inside (object *op);
31object *attempt_recipe (object *caster, object *cauldron, int ability, recipe *rp, int nbatches); 31object *attempt_recipe (object *caster, object *cauldron, int ability, recipe *rp, int nbatches);
32void adjust_product (object *item, int lvl, int yield); 32void adjust_product (object *item, int lvl, int yield);
33object *make_item_from_recipe (object *cauldron, recipe *rp); 33object *make_item_from_recipe (object *cauldron, recipe *rp);
67void apply_lighter (object *who, object *lighter); 67void apply_lighter (object *who, object *lighter);
68void scroll_failure (object *op, int failure, int power); 68void scroll_failure (object *op, int failure, int power);
69void apply_changes_to_player (object *pl, object *change); 69void apply_changes_to_player (object *pl, object *change);
70void apply_item_transformer (object *pl, object *transformer); 70void apply_item_transformer (object *pl, object *transformer);
71extern void handle_apply_yield (object *op); 71extern void handle_apply_yield (object *op);
72void apply_lamp (object *op, bool switch_on);
72 73
73/* attack.c */ 74/* attack.c */
74void cancellation (object *op); 75void cancellation (object *op);
75int did_make_save_item (object *op, int type, object *originator); 76int did_make_save_item (object *op, int type, object *originator);
76void save_throw_object (object *op, int type, object *originator); 77void save_throw_object (object *op, int type, object *originator);
94int is_aimed_missile (object *op); 95int is_aimed_missile (object *op);
95 96
96/* build_map.c */ 97/* build_map.c */
97int can_build_over (struct mapdef *map, object *tmp, short x, short y); 98int can_build_over (struct mapdef *map, object *tmp, short x, short y);
98void remove_marking_runes (struct mapdef *map, short x, short y); 99void remove_marking_runes (struct mapdef *map, short x, short y);
99int find_unused_connected_value (struct mapdef *map);
100int find_or_create_connection_for_map (object *pl, short x, short y, object *rune);
101object *get_connection_rune (object *pl, short x, short y); 100object *get_connection_rune (object *pl, short x, short y);
102object *get_msg_book (object *pl, short x, short y); 101object *get_msg_book (object *pl, short x, short y);
103object *get_wall (struct mapdef *map, int x, int y); 102object *get_wall (struct mapdef *map, int x, int y);
104void fix_walls (maptile *map, int x, int y); 103void fix_walls (maptile *map, int x, int y);
105void fix_walls_around (maptile *map, int x, int y); 104void fix_walls_around (maptile *map, int x, int y);
132int command_version (object *op, char *params); 131int command_version (object *op, char *params);
133void bug_report (const char *reportstring); 132void bug_report (const char *reportstring);
134int command_statistics (object *pl, char *params); 133int command_statistics (object *pl, char *params);
135int command_fix_me (object *op, char *params); 134int command_fix_me (object *op, char *params);
136int command_players (object *op, char *paramss); 135int command_players (object *op, char *paramss);
137int command_logs (object *op, char *params);
138int command_bowmode (object *op, char *params); 136int command_bowmode (object *op, char *params);
139int command_showpets (object *op, char *params); 137int command_showpets (object *op, char *params);
140int command_resistances (object *op, char *params); 138int command_resistances (object *op, char *params);
141int command_help (object *op, char *params); 139int command_help (object *op, char *params);
142int onoff_value (const char *line); 140int onoff_value (const char *line);
175int sack_can_hold (object *pl, object *sack, object *op, uint32 nrof); 173int sack_can_hold (object *pl, object *sack, object *op, uint32 nrof);
176void pick_up (object *op, object *alt); 174void pick_up (object *op, object *alt);
177int command_take (object *op, char *params); 175int command_take (object *op, char *params);
178void put_object_in_sack (object *op, object *sack, object *tmp, uint32 nrof); 176void put_object_in_sack (object *op, object *sack, object *tmp, uint32 nrof);
179void drop_object (object *op, object *tmp, uint32 nrof); 177void drop_object (object *op, object *tmp, uint32 nrof);
180void update_after_inventory_change (object *op); 178void drop_object (object *dropper, object *obj);
181void drop (object *op, object *tmp); 179void drop (object *op, object *tmp);
182int command_dropall (object *op, char *params); 180int command_dropall (object *op, char *params);
183int command_drop (object *op, char *params); 181int command_drop (object *op, char *params);
184int command_examine (object *op, char *params); 182int command_examine (object *op, char *params);
185object *find_marked_object (object *op); 183object *find_marked_object (object *op);
196void remove_party (partylist *target_party); 194void remove_party (partylist *target_party);
197void obsolete_parties (void); 195void obsolete_parties (void);
198void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); 196void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp);
199int confirm_party_password (object *op); 197int confirm_party_password (object *op);
200void receive_party_password (object *op, char k); 198void receive_party_password (object *op, char k);
201void send_party_message (object *op, char *msg); 199void send_party_message (object *op, const char *msg);
202int command_gsay (object *op, char *params); 200int command_gsay (object *op, char *params);
203int command_party (object *op, char *params); 201int command_party (object *op, char *params);
204 202
205/* c_range.c */ 203/* c_range.c */
206int command_invoke (object *op, char *params); 204int command_invoke (object *op, char *params);
261/* daemon.c */ 259/* daemon.c */
262FILE *BecomeDaemon (const char *filename); 260FILE *BecomeDaemon (const char *filename);
263 261
264/* disease.c */ 262/* disease.c */
265int move_disease (object *disease); 263int move_disease (object *disease);
266int remove_symptoms (object *disease);
267object *find_symptom (object *disease);
268int check_infection (object *disease);
269int infect_object (object *victim, object *disease, int force); 264int infect_object (object *victim, object *disease, int force);
270int do_symptoms (object *disease);
271int grant_immunity (object *disease);
272int move_symptom (object *symptom); 265int move_symptom (object *symptom);
273int check_physically_infect (object *victim, object *hitter); 266int check_physically_infect (object *victim, object *hitter);
274object *find_disease (object *victim);
275int cure_disease (object *sufferer, object *caster, object *spell); 267int cure_disease (object *sufferer, object *caster, object *spell);
276int reduce_symptoms (object *sufferer, int reduction);
277 268
278/* egoitem.c */ 269/* egoitem.c */
279int create_artifact (object *op, const char *artifactname); 270int create_artifact (object *op, const char *artifactname);
280int apply_power_crystal (object *op, object *crystal); 271int apply_power_crystal (object *op, object *crystal);
281 272
283char *spool (char *bp, char *error); 274char *spool (char *bp, char *error);
284void check_score (object *op); 275void check_score (object *op);
285void display_high_score (object *op, int max, const char *match); 276void display_high_score (object *op, int max, const char *match);
286 277
287/* gods.c */ 278/* gods.c */
288int lookup_god_by_name (const char *name); 279int lookup_god_by_name (shstr_cmp name);
289object *find_god (const char *name); 280object *find_god (shstr_cmp name);
290const char *determine_god (object *op); 281shstr_tmp determine_god (object *op);
291void pray_at_altar (object *pl, object *altar, object *skill); 282void pray_at_altar (object *pl, object *altar, object *skill);
292void become_follower (object *op, object *new_god); 283void become_follower (object *op, object *new_god);
293int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string); 284int worship_forbids_use (object *op, object *exp_obj, uint32 flag, const char *string);
294void stop_using_item (object *op, int type, int number); 285void stop_using_item (object *op, int type, int number);
295void update_priest_flag (object *god, object *exp_ob, uint32 flag); 286void update_priest_flag (object *god, object *exp_ob, uint32 flag);
296archetype *determine_holy_arch (object *god, const char *type); 287archetype *determine_holy_arch (object *god, shstr_cmp type);
297void god_intervention (object *op, object *god, object *skill); 288void god_intervention (object *op, object *god, object *skill);
298int god_examines_priest (object *op, object *god); 289int god_examines_priest (object *op, object *god);
299int god_examines_item (object *god, object *item); 290int god_examines_item (object *god, object *item);
300int get_god (object *priest); 291int get_god (object *priest);
301const char *get_god_for_race (const char *race);
302int tailor_god_spell (object *spellop, object *caster); 292int tailor_god_spell (object *spellop, object *caster);
303 293
304/* init.c */ 294/* init.c */
305void set_logfile (char *val); 295void load_settings (void);
306void call_version (void); 296void load_materials (void);
307void showscores (void);
308void set_debug (void);
309void unset_debug (void);
310void set_mondebug (void);
311void set_dumpmon1 (void);
312void set_dumpmon2 (void);
313void set_dumpmon3 (void);
314void set_dumpmon4 (void);
315void set_dumpmon5 (void);
316void set_dumpmon6 (void);
317void set_dumpmon7 (void);
318void set_dumpmon8 (void);
319void set_dumpmon9 (void);
320void set_dumpmont (char *name);
321void set_daemon (void);
322void set_datadir (char *path);
323void set_confdir (char *path);
324void set_localdir (char *path);
325void set_mapdir (char *path);
326void set_archetypes (char *path);
327void set_regions (char *path);
328void set_treasures (char *path);
329void set_uniquedir (char *path);
330void set_templatedir (char *path);
331void set_playerdir (char *path);
332void set_tmpdir (char *path);
333void showscoresparm (char *data);
334void set_csport (char *val);
335void init (int argc, char **argv); 297void init (int argc, char **argv);
336void usage (void); 298void usage (void);
337void help (void); 299void help (void);
338void init_beforeplay (void); 300void init_beforeplay (void);
339void init_signals (void); 301void init_signals (void);
431void move_golem (object *op); 393void move_golem (object *op);
432void control_golem (object *op, int dir); 394void control_golem (object *op, int dir);
433int summon_golem (object *op, object *caster, int dir, object *spob); 395int summon_golem (object *op, object *caster, int dir, object *spob);
434object *choose_cult_monster (object *pl, object *god, int summon_level); 396object *choose_cult_monster (object *pl, object *god, int summon_level);
435int summon_object (object *op, object *caster, object *spell_ob, int dir, const char *stringarg); 397int summon_object (object *op, object *caster, object *spell_ob, int dir, const char *stringarg);
436object *get_real_owner (object *ob);
437int should_arena_attack (object *pet, object *owner, object *target); 398int should_arena_attack (object *pet, object *owner, object *target);
438 399
439/* player.c */ 400/* player.c */
440player *find_player (const char *plname); 401player *find_player (const char *plname);
441player *find_player_partial_name (const char *plname); 402player *find_player_partial_name (const char *plname);
459int key_change_class (object *op, char key); 420int key_change_class (object *op, char key);
460int key_confirm_quit (object *op, char key); 421int key_confirm_quit (object *op, char key);
461void flee_player (object *op); 422void flee_player (object *op);
462int check_pick (object *op); 423int check_pick (object *op);
463object *find_arrow (object *op, const char *type); 424object *find_arrow (object *op, const char *type);
464object *find_better_arrow (object *op, object *target, const char *type, int *better); 425object *find_better_arrow (object *op, object *target, shstr_cmp type, int *better);
465object *pick_arrow_target (object *op, const char *type, int dir); 426object *pick_arrow_target (object *op, shstr_cmp type, int dir);
466int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy); 427int fire_bow (object *op, object *part, object *arrow, int dir, int wc_mod, sint16 sx, sint16 sy);
467int player_fire_bow (object *op, int dir); 428int player_fire_bow (object *op, int dir);
468void fire_misc_object (object *op, int dir); 429void fire_misc_object (object *op, int dir);
469bool fire (object *op, int dir); 430bool fire (object *op, int dir);
470object *find_key (object *pl, object *container, object *door); 431object *find_key (object *pl, object *container, object *door);
471bool move_player_attack (object *op, int dir); 432bool move_player_attack (object *op, int dir);
472bool move_player (object *op, int dir); 433bool move_player (object *op, int dir);
473bool handle_newcs_player (object *op); 434bool handle_newcs_player (object *op);
474int save_life (object *op); 435int save_life (object *op);
475char *gravestone_text (object *op); 436const char *gravestone_text (object *op);
476void do_some_living (object *op); 437void do_some_living (object *op);
477void kill_player (object *op); 438void kill_player (object *op);
478void loot_object (object *op); 439void loot_object (object *op);
479void fix_weight (void); 440void fix_weight (void);
480void fix_luck (void); 441void fix_luck (void);
514const char *query_cost_string (const object *tmp, object *who, int flag); 475const char *query_cost_string (const object *tmp, object *who, int flag);
515sint64 query_money (const object *op); 476sint64 query_money (const object *op);
516int pay_for_amount (sint64 to_pay, object *pl); 477int pay_for_amount (sint64 to_pay, object *pl);
517int pay_for_item (object *op, object *pl); 478int pay_for_item (object *op, object *pl);
518int can_pay (object *pl); 479int can_pay (object *pl);
519void sell_item (object *op, object *pl); 480bool sell_item (object *op, object *pl);
520double shopkeeper_approval (const maptile *map, const object *player); 481double shopkeeper_approval (const maptile *map, const object *player);
521int describe_shop (const object *op); 482int describe_shop (const object *op);
522void shop_listing (object *sign, object *op); 483void shop_listing (object *sign, object *op);
523bool is_in_shop (object *o); 484bool is_in_shop (object *o);
524bool is_in_shop (maptile *map, int x, int y); 485bool is_in_shop (maptile *map, int x, int y);
613void move_aura (object *aura); 574void move_aura (object *aura);
614void move_peacemaker (object *op); 575void move_peacemaker (object *op);
615int write_mark (object *op, object *spell, const char *msg); 576int write_mark (object *op, object *spell, const char *msg);
616 577
617/* spell_util.c */ 578/* spell_util.c */
618object *find_random_spell_in_ob (object *ob, const char *skill); 579object *find_random_spell_in_ob (object *ob, shstr_cmp skill = shstr_cmp ());
619void set_spell_skill (object *op, object *caster, object *spob, object *dest); 580void set_spell_skill (object *op, object *caster, object *spob, object *dest);
620void spell_effect (object *spob, int x, int y, maptile *map, object *originator); 581void spell_effect (object *spob, int x, int y, maptile *map, object *originator);
621int min_casting_level (object *caster, object *spell); 582int min_casting_level (object *caster, object *spell);
622int caster_level (object *caster, object *spell); 583int casting_level (object *caster, object *spell);
623sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); 584sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags);
624int SP_level_dam_adjust (object *caster, object *spob); 585int SP_level_dam_adjust (object *caster, object *spob);
625int SP_level_duration_adjust (object *caster, object *spob); 586int SP_level_duration_adjust (object *caster, object *spob);
626int SP_level_range_adjust (object *caster, object *spob); 587int SP_level_range_adjust (object *caster, object *spob);
627object *check_spell_known (object *op, const char *name); 588object *check_spell_known (object *op, shstr_cmp name);
628object *lookup_spell_by_name (object *op, const char *spname); 589object *lookup_spell_by_name (object *op, const char *spname);
629int reflwall (maptile *m, int x, int y, object *sp_op); 590int reflwall (maptile *m, int x, int y, object *sp_op);
630int cast_create_obj (object *op, object *caster, object *new_op, int dir); 591int cast_create_obj (object *op, object *caster, object *new_op, int dir);
631int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop); 592int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop);
632int fire_arch_from_position (object *op, object *caster, sint16 x, sint16 y, int dir, object *spell); 593int fire_arch_from_position (object *op, object *caster, sint16 x, sint16 y, int dir, object *spell);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines