MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // inpc/select.h -- Definitionen zur Objektauswahl |
| 4 | // |
| 5 | // $Id: select.h,v 3.3 2003/08/06 18:40:05 Vanion Exp $ |
| 6 | |
| 7 | #ifndef __INPC_SELECT_H__ |
| 8 | #define __INPC_SELECT_H__ |
| 9 | |
| 10 | #define OT_WEAPON "weapon" |
| 11 | #define OT_COMBAT_OBJECT "combat_object" |
| 12 | #define OT_MISC "misc_objects" |
| 13 | #define INPC_BEST_WEAPON_ID "inpc_best_weapon" |
| 14 | #define INPC_BEST_SHIELD_ID "inpc_best_shield" |
| 15 | |
| 16 | // if npc does not like weapons, i.e. Karateorc |
| 17 | #define INPC_DONT_WIELD_WEAPONS "inpc_dont_wield_weapons" |
| 18 | |
| 19 | #endif |
| 20 | |
| 21 | #ifdef NEED_PROTOTYPES |
| 22 | #ifndef __INPC_SELECT_PROTO__ |
| 23 | #define __INPC_SELECT_PROTO__ |
| 24 | |
| 25 | int eval_wepon(object ob); |
| 26 | int eval_armour(object ob); |
| 27 | int eval_combat_object(object ob, mapping vals, object enemy); |
| 28 | |
| 29 | object find_best_weapon(mixed from); |
| 30 | object find_best_armour(mixed from, mixed typ); |
| 31 | object *find_best_armours(mixed from); |
| 32 | varargs string find_best_combat_command(mixed from, object enemy, mapping pref); |
| 33 | |
| 34 | varargs int wield_best_weapon(mixed from); |
| 35 | varargs int wear_best_armours(mixed from); |
| 36 | varargs int use_best_combat_command(mixed enemy, mixed from, mapping pref); |
| 37 | |
| 38 | |
| 39 | #endif |
| 40 | #endif |