First coverage reports. Tests don't get near enough coverage but running the program does.

This commit is contained in:
Zed A. Shaw 2024-11-29 09:41:02 -05:00
parent 988edf13d7
commit 97255eb813
7 changed files with 127 additions and 5 deletions

View file

@ -4,6 +4,8 @@ namespace components {
struct Combat {
int hp;
int damage;
/* NOTE: This is used to _mark_ entities as dead, to detect ones that have just died. Don't make attack automatically set it.*/
bool dead;
int attack(Combat &target);