#ifndef _OBJ_ARMOUR_H_0d1b5b32_ #define _OBJ_ARMOUR_H_0d1b5b32_ #include "structs.h" /* * APIs exported by obj-armour.c. */ /* * Defense bonus of a piece of armour. This performs all applicable * rolls, returning a number suitable for adding to the wearer's * defense roll in its defend method. * * In particular, this returns different numbers each call for a given * piece of armour. */ extern int armour_def_bonus(OBJ *); /* * Test whether a piece of armour is being worn. */ extern int armour_being_worn(OBJ *); /* * Wear a piece of armour. */ extern void armour_wear(MONST *, OBJ *); /* * Remove a piece of armour. */ extern void armour_take_off(MONST *, OBJ *); /* * Report what armour(s), if any, the monster is wearing, in the form * of an inventory listing restricted by armour_being_worn (loosely * put). */ extern void armour_show(MONST *); /* * Make a monster stop wearing a piece of armour. This is a no-op if * the armour is not being worn. It is a panic if object is not * armour, if the monster is not carrying the armour, or if the armour * is worn by any other monster. */ extern void armour_stop_using(MONST *, INVOBJ *); /* * Set a piece of armour's plusses. */ extern void armour_set_plusses(OBJ *, int); /* * Set whether a piece of armour is cursed. */ extern void armour_set_cursed(OBJ *, int); #endif