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. |
… | |
… | |
37 | void move_apply (object *trap, object *victim, object *originator); |
37 | void move_apply (object *trap, object *victim, object *originator); |
38 | void do_learn_spell (object *op, object *spell, int special_prayer); |
38 | void do_learn_spell (object *op, object *spell, int special_prayer); |
39 | void do_forget_spell (object *op, const char *spell); |
39 | void do_forget_spell (object *op, const char *spell); |
40 | void apply_scroll (object *op, object *tmp, int dir); |
40 | void apply_scroll (object *op, object *tmp, int dir); |
41 | void apply_poison (object *op, object *tmp); |
41 | void apply_poison (object *op, object *tmp); |
42 | int manual_apply (object *op, object *tmp, int aflag); |
|
|
43 | int player_apply (object *pl, object *op, int aflag, int quiet); |
42 | bool player_apply (object *pl, object *op, int aflag); |
44 | void player_apply_below (object *pl); |
43 | void player_apply_below (object *pl); |
45 | int can_apply_object (object *who, object *op); |
44 | int can_apply_object (object *who, object *op); |
46 | int apply_special (object *who, object *op, int aflags); |
45 | int apply_special (object *who, object *op, int aflags); |
47 | int auto_apply (object *op); |
46 | int auto_apply (object *op); |
48 | void fix_auto_apply (maptile *m); |
47 | void fix_auto_apply (maptile *m); |
… | |
… | |
145 | void examine (object *op, object *tmp); |
144 | void examine (object *op, object *tmp); |
146 | int command_pickup (object *op, char *params); |
145 | int command_pickup (object *op, char *params); |
147 | void set_pickup_mode (object *op, int i); |
146 | void set_pickup_mode (object *op, int i); |
148 | int command_search_items (object *op, char *params); |
147 | int command_search_items (object *op, char *params); |
149 | int command_rename_item (object *op, char *params); |
148 | int command_rename_item (object *op, char *params); |
|
|
149 | int command_unlock (object *op, char *params); |
|
|
150 | int command_lock (object *op, char *params); |
150 | |
151 | |
151 | /* c_party.c */ |
152 | /* c_party.c */ |
152 | partylist *get_firstparty (); |
153 | partylist *get_firstparty (); |
153 | void obsolete_parties (); |
154 | void obsolete_parties (); |
154 | void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); |
155 | void add_kill_to_party (partylist *party, const char *killer, const char *dead, long exp); |
… | |
… | |
274 | int can_detect_enemy (object *op, object *enemy, rv_vector *rv); |
275 | int can_detect_enemy (object *op, object *enemy, rv_vector *rv); |
275 | int stand_in_light (object *op); |
276 | int stand_in_light (object *op); |
276 | int can_see_enemy (object *op, object *enemy); |
277 | int can_see_enemy (object *op, object *enemy); |
277 | |
278 | |
278 | /* move.c */ |
279 | /* 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); |
280 | int transfer_ob (object *op, int x, int y, int randomly, object *originator); |
282 | int teleport (object *teleporter, uint8 tele_type, object *user); |
281 | int teleport (object *teleporter, uint8 tele_type, object *user); |
283 | void recursive_roll (object *op, int dir, object *pusher); |
282 | void recursive_roll (object *op, int dir, object *pusher); |
284 | int push_ob (object *who, int dir, object *pusher); |
283 | int push_ob (object *who, int dir, object *pusher); |
285 | |
284 | |
… | |
… | |
331 | void do_hidden_move (object *op); |
330 | void do_hidden_move (object *op); |
332 | int stand_near_hostile (object *who); |
331 | int stand_near_hostile (object *who); |
333 | int player_can_view (object *pl, object *op); |
332 | int player_can_view (object *pl, object *op); |
334 | int op_on_battleground (object *op, int *x, int *y); |
333 | int op_on_battleground (object *op, int *x, int *y); |
335 | void dragon_ability_gain (object *who, int atnr, int level); |
334 | void dragon_ability_gain (object *who, int atnr, int level); |
336 | void player_unready_range_ob (player *pl, object *ob); |
|
|
337 | |
335 | |
338 | /* resurrection.c */ |
336 | /* resurrection.c */ |
339 | int cast_raise_dead_spell (object *op, object *caster, object *spell, int dir, const char *arg); |
337 | int cast_raise_dead_spell (object *op, object *caster, object *spell, int dir, const char *arg); |
340 | |
338 | |
341 | /* rune.c */ |
339 | /* rune.c */ |