|
CardGame
Rogue-like card videogame
|
Effect that grants attack to a combat target. More...
#include <gainAttackEffect.h>
Public Member Functions | |
| GainAttackEffect (Target target) | |
| Constructs the effect with a fixed logical target. | |
| void | resolve (CombatContext &combatContext, const CardParams &values) override |
| Grants attack using CardParams::attack. | |
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 attack to a combat target.
GainAttackEffect 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 attack using CardParams::attack.
| combatContext | Current combat execution context. |
| values | Numeric parameters used during resolution. |
Implements Effect.