Player12
An open source football management simulator
Loading...
Searching...
No Matches
InboxDilemmaCard Namespace Reference

The two answers of a decision moment in the inbox: each answer lists what it will do (morale, trust, match fitness, money) before the manager picks it. More...

Classes

struct  EffectLine
 One effect line; sign tells a gain (+1) from a cost (-1). More...
 

Functions

std::vector< EffectLine > effectLines (const DilemmaEffects &effects, const std::string &subject, const std::string &other)
 Localised effect lines of an answer, e.g. "Morale of Rossi: +5", "Club cost: €12K". subject and other name the players involved.
 
std::optional< int > render (GameController &controller)
 Draws the answers of the open moment in the current card.
 

Detailed Description

The two answers of a decision moment in the inbox: each answer lists what it will do (morale, trust, match fitness, money) before the manager picks it.

Function Documentation

◆ effectLines()

std::vector< EffectLine > InboxDilemmaCard::effectLines ( const DilemmaEffects &  effects,
const std::string &  subject,
const std::string &  other 
)

Localised effect lines of an answer, e.g. "Morale of Rossi: +5", "Club cost: €12K". subject and other name the players involved.

◆ render()

std::optional< int > InboxDilemmaCard::render ( GameController &  controller)

Draws the answers of the open moment in the current card.

Returns
The answer taken this frame (0 or 1) once it has been applied, or nothing.