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.122 by root, Mon Apr 5 23:05:45 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);
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);
42void player_apply_below (object *pl); 41void player_apply_below (object *pl);
43int can_apply_object (object *who, object *op); 42int can_apply_object (object *who, object *op);
44int apply_special (object *who, object *op, int aflags);
45int auto_apply (object *op); 43int auto_apply (object *op);
46void fix_auto_apply (maptile *m); 44void fix_auto_apply (maptile *m);
47void eat_special_food (object *who, object *food); 45void eat_special_food (object *who, object *food);
48void apply_changes_to_player (object *pl, object *change); 46void apply_changes_to_player (object *pl, object *change);
49void handle_apply_yield (object *op); 47void handle_apply_yield (object *op);
139void drop_object (object *dropper, object *obj); 137void drop_object (object *dropper, object *obj);
140void drop (object *op, object *tmp); 138void drop (object *op, object *tmp);
141int command_dropall (object *op, char *params); 139int command_dropall (object *op, char *params);
142int command_drop (object *op, char *params); 140int command_drop (object *op, char *params);
143int command_examine (object *op, char *params); 141int command_examine (object *op, char *params);
144object *find_marked_object (object *op);
145void examine_monster (object *op, object *tmp); 142void examine_monster (object *op, object *tmp);
146const char *long_desc (object *tmp, object *pl); 143const char *long_desc (object *tmp, object *pl);
147void examine (object *op, object *tmp); 144void examine (object *op, object *tmp);
148int command_pickup (object *op, char *params); 145int command_pickup (object *op, char *params);
149void set_pickup_mode (object *op, int i); 146void set_pickup_mode (object *op, int i);
203int command_stack_list (object *op, char *params); 200int command_stack_list (object *op, char *params);
204int command_stack_clear (object *op, char *params); 201int command_stack_clear (object *op, char *params);
205int command_diff (object *op, char *params); 202int command_diff (object *op, char *params);
206int command_insert_into (object *op, char *params); 203int command_insert_into (object *op, char *params);
207 204
208/* commands.c */
209void init_commands ();
210CommFunc find_oldsocket_command (char *cmd);
211CommFunc find_oldsocket_command2 (char *cmd);
212
213/* daemon.c */ 205/* daemon.c */
214FILE *BecomeDaemon (const char *filename); 206FILE *BecomeDaemon (const char *filename);
215 207
216/* disease.c */ 208/* disease.c */
217int move_disease (object *disease); 209int move_disease (object *disease);
220int check_physically_infect (object *victim, object *hitter); 212int check_physically_infect (object *victim, object *hitter);
221int cure_disease (object *sufferer, object *caster, object *spell); 213int cure_disease (object *sufferer, object *caster, object *spell);
222 214
223/* egoitem.c */ 215/* egoitem.c */
224int apply_power_crystal (object *op, object *crystal); 216int apply_power_crystal (object *op, object *crystal);
225
226/* hiscore.c */
227void check_score (object *op);
228 217
229/* gods.c */ 218/* gods.c */
230object *find_god (shstr_cmp name); 219object *find_god (shstr_cmp name);
231shstr_tmp determine_god (object *op); 220shstr_tmp determine_god (object *op);
232void pray_at_altar (object *pl, object *altar, object *skill); 221void pray_at_altar (object *pl, object *altar, object *skill);
249int check_name (player *me, const char *name); 238int check_name (player *me, const char *name);
250int create_savedir_if_needed (char *savedir); 239int create_savedir_if_needed (char *savedir);
251void copy_file (const char *filename, FILE *fpout); 240void copy_file (const char *filename, FILE *fpout);
252 241
253/* main.c */ 242/* main.c */
254void server_tick (); 243void one_tick ();
255void version (object *op); 244void version (object *op);
256void info_keys (object *op); 245void info_keys (object *op);
257char *crypt_string (char *str, char *salt); 246char *crypt_string (char *str, char *salt);
258void enter_player_savebed (object *op); 247void enter_player_savebed (object *op);
259void leave_map (object *op); 248void leave_map (object *op);
287int push_ob (object *who, int dir, object *pusher); 276int push_ob (object *who, int dir, object *pusher);
288 277
289/* pets.c */ 278/* pets.c */
290object *get_pet_enemy (object *pet, rv_vector *rv); 279object *get_pet_enemy (object *pet, rv_vector *rv);
291void terminate_all_pets (object *owner); 280void terminate_all_pets (object *owner);
292void remove_all_pets (maptile *map); 281void move_all_pets ();
293int follow_owner (object *ob, object *owner); 282int follow_owner (object *ob, object *owner);
294void pet_move (object *ob); 283void pet_move (object *ob);
295void move_golem (object *op); 284void move_golem (object *op);
296void control_golem (object *op, int dir); 285void control_golem (object *op, int dir);
297int summon_golem (object *op, object *caster, int dir, object *spob); 286int summon_golem (object *op, object *caster, int dir, object *spob);
453void set_spell_skill (object *op, object *caster, object *spob, object *dest); 442void set_spell_skill (object *op, object *caster, object *spob, object *dest);
454void 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);
455object *check_spell_known (object *op, shstr_cmp name); 444object *check_spell_known (object *op, shstr_cmp name);
456object *lookup_spell_by_name (object *op, const char *spname); 445object *lookup_spell_by_name (object *op, const char *spname);
457int reflwall (maptile *m, int x, int y, object *sp_op); 446int reflwall (maptile *m, int x, int y, object *sp_op);
458int 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);
459int 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);
460int 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);
461void regenerate_rod (object *rod); 450void regenerate_rod (object *rod);
462void drain_rod_charge (object *rod); 451void drain_rod_charge (object *rod);
463object *find_target_for_friendly_spell (object *op, int dir); 452object *find_target_for_friendly_spell (object *op, int dir);
498void move_marker (object *op); 487void move_marker (object *op);
499void process_object (object *op); 488void process_object (object *op);
500 489
501/* weather.c */ 490/* weather.c */
502void adjust_daylight (); 491void adjust_daylight ();
492

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines