#ifndef _OBJ_WEAPON_H_d33482f9_ #define _OBJ_WEAPON_H_d33482f9_ #include "structs.h" /* * APIs exported by obj-weapon.c. */ /* * To-hit bonus of a weapon. This performs all applicable rolls, * returning a number suitable for adding to the wielder's attack roll * in its attack method. * * In particular, this returns different numbers each call for a given * weapon. */ extern int weapon_hit_bonus(OBJ *); /* * Damage bonus of a weapon. This performs all applicable rolls, * returning a number suitable for adding to the wielder's damage roll * in its damage method. * * In particular, this returns different numbers each call for a given * weapon. */ extern int weapon_dmg_bonus(OBJ *); /* * Test whether a weapon is being wielded. */ extern int weapon_being_wielded(OBJ *); /* * Wield a weapon. */ extern void weapon_wield(MONST *, OBJ *); #endif