|
CardGame
Rogue-like card videogame
|
Effect that grants armor to a combat target. More...
#include <gainArmorEffect.h>
Public Member Functions | |
| GainArmorEffect (Target target) | |
| Constructs the effect with a fixed logical target. | |
| void | resolve (CombatContext &combatContext, const CardParams &values) override |
| Grants armor using CardParams::armor. | |
Public Member Functions inherited from Effect | |
| virtual void | resolve (CombatContext &combatContext, const CardParams &effectParams)=0 |
| Applies the effect during card resolution. | |
| virtual | ~Effect ()=default |
| Virtual destructor. | |
Effect that grants armor to a combat target.
GainArmorEffect reads the armor value from CardParams and grants it to either the actor or the opponent, depending on the configured Target.
The effect does not modify entity state directly; it requests the operation through CombatContext.
|
inline |
Constructs the effect with a fixed logical target.
| target | Logical target selector (Self or Opponent). |
|
overridevirtual |
Grants armor using CardParams::armor.
| combatContext | Current combat execution context. |
| values | Numeric parameters used during resolution. |
Implements Effect.