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.121 by root, Mon Apr 5 03:22:25 2010 UTC vs.
Revision 1.135 by root, Mon Nov 12 03:48:34 2012 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,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * 5 *
6 * Deliantra is free software: you can redistribute it and/or modify it under 6 * Deliantra is free software: you can redistribute it and/or modify it under
7 * the terms of the Affero GNU General Public License as published by the 7 * the terms of the Affero GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your 8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version. 9 * option) any later version.
10 * 10 *
11 * This program is distributed in the hope that it will be useful, 11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details. 14 * GNU General Public License for more details.
15 * 15 *
16 * You should have received a copy of the Affero GNU General Public License 16 * You should have received a copy of the Affero GNU General Public License
17 * and the GNU General Public License along with this program. If not, see 17 * and the GNU General Public License along with this program. If not, see
18 * <http://www.gnu.org/licenses/>. 18 * <http://www.gnu.org/licenses/>.
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);
140void drop_object (object *dropper, object *obj); 137void drop_object (object *dropper, object *obj);
141void drop (object *op, object *tmp); 138void drop (object *op, object *tmp);
142int command_dropall (object *op, char *params); 139int command_dropall (object *op, char *params);
143int command_drop (object *op, char *params); 140int command_drop (object *op, char *params);
144int command_examine (object *op, char *params); 141int command_examine (object *op, char *params);
145object *find_marked_object (object *op);
146void examine_monster (object *op, object *tmp); 142void examine_monster (object *op, object *tmp);
147const char *long_desc (object *tmp, object *pl); 143const char *long_desc (object *tmp, object *pl);
148void examine (object *op, object *tmp); 144void examine (object *op, object *tmp);
149int command_pickup (object *op, char *params); 145int command_pickup (object *op, char *params);
150void set_pickup_mode (object *op, int i); 146void set_pickup_mode (object *op, int i);
204int command_stack_list (object *op, char *params); 200int command_stack_list (object *op, char *params);
205int command_stack_clear (object *op, char *params); 201int command_stack_clear (object *op, char *params);
206int command_diff (object *op, char *params); 202int command_diff (object *op, char *params);
207int command_insert_into (object *op, char *params); 203int command_insert_into (object *op, char *params);
208 204
209/* commands.c */
210void init_commands ();
211CommFunc find_oldsocket_command (char *cmd);
212CommFunc find_oldsocket_command2 (char *cmd);
213
214/* daemon.c */ 205/* daemon.c */
215FILE *BecomeDaemon (const char *filename); 206FILE *BecomeDaemon (const char *filename);
216 207
217/* disease.c */ 208/* disease.c */
218int move_disease (object *disease); 209int move_disease (object *disease);
221int check_physically_infect (object *victim, object *hitter); 212int check_physically_infect (object *victim, object *hitter);
222int cure_disease (object *sufferer, object *caster, object *spell); 213int cure_disease (object *sufferer, object *caster, object *spell);
223 214
224/* egoitem.c */ 215/* egoitem.c */
225int apply_power_crystal (object *op, object *crystal); 216int apply_power_crystal (object *op, object *crystal);
226
227/* hiscore.c */
228void check_score (object *op);
229 217
230/* gods.c */ 218/* gods.c */
231object *find_god (shstr_cmp name); 219object *find_god (shstr_cmp name);
232shstr_tmp determine_god (object *op); 220shstr_tmp determine_god (object *op);
233void pray_at_altar (object *pl, object *altar, object *skill); 221void pray_at_altar (object *pl, object *altar, object *skill);
250int check_name (player *me, const char *name); 238int check_name (player *me, const char *name);
251int create_savedir_if_needed (char *savedir); 239int create_savedir_if_needed (char *savedir);
252void copy_file (const char *filename, FILE *fpout); 240void copy_file (const char *filename, FILE *fpout);
253 241
254/* main.c */ 242/* main.c */
255void server_tick (); 243void one_tick ();
256void version (object *op); 244void version (object *op);
257void info_keys (object *op); 245void info_keys (object *op);
258char *crypt_string (char *str, char *salt); 246char *crypt_string (char *str, char *salt);
259void enter_player_savebed (object *op); 247void enter_player_savebed (object *op);
260void leave_map (object *op); 248void leave_map (object *op);
288int push_ob (object *who, int dir, object *pusher); 276int push_ob (object *who, int dir, object *pusher);
289 277
290/* pets.c */ 278/* pets.c */
291object *get_pet_enemy (object *pet, rv_vector *rv); 279object *get_pet_enemy (object *pet, rv_vector *rv);
292void terminate_all_pets (object *owner); 280void terminate_all_pets (object *owner);
293void remove_all_pets (maptile *map); 281void move_all_pets ();
294int follow_owner (object *ob, object *owner); 282int follow_owner (object *ob, object *owner);
295void pet_move (object *ob); 283void pet_move (object *ob);
296void move_golem (object *op); 284void move_golem (object *op);
297void control_golem (object *op, int dir); 285void control_golem (object *op, int dir);
298int summon_golem (object *op, object *caster, int dir, object *spob); 286int summon_golem (object *op, object *caster, int dir, object *spob);
454void set_spell_skill (object *op, object *caster, object *spob, object *dest); 442void set_spell_skill (object *op, object *caster, object *spob, object *dest);
455void spell_effect (object *spob, int x, int y, maptile *map, object *originator); 443void spell_effect (object *spob, int x, int y, maptile *map, object *originator);
456object *check_spell_known (object *op, shstr_cmp name); 444object *check_spell_known (object *op, shstr_cmp name);
457object *lookup_spell_by_name (object *op, const char *spname); 445object *lookup_spell_by_name (object *op, const char *spname);
458int reflwall (maptile *m, int x, int y, object *sp_op); 446int reflwall (maptile *m, int x, int y, object *sp_op);
459int cast_create_obj (object *op, object *caster, object *new_op, int dir); 447bool cast_create_obj (object *op, object *caster, object *new_op, int dir);
460int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop); 448int ok_to_put_more (maptile *m, sint16 x, sint16 y, object *op, int immune_stop);
461int fire_arch_from_position (object *op, object *caster, sint16 x, sint16 y, int dir, object *spell); 449int fire_arch_from_position (object *op, object *caster, sint16 x, sint16 y, int dir, object *spell);
462void regenerate_rod (object *rod); 450void regenerate_rod (object *rod);
463void drain_rod_charge (object *rod); 451void drain_rod_charge (object *rod);
464object *find_target_for_friendly_spell (object *op, int dir); 452object *find_target_for_friendly_spell (object *op, int dir);
499void move_marker (object *op); 487void move_marker (object *op);
500void process_object (object *op); 488void process_object (object *op);
501 489
502/* weather.c */ 490/* weather.c */
503void adjust_daylight (); 491void adjust_daylight ();
492

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines