CardGame
Rogue-like card videogame
Loading...
Searching...
No Matches
gainAttackEffect.h
Go to the documentation of this file.
1#ifndef GAINATTACKEFFECT_H
2#define GAINATTACKEFFECT_H
3
5#include "effect.h"
6
17{
18 public:
24 GainAttackEffect(Target target) : m_target{target} {}
25
32 void resolve(CombatContext& combatContext, const CardParams& values) override;
33
34 private:
35 Target m_target;
36};
37
38#endif // GAINATTACKEFFECT_H
Execution context for resolving combat effects.
Definition: combatContext.h:30
Abstract base class for all card effects.
Definition: effect.h:19
Effect that grants attack to a combat target.
Definition: gainAttackEffect.h:17
void resolve(CombatContext &combatContext, const CardParams &values) override
Grants attack using CardParams::attack.
Definition: gainAttackEffect.cpp:7
GainAttackEffect(Target target)
Constructs the effect with a fixed logical target.
Definition: gainAttackEffect.h:24
Target
Logical target selector used during effect resolution.
Definition: combatTarget.h:14
Numeric parameters used to resolve gameplay effects.
Definition: cardParams.h:16