#ifndef WH_DAMAGE_H_1c993df8_ #define WH_DAMAGE_H_1c993df8_ #include "structs.h" /* * Add two DAMAGEs together. The input DAMAGEs are freed; the returned * DAMAGE is owned by the caller. */ extern DAMAGE damage_add(DAMAGE, DAMAGE); /* * Free up anything necessary so that a DAMAGE can be dropped. */ extern void damage_free(DAMAGE); /* * Return a DAMAGE for the specified number of hitpoints, kind, and * flags. The returned DAMAGE is owned by the caller. */ extern DAMAGE damage_simple(int, DMGKIND, unsigned int); /* * Return a DAMAGE's total damage, ie, the sum across all DMGENTs. * This does not affect the DAMAGE's ownership. */ extern int damage_total(DAMAGE); /* * Apply damage reduction to a DAMAGE. The int is the number of hp to * reduce it by. */ extern void damage_reduction(DAMAGE *, int); #endif