Central authority for combat rules and state mutation.
Definition: combatSystem.h:18
DamageResult dealDamage(Entity &target, int amount, bool ignoreArmor=false)
Resolves damage against a target according to combat rules.
Definition: combatSystem.cpp:31
void gainAttack(Entity &target, int amount)
Grants attack to the target entity.
Definition: combatSystem.cpp:11
void endTurnReset(Entity &player, Entity &enemy)
Definition: combatSystem.cpp:17
void heal(Entity &target, int amount)
Heals the target entity by the specified amount.
Definition: combatSystem.cpp:29
void gainArmor(Entity &target, int amount)
Grants armor to the target entity.
Definition: combatSystem.cpp:5
bool isDead(const Entity &target)
Checks whether the target entity is dead.
Definition: combatSystem.cpp:101
void resetArmor(Entity &target)
Resets the target entity's armor to zero.
Definition: combatSystem.cpp:27
Base class representing a combat-capable entity.
Definition: entity.h:18
Definition: combatEvents.h:22