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 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010 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. |
… | |
… | |
54 | int convert_item (object *item, object *converter); |
54 | int convert_item (object *item, object *converter); |
55 | |
55 | |
56 | /* attack.c */ |
56 | /* attack.c */ |
57 | void cancellation (object *op); |
57 | void cancellation (object *op); |
58 | void save_throw_object (object *op, int type, object *originator); |
58 | void save_throw_object (object *op, int type, object *originator); |
59 | int hit_map (object *op, int dir, int type, int full_hit); |
59 | int hit_map (object *op, int dir, uint32_t type, int full_hit); |
60 | int attack_ob (object *op, object *hitter); |
60 | int attack_ob (object *op, object *hitter); |
61 | object *hit_with_arrow (object *op, object *victim); |
61 | object *hit_with_arrow (object *op, object *victim); |
62 | int hit_player_attacktype (object *op, object *hitter, int dam, uint32 attacknum, int magic); |
62 | int hit_player_attacktype (object *op, object *hitter, int dam, uint32_t attacknum, int magic); |
63 | int kill_object (object *op, int dam, object *hitter, int type); |
63 | int kill_object (object *op, int dam, object *hitter, int type); |
64 | int friendly_fire (object *op, object *hitter); |
64 | int friendly_fire (object *op, object *hitter); |
65 | int hit_player (object *op, int dam, object *hitter, int type, int full_hit); |
65 | int hit_player (object *op, int dam, object *hitter, uint32_t type, int full_hit); |
66 | void confuse_player (object *op, object *hitter, int dam); |
66 | void confuse_player (object *op, object *hitter, int dam); |
67 | void blind_player (object *op, object *hitter, int dam); |
67 | void blind_player (object *op, object *hitter, int dam); |
68 | void paralyze_player (object *op, object *hitter, int dam); |
68 | void paralyze_player (object *op, object *hitter, int dam); |
69 | |
69 | |
70 | /* build_map.c */ |
70 | /* build_map.c */ |
… | |
… | |
145 | void examine (object *op, object *tmp); |
145 | void examine (object *op, object *tmp); |
146 | int command_pickup (object *op, char *params); |
146 | int command_pickup (object *op, char *params); |
147 | void set_pickup_mode (object *op, int i); |
147 | void set_pickup_mode (object *op, int i); |
148 | int command_search_items (object *op, char *params); |
148 | int command_search_items (object *op, char *params); |
149 | int command_rename_item (object *op, char *params); |
149 | int command_rename_item (object *op, char *params); |
|
|
150 | int command_unlock (object *op, char *params); |
|
|
151 | int command_lock (object *op, char *params); |
150 | |
152 | |
151 | /* c_party.c */ |
153 | /* c_party.c */ |
152 | partylist *get_firstparty (void); |
154 | partylist *get_firstparty (); |
153 | void obsolete_parties (void); |
155 | void obsolete_parties (); |
154 | void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); |
156 | void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); |
155 | void receive_party_password (object *op, char k); |
157 | void receive_party_password (object *op, char k); |
156 | int command_gsay (object *op, char *params); |
158 | int command_gsay (object *op, char *params); |
157 | int command_party (object *op, char *params); |
159 | int command_party (object *op, char *params); |
158 | |
160 | |
… | |
… | |
199 | int command_stack_clear (object *op, char *params); |
201 | int command_stack_clear (object *op, char *params); |
200 | int command_diff (object *op, char *params); |
202 | int command_diff (object *op, char *params); |
201 | int command_insert_into (object *op, char *params); |
203 | int command_insert_into (object *op, char *params); |
202 | |
204 | |
203 | /* commands.c */ |
205 | /* commands.c */ |
204 | void init_commands (void); |
206 | void init_commands (); |
205 | CommFunc find_oldsocket_command (char *cmd); |
207 | CommFunc find_oldsocket_command (char *cmd); |
206 | CommFunc find_oldsocket_command2 (char *cmd); |
208 | CommFunc find_oldsocket_command2 (char *cmd); |
207 | |
209 | |
208 | /* daemon.c */ |
210 | /* daemon.c */ |
209 | FILE *BecomeDaemon (const char *filename); |
211 | FILE *BecomeDaemon (const char *filename); |
… | |
… | |
228 | void become_follower (object *op, object *new_god); |
230 | void become_follower (object *op, object *new_god); |
229 | archetype *determine_holy_arch (object *god, shstr_cmp type); |
231 | archetype *determine_holy_arch (object *god, shstr_cmp type); |
230 | int tailor_god_spell (object *spellop, object *caster); |
232 | int tailor_god_spell (object *spellop, object *caster); |
231 | |
233 | |
232 | /* init.c */ |
234 | /* init.c */ |
233 | void load_settings (void); |
235 | void load_settings (); |
234 | void init (int argc, char **argv); |
236 | void init (int argc, char **argv); |
235 | void usage (void); |
237 | void usage (); |
236 | void help (void); |
238 | void help (); |
237 | void init_beforeplay (void); |
239 | void init_beforeplay (); |
238 | void init_signals (void); |
240 | void init_signals (); |
239 | racelink *find_racelink (const char *name); |
241 | racelink *find_racelink (const char *name); |
240 | |
242 | |
241 | /* login.c */ |
243 | /* login.c */ |
242 | void delete_character (const char *name); |
244 | void delete_character (const char *name); |
243 | int verify_player (const char *name, char *password); |
245 | int verify_player (const char *name, char *password); |
… | |
… | |
253 | void enter_player_savebed (object *op); |
255 | void enter_player_savebed (object *op); |
254 | void leave_map (object *op); |
256 | void leave_map (object *op); |
255 | char *clean_path (const char *file); |
257 | char *clean_path (const char *file); |
256 | char *unclean_path (const char *src); |
258 | char *unclean_path (const char *src); |
257 | void enter_exit (object *op, object *exit_ob); |
259 | void enter_exit (object *op, object *exit_ob); |
258 | void clean_tmp_files (void); |
260 | void clean_tmp_files (); |
259 | void leave (player *pl,int draw_exit); |
261 | void leave (player *pl,int draw_exit); |
260 | int main (int argc, char **argv); |
262 | int main (int argc, char **argv); |
261 | |
263 | |
262 | /* monster.c */ |
264 | /* monster.c */ |
263 | object *check_enemy (object *npc, rv_vector *rv); |
265 | object *check_enemy (object *npc, rv_vector *rv); |
… | |
… | |
274 | int can_detect_enemy (object *op, object *enemy, rv_vector *rv); |
276 | int can_detect_enemy (object *op, object *enemy, rv_vector *rv); |
275 | int stand_in_light (object *op); |
277 | int stand_in_light (object *op); |
276 | int can_see_enemy (object *op, object *enemy); |
278 | int can_see_enemy (object *op, object *enemy); |
277 | |
279 | |
278 | /* move.c */ |
280 | /* move.c */ |
279 | int move_object (object *op, int dir); |
|
|
280 | int move_ob (object *op, int dir, object *originator); |
|
|
281 | int transfer_ob (object *op, int x, int y, int randomly, object *originator); |
281 | int transfer_ob (object *op, int x, int y, int randomly, object *originator); |
282 | int teleport (object *teleporter, uint8 tele_type, object *user); |
282 | int teleport (object *teleporter, uint8 tele_type, object *user); |
283 | void recursive_roll (object *op, int dir, object *pusher); |
283 | void recursive_roll (object *op, int dir, object *pusher); |
284 | int push_ob (object *who, int dir, object *pusher); |
284 | int push_ob (object *who, int dir, object *pusher); |
285 | |
285 | |
… | |
… | |
320 | bool move_player_attack (object *op, int dir); |
320 | bool move_player_attack (object *op, int dir); |
321 | bool move_player (object *op, int dir); |
321 | bool move_player (object *op, int dir); |
322 | bool handle_newcs_player (object *op); |
322 | bool handle_newcs_player (object *op); |
323 | void do_some_living (object *op); |
323 | void do_some_living (object *op); |
324 | void kill_player (object *op); |
324 | void kill_player (object *op); |
325 | void fix_weight (void); |
325 | void fix_weight (); |
326 | void fix_luck (void); |
326 | void fix_luck (); |
327 | void cast_dust (object *op, object *throw_ob, int dir); |
327 | void cast_dust (object *op, object *throw_ob, int dir); |
328 | void make_visible (object *op); |
328 | void make_visible (object *op); |
329 | int is_true_undead (object *op); |
329 | int is_true_undead (object *op); |
330 | int hideability (object *ob); |
330 | int hideability (object *ob); |
331 | void do_hidden_move (object *op); |
331 | void do_hidden_move (object *op); |
332 | int stand_near_hostile (object *who); |
332 | int stand_near_hostile (object *who); |
333 | int player_can_view (object *pl, object *op); |
333 | int player_can_view (object *pl, object *op); |
334 | int op_on_battleground (object *op, int *x, int *y); |
334 | int op_on_battleground (object *op, int *x, int *y); |
335 | void dragon_ability_gain (object *who, int atnr, int level); |
335 | void dragon_ability_gain (object *who, int atnr, int level); |
336 | void player_unready_range_ob (player *pl, object *ob); |
|
|
337 | |
336 | |
338 | /* resurrection.c */ |
337 | /* resurrection.c */ |
339 | int cast_raise_dead_spell (object *op, object *caster, object *spell, int dir, const char *arg); |
338 | int cast_raise_dead_spell (object *op, object *caster, object *spell, int dir, const char *arg); |
340 | |
339 | |
341 | /* rune.c */ |
340 | /* rune.c */ |
… | |
… | |
377 | void meditate (object *pl, object *skill); |
376 | void meditate (object *pl, object *skill); |
378 | int write_on_item (object *pl, const char *params, object *skill); |
377 | int write_on_item (object *pl, const char *params, object *skill); |
379 | int skill_throw (object *op, object *part, int dir, const char *params, object *skill); |
378 | int skill_throw (object *op, object *part, int dir, const char *params, object *skill); |
380 | |
379 | |
381 | /* skill_util.c */ |
380 | /* skill_util.c */ |
382 | void init_skills (void); |
381 | void init_skills (); |
383 | void link_player_skills (object *op); |
382 | void link_player_skills (object *op); |
384 | int do_skill (object *op, object *part, object *skill, int dir, const char *string); |
383 | int do_skill (object *op, object *part, object *skill, int dir, const char *string); |
385 | int calc_skill_exp (object *who, object *op, object *skill); |
384 | int calc_skill_exp (object *who, object *op, object *skill); |
386 | int learn_skill (object *pl, object *scroll); |
385 | int learn_skill (object *pl, object *scroll); |
387 | void show_skills (object *op, const char *search); |
386 | void show_skills (object *op, const char *search); |
… | |
… | |
479 | /* swamp.c */ |
478 | /* swamp.c */ |
480 | void walk_on_deep_swamp (object *op, object *victim); |
479 | void walk_on_deep_swamp (object *op, object *victim); |
481 | void move_deep_swamp (object *op); |
480 | void move_deep_swamp (object *op); |
482 | |
481 | |
483 | /* swap.c */ |
482 | /* swap.c */ |
484 | void read_map_log (void); |
483 | void read_map_log (); |
485 | void swap_map (maptile *map); |
484 | void swap_map (maptile *map); |
486 | void check_active_maps (void); |
485 | void check_active_maps (); |
487 | maptile *map_least_timeout (char *except_level); |
486 | maptile *map_least_timeout (char *except_level); |
488 | void swap_below_max (char *except_level); |
487 | void swap_below_max (char *except_level); |
489 | int players_on_map (maptile *m, int show_all); |
488 | int players_on_map (maptile *m, int show_all); |
490 | void flush_old_maps (void); |
489 | void flush_old_maps (); |
491 | |
490 | |
492 | /* time.c */ |
491 | /* time.c */ |
493 | void remove_door (object *op); |
492 | void remove_door (object *op); |
494 | void remove_door2 (object *op); |
493 | void remove_door2 (object *op); |
495 | void animate_trigger (object *op); |
494 | void animate_trigger (object *op); |
… | |
… | |
503 | void move_creator (object *creator); |
502 | void move_creator (object *creator); |
504 | void move_marker (object *op); |
503 | void move_marker (object *op); |
505 | void process_object (object *op); |
504 | void process_object (object *op); |
506 | |
505 | |
507 | /* weather.c */ |
506 | /* weather.c */ |
508 | void adjust_daylight (void); |
507 | void adjust_daylight (); |