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.123 by root, Tue Apr 6 03:53:29 2010 UTC vs.
Revision 1.134 by root, Mon Oct 29 23:55:54 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);
138void drop_object (object *dropper, object *obj); 137void drop_object (object *dropper, object *obj);
139void drop (object *op, object *tmp); 138void drop (object *op, object *tmp);
140int command_dropall (object *op, char *params); 139int command_dropall (object *op, char *params);
141int command_drop (object *op, char *params); 140int command_drop (object *op, char *params);
142int command_examine (object *op, char *params); 141int command_examine (object *op, char *params);
143object *find_marked_object (object *op);
144void examine_monster (object *op, object *tmp); 142void examine_monster (object *op, object *tmp);
145const char *long_desc (object *tmp, object *pl); 143const char *long_desc (object *tmp, object *pl);
146void examine (object *op, object *tmp); 144void examine (object *op, object *tmp);
147int command_pickup (object *op, char *params); 145int command_pickup (object *op, char *params);
148void set_pickup_mode (object *op, int i); 146void set_pickup_mode (object *op, int i);
202int command_stack_list (object *op, char *params); 200int command_stack_list (object *op, char *params);
203int command_stack_clear (object *op, char *params); 201int command_stack_clear (object *op, char *params);
204int command_diff (object *op, char *params); 202int command_diff (object *op, char *params);
205int command_insert_into (object *op, char *params); 203int command_insert_into (object *op, char *params);
206 204
207/* commands.c */
208void init_commands ();
209CommFunc find_oldsocket_command (char *cmd);
210CommFunc find_oldsocket_command2 (char *cmd);
211
212/* daemon.c */ 205/* daemon.c */
213FILE *BecomeDaemon (const char *filename); 206FILE *BecomeDaemon (const char *filename);
214 207
215/* disease.c */ 208/* disease.c */
216int move_disease (object *disease); 209int move_disease (object *disease);
219int check_physically_infect (object *victim, object *hitter); 212int check_physically_infect (object *victim, object *hitter);
220int cure_disease (object *sufferer, object *caster, object *spell); 213int cure_disease (object *sufferer, object *caster, object *spell);
221 214
222/* egoitem.c */ 215/* egoitem.c */
223int apply_power_crystal (object *op, object *crystal); 216int apply_power_crystal (object *op, object *crystal);
224
225/* hiscore.c */
226void check_score (object *op);
227 217
228/* gods.c */ 218/* gods.c */
229object *find_god (shstr_cmp name); 219object *find_god (shstr_cmp name);
230shstr_tmp determine_god (object *op); 220shstr_tmp determine_god (object *op);
231void pray_at_altar (object *pl, object *altar, object *skill); 221void pray_at_altar (object *pl, object *altar, object *skill);
248int check_name (player *me, const char *name); 238int check_name (player *me, const char *name);
249int create_savedir_if_needed (char *savedir); 239int create_savedir_if_needed (char *savedir);
250void copy_file (const char *filename, FILE *fpout); 240void copy_file (const char *filename, FILE *fpout);
251 241
252/* main.c */ 242/* main.c */
253void server_tick (); 243void one_tick ();
254void version (object *op); 244void version (object *op);
255void info_keys (object *op); 245void info_keys (object *op);
256char *crypt_string (char *str, char *salt); 246char *crypt_string (char *str, char *salt);
257void enter_player_savebed (object *op); 247void enter_player_savebed (object *op);
258void leave_map (object *op); 248void leave_map (object *op);
286int push_ob (object *who, int dir, object *pusher); 276int push_ob (object *who, int dir, object *pusher);
287 277
288/* pets.c */ 278/* pets.c */
289object *get_pet_enemy (object *pet, rv_vector *rv); 279object *get_pet_enemy (object *pet, rv_vector *rv);
290void terminate_all_pets (object *owner); 280void terminate_all_pets (object *owner);
291void remove_all_pets (maptile *map); 281void move_all_pets ();
292int follow_owner (object *ob, object *owner); 282int follow_owner (object *ob, object *owner);
293void pet_move (object *ob); 283void pet_move (object *ob);
294void move_golem (object *op); 284void move_golem (object *op);
295void control_golem (object *op, int dir); 285void control_golem (object *op, int dir);
296int summon_golem (object *op, object *caster, int dir, object *spob); 286int summon_golem (object *op, object *caster, int dir, object *spob);
497void move_marker (object *op); 487void move_marker (object *op);
498void process_object (object *op); 488void process_object (object *op);
499 489
500/* weather.c */ 490/* weather.c */
501void adjust_daylight (); 491void adjust_daylight ();
492

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines