Player12
An open source football management simulator
Loading...
Searching...
No Matches
inbox_dilemma_card.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2// Football Management Project
3// Copyright (c) 2025 - 2026 Flavio Milinanni. All Rights Reserved.
4//
5// This file is part of the Football Management Project.
6// See the LICENSE file in the project root.
7// -----------------------------------------------------------------------------
8
9#pragma once
10
11#include <optional>
12#include <string>
13#include <vector>
14
15#include "model/stories.h"
16
17class GameController;
18
24namespace InboxDilemmaCard
25{
28{
29 std::string text;
30 int sign = 0;
31};
32
37std::vector<EffectLine> effectLines(const DilemmaEffects& effects,
38 const std::string& subject,
39 const std::string& other);
40
46std::optional<int> render(GameController& controller);
47} // namespace InboxDilemmaCard
Manages the core game logic, interacting with teams, leagues, and players.
Definition game_controller.h:70
The two answers of a decision moment in the inbox: each answer lists what it will do (morale,...
Definition inbox_dilemma_card.cpp:42
std::optional< int > render(GameController &controller)
Draws the answers of the open moment in the current card.
Definition inbox_dilemma_card.cpp:73
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"....
Definition inbox_dilemma_card.cpp:43
Bounded effects of one answer to a decision moment.
Definition stories.h:101
One effect line; sign tells a gain (+1) from a cost (-1).
Definition inbox_dilemma_card.h:28
std::string text
Definition inbox_dilemma_card.h:29
int sign
Definition inbox_dilemma_card.h:30