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 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * |
5 | * |
6 | * Deliantra is free software: you can redistribute it and/or modify |
6 | * Deliantra is free software: you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by |
7 | * it under the terms of the GNU General Public License as published by |
8 | * the Free Software Foundation, either version 3 of the License, or |
8 | * the Free Software Foundation, either version 3 of the License, or |
9 | * (at your option) any later version. |
9 | * (at your option) any later version. |
… | |
… | |
43 | int apply_potion (object *op, object *tmp); |
43 | int apply_potion (object *op, object *tmp); |
44 | int prepare_weapon (object *op, object *improver, object *weapon); |
44 | int prepare_weapon (object *op, object *improver, object *weapon); |
45 | int improve_weapon (object *op, object *improver, object *weapon); |
45 | int improve_weapon (object *op, object *improver, object *weapon); |
46 | int check_improve_weapon (object *op, object *tmp); |
46 | int check_improve_weapon (object *op, object *tmp); |
47 | int improve_armour (object *op, object *improver, object *armour); |
47 | int improve_armour (object *op, object *improver, object *armour); |
48 | int convert_item (object *item, object *converter); |
|
|
49 | int apply_container (object *op, object *sack); |
48 | int apply_container (object *op, object *sack); |
50 | int esrv_apply_container (object *op, object *sack); |
49 | int esrv_apply_container (object *op, object *sack); |
51 | void move_apply (object *trap, object *victim, object *originator); |
50 | void move_apply (object *trap, object *victim, object *originator); |
52 | void do_learn_spell (object *op, object *spell, int special_prayer); |
51 | void do_learn_spell (object *op, object *spell, int special_prayer); |
53 | void do_forget_spell (object *op, const char *spell); |
52 | void do_forget_spell (object *op, const char *spell); |
… | |
… | |
133 | int command_version (object *op, char *params); |
132 | int command_version (object *op, char *params); |
134 | void bug_report (const char *reportstring); |
133 | void bug_report (const char *reportstring); |
135 | int command_statistics (object *pl, char *params); |
134 | int command_statistics (object *pl, char *params); |
136 | int command_fix_me (object *op, char *params); |
135 | int command_fix_me (object *op, char *params); |
137 | int command_players (object *op, char *paramss); |
136 | int command_players (object *op, char *paramss); |
138 | int command_logs (object *op, char *params); |
|
|
139 | int command_bowmode (object *op, char *params); |
137 | int command_bowmode (object *op, char *params); |
140 | int command_showpets (object *op, char *params); |
138 | int command_showpets (object *op, char *params); |
141 | int command_resistances (object *op, char *params); |
139 | int command_resistances (object *op, char *params); |
142 | int command_help (object *op, char *params); |
140 | int command_help (object *op, char *params); |
143 | int onoff_value (const char *line); |
141 | int onoff_value (const char *line); |
… | |
… | |
176 | int sack_can_hold (object *pl, object *sack, object *op, uint32 nrof); |
174 | int sack_can_hold (object *pl, object *sack, object *op, uint32 nrof); |
177 | void pick_up (object *op, object *alt); |
175 | void pick_up (object *op, object *alt); |
178 | int command_take (object *op, char *params); |
176 | int command_take (object *op, char *params); |
179 | void put_object_in_sack (object *op, object *sack, object *tmp, uint32 nrof); |
177 | void put_object_in_sack (object *op, object *sack, object *tmp, uint32 nrof); |
180 | void drop_object (object *op, object *tmp, uint32 nrof); |
178 | void drop_object (object *op, object *tmp, uint32 nrof); |
181 | void update_after_inventory_change (object *op); |
|
|
182 | void drop (object *op, object *tmp); |
179 | void drop (object *op, object *tmp); |
183 | int command_dropall (object *op, char *params); |
180 | int command_dropall (object *op, char *params); |
184 | int command_drop (object *op, char *params); |
181 | int command_drop (object *op, char *params); |
185 | int command_examine (object *op, char *params); |
182 | int command_examine (object *op, char *params); |
186 | object *find_marked_object (object *op); |
183 | object *find_marked_object (object *op); |
… | |
… | |
197 | void remove_party (partylist *target_party); |
194 | void remove_party (partylist *target_party); |
198 | void obsolete_parties (void); |
195 | void obsolete_parties (void); |
199 | void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); |
196 | void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); |
200 | int confirm_party_password (object *op); |
197 | int confirm_party_password (object *op); |
201 | void receive_party_password (object *op, char k); |
198 | void receive_party_password (object *op, char k); |
202 | void send_party_message (object *op, char *msg); |
199 | void send_party_message (object *op, const char *msg); |
203 | int command_gsay (object *op, char *params); |
200 | int command_gsay (object *op, char *params); |
204 | int command_party (object *op, char *params); |
201 | int command_party (object *op, char *params); |
205 | |
202 | |
206 | /* c_range.c */ |
203 | /* c_range.c */ |
207 | int command_invoke (object *op, char *params); |
204 | int command_invoke (object *op, char *params); |
… | |
… | |
347 | /* login.c */ |
344 | /* login.c */ |
348 | void delete_character (const char *name); |
345 | void delete_character (const char *name); |
349 | int verify_player (const char *name, char *password); |
346 | int verify_player (const char *name, char *password); |
350 | int check_name (player *me, const char *name); |
347 | int check_name (player *me, const char *name); |
351 | int create_savedir_if_needed (char *savedir); |
348 | int create_savedir_if_needed (char *savedir); |
352 | void destroy_object (object *op); |
|
|
353 | void copy_file (const char *filename, FILE *fpout); |
349 | void copy_file (const char *filename, FILE *fpout); |
354 | |
350 | |
355 | /* main.c */ |
351 | /* main.c */ |
356 | void server_tick (); |
352 | void server_tick (); |
357 | void version (object *op); |
353 | void version (object *op); |
… | |
… | |
472 | object *find_key (object *pl, object *container, object *door); |
468 | object *find_key (object *pl, object *container, object *door); |
473 | bool move_player_attack (object *op, int dir); |
469 | bool move_player_attack (object *op, int dir); |
474 | bool move_player (object *op, int dir); |
470 | bool move_player (object *op, int dir); |
475 | bool handle_newcs_player (object *op); |
471 | bool handle_newcs_player (object *op); |
476 | int save_life (object *op); |
472 | int save_life (object *op); |
477 | char *gravestone_text (object *op); |
473 | const char *gravestone_text (object *op); |
478 | void do_some_living (object *op); |
474 | void do_some_living (object *op); |
479 | void kill_player (object *op); |
475 | void kill_player (object *op); |
480 | void loot_object (object *op); |
476 | void loot_object (object *op); |
481 | void fix_weight (void); |
477 | void fix_weight (void); |
482 | void fix_luck (void); |
478 | void fix_luck (void); |
… | |
… | |
516 | const char *query_cost_string (const object *tmp, object *who, int flag); |
512 | const char *query_cost_string (const object *tmp, object *who, int flag); |
517 | sint64 query_money (const object *op); |
513 | sint64 query_money (const object *op); |
518 | int pay_for_amount (sint64 to_pay, object *pl); |
514 | int pay_for_amount (sint64 to_pay, object *pl); |
519 | int pay_for_item (object *op, object *pl); |
515 | int pay_for_item (object *op, object *pl); |
520 | int can_pay (object *pl); |
516 | int can_pay (object *pl); |
521 | void sell_item (object *op, object *pl); |
517 | bool sell_item (object *op, object *pl); |
522 | double shopkeeper_approval (const maptile *map, const object *player); |
518 | double shopkeeper_approval (const maptile *map, const object *player); |
523 | int describe_shop (const object *op); |
519 | int describe_shop (const object *op); |
524 | void shop_listing (object *sign, object *op); |
520 | void shop_listing (object *sign, object *op); |
525 | bool is_in_shop (object *o); |
521 | bool is_in_shop (object *o); |
526 | bool is_in_shop (maptile *map, int x, int y); |
522 | bool is_in_shop (maptile *map, int x, int y); |
… | |
… | |
617 | int write_mark (object *op, object *spell, const char *msg); |
613 | int write_mark (object *op, object *spell, const char *msg); |
618 | |
614 | |
619 | /* spell_util.c */ |
615 | /* spell_util.c */ |
620 | object *find_random_spell_in_ob (object *ob, const char *skill); |
616 | object *find_random_spell_in_ob (object *ob, const char *skill); |
621 | void set_spell_skill (object *op, object *caster, object *spob, object *dest); |
617 | void set_spell_skill (object *op, object *caster, object *spob, object *dest); |
622 | void init_spells (void); |
|
|
623 | void dump_spells (void); |
|
|
624 | void spell_effect (object *spob, int x, int y, maptile *map, object *originator); |
618 | void spell_effect (object *spob, int x, int y, maptile *map, object *originator); |
625 | int min_casting_level (object *caster, object *spell); |
619 | int min_casting_level (object *caster, object *spell); |
626 | int caster_level (object *caster, object *spell); |
620 | int caster_level (object *caster, object *spell); |
627 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
621 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
628 | int SP_level_dam_adjust (object *caster, object *spob); |
622 | int SP_level_dam_adjust (object *caster, object *spob); |