The next little game in the series where I make a fancy rogue game.
 
 
 
 
 
 
roguish/combat.hpp

13 lines
271 B

#pragma once
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);
};
}