CardGame
Rogue-like card videogame
Loading...
Searching...
No Matches
CardParams Struct Reference

Numeric parameters used to resolve gameplay effects. More...

#include <cardParams.h>

Collaboration diagram for CardParams:

Public Attributes

int damage {0}
 
int armor {0}
 
int actions {0}
 
int drawing {0}
 
std::optional< int > cardsLimit
 

Detailed Description

Numeric parameters used to resolve gameplay effects.

CardParams provides the numeric values consumed by Effect implementations during resolution (e.g., damage, armor).

The same parameter structure is used for both card effects and enemy moves, allowing Effect behavior to remain stateless and reusable.

Member Data Documentation

◆ actions

int CardParams::actions {0}

◆ armor

int CardParams::armor {0}

◆ cardsLimit

std::optional<int> CardParams::cardsLimit

◆ damage

int CardParams::damage {0}

◆ drawing

int CardParams::drawing {0}

The documentation for this struct was generated from the following file: