Player12
An open source football management simulator
Loading...
Searching...
No Matches
inbox_dilemma_card.cpp File Reference
#include "gui/scenes/inbox_dilemma_card.h"
#include <fmt/printf.h>
#include <imgui.h>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include "controller/game_controller.h"
#include "database/gamedata.h"
#include "global/language_manager.h"
#include "gui/widgets/format.h"
#include "gui/widgets/theme.h"
#include "gui/widgets/widgets.h"
#include "model/world_rng.h"

Namespaces

namespace  InboxDilemmaCard
 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.
 

Functions

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.
 
std::optional< int > InboxDilemmaCard::render (GameController &controller)
 Draws the answers of the open moment in the current card.