Player12
An open source football management simulator
Loading...
Searching...
No Matches
match_analysis_panel.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 <string>
12#include <vector>
13
14#include "global/types.h"
16
17class GameController;
18class MatchEngine;
19
31{
32 public:
33 void renderForMatch(const GameController& controller,
34 const MatchEngine& engine, TeamID home_id, TeamID away_id,
35 bool other_dialog_open);
36
38 void openNow(const GameController& controller, const MatchEngine& engine,
39 TeamID home_id, TeamID away_id);
40
41 void close() { visible = false; }
42
43 [[nodiscard]] bool isOpen() const { return visible; }
44
45 private:
47 {
48 std::string label;
49 std::string own;
50 std::string other;
51 };
52
53 void build(const GameController& controller, const MatchEngine& engine,
54 bool managed_home);
55 void render();
56
57 bool visible = false;
58 bool focus_requested = false;
59 bool half_offered = false;
60 bool full_offered = false;
61
62 std::string title;
63 std::string own_name;
64 std::string other_name;
65 std::vector<CompareRow> rows;
66 std::vector<std::string> observations;
67 std::vector<std::string> notes;
69 {
70 std::string action;
71 std::string reason;
72 };
73 std::vector<SuggestionText> suggestions;
74 std::string sample;
75};
Manages the core game logic, interacting with teams, leagues, and players.
Definition game_controller.h:70
The assistant's half-time / full-time analysis of a live match: where the chances came from,...
Definition match_analysis_panel.h:31
void close()
Definition match_analysis_panel.h:41
void render()
Definition match_analysis_panel.cpp:185
std::vector< SuggestionText > suggestions
Definition match_analysis_panel.h:73
bool visible
Definition match_analysis_panel.h:57
std::string own_name
Definition match_analysis_panel.h:63
std::vector< std::string > notes
Definition match_analysis_panel.h:67
void build(const GameController &controller, const MatchEngine &engine, bool managed_home)
Definition match_analysis_panel.cpp:114
std::vector< std::string > observations
Definition match_analysis_panel.h:66
bool focus_requested
Definition match_analysis_panel.h:58
bool half_offered
Definition match_analysis_panel.h:59
std::string sample
Definition match_analysis_panel.h:74
std::string title
Definition match_analysis_panel.h:62
void openNow(const GameController &controller, const MatchEngine &engine, TeamID home_id, TeamID away_id)
Definition match_analysis_panel.cpp:93
bool isOpen() const
Definition match_analysis_panel.h:43
bool full_offered
Definition match_analysis_panel.h:60
void renderForMatch(const GameController &controller, const MatchEngine &engine, TeamID home_id, TeamID away_id, bool other_dialog_open)
Definition match_analysis_panel.cpp:63
std::vector< CompareRow > rows
Definition match_analysis_panel.h:65
std::string other_name
Definition match_analysis_panel.h:64
Definition match_engine.h:517
Definition match_analysis_panel.h:47
std::string other
Definition match_analysis_panel.h:50
std::string label
Definition match_analysis_panel.h:48
std::string own
Definition match_analysis_panel.h:49
Definition match_analysis_panel.h:69
std::string reason
Definition match_analysis_panel.h:71
std::string action
Definition match_analysis_panel.h:70
uint16_t TeamID
Type alias for Team identifiers.
Definition types.h:18