|
CardGame
Rogue-like card videogame
|
Effect that draws cards into the actor's hand. More...
#include <drawCardsEffect.h>
Public Member Functions | |
| DrawCardsEffect ()=default | |
| Constructs a draw-cards effect. | |
| void | resolve (CombatContext &combatContext, const CardParams &values) override |
| Draws cards using CardParams::drawing. | |
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 draws cards into the actor's hand.
DrawCardsEffect reads the draw amount from CardParams and requests that number of cards to be drawn during effect resolution.
The effect does not modify deck state directly; it requests the operation through CombatContext.
|
default |
Constructs a draw-cards effect.
|
overridevirtual |
Draws cards using CardParams::drawing.
| combatContext | Current combat execution context. |
| values | Numeric parameters used during resolution. |
Implements Effect.