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. |
… | |
… | |
132 | int command_version (object *op, char *params); |
132 | int command_version (object *op, char *params); |
133 | void bug_report (const char *reportstring); |
133 | void bug_report (const char *reportstring); |
134 | int command_statistics (object *pl, char *params); |
134 | int command_statistics (object *pl, char *params); |
135 | int command_fix_me (object *op, char *params); |
135 | int command_fix_me (object *op, char *params); |
136 | int command_players (object *op, char *paramss); |
136 | int command_players (object *op, char *paramss); |
137 | int command_logs (object *op, char *params); |
|
|
138 | int command_bowmode (object *op, char *params); |
137 | int command_bowmode (object *op, char *params); |
139 | int command_showpets (object *op, char *params); |
138 | int command_showpets (object *op, char *params); |
140 | int command_resistances (object *op, char *params); |
139 | int command_resistances (object *op, char *params); |
141 | int command_help (object *op, char *params); |
140 | int command_help (object *op, char *params); |
142 | int onoff_value (const char *line); |
141 | int onoff_value (const char *line); |
… | |
… | |
175 | 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); |
176 | void pick_up (object *op, object *alt); |
175 | void pick_up (object *op, object *alt); |
177 | int command_take (object *op, char *params); |
176 | int command_take (object *op, char *params); |
178 | 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); |
179 | void drop_object (object *op, object *tmp, uint32 nrof); |
178 | void drop_object (object *op, object *tmp, uint32 nrof); |
180 | void update_after_inventory_change (object *op); |
|
|
181 | void drop (object *op, object *tmp); |
179 | void drop (object *op, object *tmp); |
182 | int command_dropall (object *op, char *params); |
180 | int command_dropall (object *op, char *params); |
183 | int command_drop (object *op, char *params); |
181 | int command_drop (object *op, char *params); |
184 | int command_examine (object *op, char *params); |
182 | int command_examine (object *op, char *params); |
185 | object *find_marked_object (object *op); |
183 | object *find_marked_object (object *op); |
… | |
… | |
196 | void remove_party (partylist *target_party); |
194 | void remove_party (partylist *target_party); |
197 | void obsolete_parties (void); |
195 | void obsolete_parties (void); |
198 | 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); |
199 | int confirm_party_password (object *op); |
197 | int confirm_party_password (object *op); |
200 | void receive_party_password (object *op, char k); |
198 | void receive_party_password (object *op, char k); |
201 | void send_party_message (object *op, char *msg); |
199 | void send_party_message (object *op, const char *msg); |
202 | int command_gsay (object *op, char *params); |
200 | int command_gsay (object *op, char *params); |
203 | int command_party (object *op, char *params); |
201 | int command_party (object *op, char *params); |
204 | |
202 | |
205 | /* c_range.c */ |
203 | /* c_range.c */ |
206 | int command_invoke (object *op, char *params); |
204 | int command_invoke (object *op, char *params); |
… | |
… | |
300 | int get_god (object *priest); |
298 | int get_god (object *priest); |
301 | const char *get_god_for_race (const char *race); |
299 | const char *get_god_for_race (const char *race); |
302 | int tailor_god_spell (object *spellop, object *caster); |
300 | int tailor_god_spell (object *spellop, object *caster); |
303 | |
301 | |
304 | /* init.c */ |
302 | /* init.c */ |
305 | void set_logfile (char *val); |
303 | void load_settings (void); |
306 | void call_version (void); |
304 | void load_materials (void); |
307 | void showscores (void); |
|
|
308 | void set_debug (void); |
|
|
309 | void unset_debug (void); |
|
|
310 | void set_mondebug (void); |
|
|
311 | void set_dumpmon1 (void); |
|
|
312 | void set_dumpmon2 (void); |
|
|
313 | void set_dumpmon3 (void); |
|
|
314 | void set_dumpmon4 (void); |
|
|
315 | void set_dumpmon5 (void); |
|
|
316 | void set_dumpmon6 (void); |
|
|
317 | void set_dumpmon7 (void); |
|
|
318 | void set_dumpmon8 (void); |
|
|
319 | void set_dumpmon9 (void); |
|
|
320 | void set_dumpmont (char *name); |
|
|
321 | void set_daemon (void); |
|
|
322 | void set_datadir (char *path); |
|
|
323 | void set_confdir (char *path); |
|
|
324 | void set_localdir (char *path); |
|
|
325 | void set_mapdir (char *path); |
|
|
326 | void set_archetypes (char *path); |
|
|
327 | void set_regions (char *path); |
|
|
328 | void set_treasures (char *path); |
|
|
329 | void set_uniquedir (char *path); |
|
|
330 | void set_templatedir (char *path); |
|
|
331 | void set_playerdir (char *path); |
|
|
332 | void set_tmpdir (char *path); |
|
|
333 | void showscoresparm (char *data); |
|
|
334 | void set_csport (char *val); |
|
|
335 | void init (int argc, char **argv); |
305 | void init (int argc, char **argv); |
336 | void usage (void); |
306 | void usage (void); |
337 | void help (void); |
307 | void help (void); |
338 | void init_beforeplay (void); |
308 | void init_beforeplay (void); |
339 | void init_signals (void); |
309 | void init_signals (void); |
… | |
… | |
470 | object *find_key (object *pl, object *container, object *door); |
440 | object *find_key (object *pl, object *container, object *door); |
471 | bool move_player_attack (object *op, int dir); |
441 | bool move_player_attack (object *op, int dir); |
472 | bool move_player (object *op, int dir); |
442 | bool move_player (object *op, int dir); |
473 | bool handle_newcs_player (object *op); |
443 | bool handle_newcs_player (object *op); |
474 | int save_life (object *op); |
444 | int save_life (object *op); |
475 | char *gravestone_text (object *op); |
445 | const char *gravestone_text (object *op); |
476 | void do_some_living (object *op); |
446 | void do_some_living (object *op); |
477 | void kill_player (object *op); |
447 | void kill_player (object *op); |
478 | void loot_object (object *op); |
448 | void loot_object (object *op); |
479 | void fix_weight (void); |
449 | void fix_weight (void); |
480 | void fix_luck (void); |
450 | void fix_luck (void); |
… | |
… | |
514 | const char *query_cost_string (const object *tmp, object *who, int flag); |
484 | const char *query_cost_string (const object *tmp, object *who, int flag); |
515 | sint64 query_money (const object *op); |
485 | sint64 query_money (const object *op); |
516 | int pay_for_amount (sint64 to_pay, object *pl); |
486 | int pay_for_amount (sint64 to_pay, object *pl); |
517 | int pay_for_item (object *op, object *pl); |
487 | int pay_for_item (object *op, object *pl); |
518 | int can_pay (object *pl); |
488 | int can_pay (object *pl); |
519 | void sell_item (object *op, object *pl); |
489 | bool sell_item (object *op, object *pl); |
520 | double shopkeeper_approval (const maptile *map, const object *player); |
490 | double shopkeeper_approval (const maptile *map, const object *player); |
521 | int describe_shop (const object *op); |
491 | int describe_shop (const object *op); |
522 | void shop_listing (object *sign, object *op); |
492 | void shop_listing (object *sign, object *op); |
523 | bool is_in_shop (object *o); |
493 | bool is_in_shop (object *o); |
524 | bool is_in_shop (maptile *map, int x, int y); |
494 | bool is_in_shop (maptile *map, int x, int y); |