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.119 by root, Sat Apr 3 22:30:21 2010 UTC vs.
Revision 1.127 by root, Wed Apr 21 07:10:00 2010 UTC

19 * 19 *
20 * The authors can be reached via e-mail to <support@deliantra.net> 20 * The authors can be reached via e-mail to <support@deliantra.net>
21 */ 21 */
22 22
23/* alchemy.c */ 23/* alchemy.c */
24int need_identify (const object *obj);
25int apply_shop_mat (object *shop_mat, object *op); 24int apply_shop_mat (object *shop_mat, object *op);
26const char *cost_string_from_value (sint64 cost, int approx); 25const char *cost_string_from_value (sint64 cost, int approx);
27void pay_player (object *pl, sint64 amount); 26void pay_player (object *pl, sint64 amount);
28sint64 pay_player_arch (object *pl, const char *arch, sint64 amount); 27sint64 pay_player_arch (object *pl, const char *arch, sint64 amount);
29void attempt_do_alchemy (object *caster, object *cauldron, object *skill); 28void attempt_do_alchemy (object *caster, object *cauldron, object *skill);
37void move_apply (object *trap, object *victim, object *originator); 36void move_apply (object *trap, object *victim, object *originator);
38void do_learn_spell (object *op, object *spell, int special_prayer); 37void do_learn_spell (object *op, object *spell, int special_prayer);
39void do_forget_spell (object *op, const char *spell); 38void do_forget_spell (object *op, const char *spell);
40void apply_scroll (object *op, object *tmp, int dir); 39void apply_scroll (object *op, object *tmp, int dir);
41void apply_poison (object *op, object *tmp); 40void apply_poison (object *op, object *tmp);
42bool player_apply (object *pl, object *op, int aflag);
43void player_apply_below (object *pl); 41void player_apply_below (object *pl);
44int can_apply_object (object *who, object *op); 42int can_apply_object (object *who, object *op);
45int apply_special (object *who, object *op, int aflags);
46int auto_apply (object *op); 43int auto_apply (object *op);
47void fix_auto_apply (maptile *m); 44void fix_auto_apply (maptile *m);
48void eat_special_food (object *who, object *food); 45void eat_special_food (object *who, object *food);
49void apply_changes_to_player (object *pl, object *change); 46void apply_changes_to_player (object *pl, object *change);
50void handle_apply_yield (object *op); 47void handle_apply_yield (object *op);
113int command_south (object *op, char *params); 110int command_south (object *op, char *params);
114int command_southeast (object *op, char *params); 111int command_southeast (object *op, char *params);
115int command_southwest (object *op, char *params); 112int command_southwest (object *op, char *params);
116int command_west (object *op, char *params); 113int command_west (object *op, char *params);
117int command_stay (object *op, char *params); 114int command_stay (object *op, char *params);
115int command_run (object *op, char *params);
116int command_run_stop (object *op, char *params);
117int command_fire (object *op, char *params);
118int command_fire_stop (object *op, char *params);
118 119
119/* c_new.c */ 120/* c_new.c */
120void execute_newserver_command (object *pl, char *command); 121void execute_newserver_command (object *pl, char *command);
121 122
122/* c_object.c */ 123/* c_object.c */
136void drop_object (object *dropper, object *obj); 137void drop_object (object *dropper, object *obj);
137void drop (object *op, object *tmp); 138void drop (object *op, object *tmp);
138int command_dropall (object *op, char *params); 139int command_dropall (object *op, char *params);
139int command_drop (object *op, char *params); 140int command_drop (object *op, char *params);
140int command_examine (object *op, char *params); 141int command_examine (object *op, char *params);
141object *find_marked_object (object *op);
142void examine_monster (object *op, object *tmp); 142void examine_monster (object *op, object *tmp);
143const char *long_desc (object *tmp, object *pl); 143const char *long_desc (object *tmp, object *pl);
144void examine (object *op, object *tmp); 144void examine (object *op, object *tmp);
145int command_pickup (object *op, char *params); 145int command_pickup (object *op, char *params);
146void set_pickup_mode (object *op, int i); 146void set_pickup_mode (object *op, int i);
147int command_search_items (object *op, char *params); 147int command_search_items (object *op, char *params);
148int command_rename_item (object *op, char *params); 148int command_rename_item (object *op, char *params);
149int command_unlock (object *op, char *params); 149int command_unlock (object *op, char *params);
150int command_lock (object *op, char *params); 150int command_lock (object *op, char *params);
151int command_mark (object *op, char *params);
151 152
152/* c_party.c */ 153/* c_party.c */
153partylist *get_firstparty (); 154partylist *get_firstparty ();
154void obsolete_parties (); 155void obsolete_parties ();
155void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); 156void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp);
199int command_stack_list (object *op, char *params); 200int command_stack_list (object *op, char *params);
200int command_stack_clear (object *op, char *params); 201int command_stack_clear (object *op, char *params);
201int command_diff (object *op, char *params); 202int command_diff (object *op, char *params);
202int command_insert_into (object *op, char *params); 203int command_insert_into (object *op, char *params);
203 204
204/* commands.c */
205void init_commands ();
206CommFunc find_oldsocket_command (char *cmd);
207CommFunc find_oldsocket_command2 (char *cmd);
208
209/* daemon.c */ 205/* daemon.c */
210FILE *BecomeDaemon (const char *filename); 206FILE *BecomeDaemon (const char *filename);
211 207
212/* disease.c */ 208/* disease.c */
213int move_disease (object *disease); 209int move_disease (object *disease);
283int push_ob (object *who, int dir, object *pusher); 279int push_ob (object *who, int dir, object *pusher);
284 280
285/* pets.c */ 281/* pets.c */
286object *get_pet_enemy (object *pet, rv_vector *rv); 282object *get_pet_enemy (object *pet, rv_vector *rv);
287void terminate_all_pets (object *owner); 283void terminate_all_pets (object *owner);
288void remove_all_pets (maptile *map); 284void move_all_pets ();
289int follow_owner (object *ob, object *owner); 285int follow_owner (object *ob, object *owner);
290void pet_move (object *ob); 286void pet_move (object *ob);
291void move_golem (object *op); 287void move_golem (object *op);
292void control_golem (object *op, int dir); 288void control_golem (object *op, int dir);
293int summon_golem (object *op, object *caster, int dir, object *spob); 289int summon_golem (object *op, object *caster, int dir, object *spob);
346int trap_disarm (object *disarmer, object *trap, int risk, object *skill); 342int trap_disarm (object *disarmer, object *trap, int risk, object *skill);
347void trap_adjust (object *trap, int difficulty); 343void trap_adjust (object *trap, int difficulty);
348 344
349/* shop.c */ 345/* shop.c */
350int get_payment (object *pl); 346int get_payment (object *pl);
351sint64 query_cost (const object *tmp, object *who, int flag);
352const char *query_cost_string (const object *tmp, object *who, int flag);
353sint64 query_money (const object *op); 347sint64 query_money (const object *op);
354int pay_for_amount (sint64 to_pay, object *pl); 348int pay_for_amount (sint64 to_pay, object *pl);
355int pay_for_item (object *op, object *pl); 349int pay_for_item (object *op, object *pl);
356int can_pay (object *pl); 350int can_pay (object *pl);
357bool sell_item (object *op, object *pl); 351bool sell_item (object *op, object *pl);
358double shopkeeper_approval (const maptile *map, const object *player); 352double shopkeeper_approval (const maptile *map, const object *player);
359int describe_shop (const object *op); 353int describe_shop (const object *op);
360void shop_listing (object *sign, object *op); 354void shop_listing (object *sign, object *op);
361bool is_in_shop (object *o);
362bool is_in_shop (maptile *map, int x, int y); 355bool is_in_shop (maptile *map, int x, int y);
363 356
364/* skills.c */ 357/* skills.c */
365int steal (object *op, int dir, object *skill); 358int steal (object *op, int dir, object *skill);
366int pick_lock (object *pl, int dir, object *skill); 359int pick_lock (object *pl, int dir, object *skill);
429int cast_wonder (object *op, object *caster, int dir, object *spell_ob); 422int cast_wonder (object *op, object *caster, int dir, object *spell_ob);
430int perceive_self (object *op); 423int perceive_self (object *op);
431int magic_wall (object *op, object *caster, int dir, object *spell_ob); 424int magic_wall (object *op, object *caster, int dir, object *spell_ob);
432int dimension_door (object *op, object *caster, object *spob, int dir, const char *spellparam); 425int dimension_door (object *op, object *caster, object *spob, int dir, const char *spellparam);
433int cast_heal (object *op, object *caster, object *spell, int dir); 426int cast_heal (object *op, object *caster, object *spell, int dir);
434int change_ability_duration (object *spell, object *caster);
435int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent); 427int cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent);
436int cast_bless (object *op, object *caster, object *spell_ob, int dir); 428int cast_bless (object *op, object *caster, object *spell_ob, int dir);
437int alchemy (object *op, object *caster, object *spell_ob); 429int alchemy (object *op, object *caster, object *spell_ob);
438int remove_curse (object *op, object *caster, object *spell); 430int remove_curse (object *op, object *caster, object *spell);
439int cast_identify (object *op, object *caster, object *spell); 431int cast_identify (object *op, object *caster, object *spell);
450 442
451/* spell_util.c */ 443/* spell_util.c */
452object *find_random_spell_in_ob (object *ob, shstr_cmp skill = shstr_cmp ()); 444object *find_random_spell_in_ob (object *ob, shstr_cmp skill = shstr_cmp ());
453void set_spell_skill (object *op, object *caster, object *spob, object *dest); 445void set_spell_skill (object *op, object *caster, object *spob, object *dest);
454void spell_effect (object *spob, int x, int y, maptile *map, object *originator); 446void spell_effect (object *spob, int x, int y, maptile *map, object *originator);
455int min_casting_level (object *caster, object *spell);
456int casting_level (object *caster, object *spell);
457sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags);
458int SP_level_dam_adjust (object *caster, object *spob);
459int SP_level_duration_adjust (object *caster, object *spob);
460int SP_level_range_adjust (object *caster, object *spob);
461object *check_spell_known (object *op, shstr_cmp name); 447object *check_spell_known (object *op, shstr_cmp name);
462object *lookup_spell_by_name (object *op, const char *spname); 448object *lookup_spell_by_name (object *op, const char *spname);
463int reflwall (maptile *m, int x, int y, object *sp_op); 449int reflwall (maptile *m, int x, int y, object *sp_op);
464int cast_create_obj (object *op, object *caster, object *new_op, int dir); 450int cast_create_obj (object *op, object *caster, object *new_op, int dir);
465int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop); 451int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines