CardGame
Rogue-like card videogame
Loading...
Searching...
No Matches
combatSystem.h
Go to the documentation of this file.
1#ifndef COMBATSYSTEM_H
2#define COMBATSYSTEM_H
3
4#include "combatEvents.h"
5
6class Entity;
7
18{
19 public:
26 void gainArmor(Entity& target, int amount);
27
34 void gainAttack(Entity& target, int amount);
35
36 void endTurnReset(Entity& player, Entity& enemy);
37
47 DamageResult dealDamage(Entity& target, int amount, bool ignoreArmor = false);
48
55 void heal(Entity& target, int amount);
56
62 void resetArmor(Entity& target);
63
70 bool isDead(const Entity& target);
71
72 private:
73};
74
75#endif // COMBATSYSTEM_H
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