Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchAnalysisPanel Class Reference

The assistant's half-time / full-time analysis of a live match: where the chances came from, pressing, duels, standout and struggling players, fatigue and two or three suggestions with their evidence. More...

#include <match_analysis_panel.h>

Classes

struct  CompareRow
 
struct  SuggestionText
 

Public Member Functions

void renderForMatch (const GameController &controller, const MatchEngine &engine, TeamID home_id, TeamID away_id, bool other_dialog_open)
 
void openNow (const GameController &controller, const MatchEngine &engine, TeamID home_id, TeamID away_id)
 
void close ()
 
bool isOpen () const
 

Private Member Functions

void build (const GameController &controller, const MatchEngine &engine, bool managed_home)
 
void render ()
 

Private Attributes

bool visible = false
 
bool focus_requested = false
 
bool half_offered = false
 
bool full_offered = false
 
std::string title
 
std::string own_name
 
std::string other_name
 
std::vector< CompareRow > rows
 
std::vector< std::string > observations
 
std::vector< std::string > notes
 
std::vector< SuggestionText > suggestions
 
std::string sample
 

Detailed Description

The assistant's half-time / full-time analysis of a live match: where the chances came from, pressing, duels, standout and struggling players, fatigue and two or three suggestions with their evidence.

Self-driving like TeamTalkDialog: call renderForMatch() once per frame. It opens at the break (after the team talk) and at full time, and openNow() shows it on demand. It is a panel in the bottom-right corner, never a modal: the match keeps running and its controls stay usable.

Member Function Documentation

◆ build()

void MatchAnalysisPanel::build ( const GameController &  controller,
const MatchEngine &  engine,
bool  managed_home 
)
private

◆ close()

void MatchAnalysisPanel::close ( )
inline

◆ isOpen()

bool MatchAnalysisPanel::isOpen ( ) const
inline

◆ openNow()

void MatchAnalysisPanel::openNow ( const GameController &  controller,
const MatchEngine &  engine,
TeamID  home_id,
TeamID  away_id 
)

Opens the analysis of the match so far (the managed side only).

◆ render()

void MatchAnalysisPanel::render ( )
private

◆ renderForMatch()

void MatchAnalysisPanel::renderForMatch ( const GameController &  controller,
const MatchEngine &  engine,
TeamID  home_id,
TeamID  away_id,
bool  other_dialog_open 
)

Member Data Documentation

◆ focus_requested

bool MatchAnalysisPanel::focus_requested = false
private

◆ full_offered

bool MatchAnalysisPanel::full_offered = false
private

◆ half_offered

bool MatchAnalysisPanel::half_offered = false
private

◆ notes

std::vector<std::string> MatchAnalysisPanel::notes
private

◆ observations

std::vector<std::string> MatchAnalysisPanel::observations
private

◆ other_name

std::string MatchAnalysisPanel::other_name
private

◆ own_name

std::string MatchAnalysisPanel::own_name
private

◆ rows

std::vector<CompareRow> MatchAnalysisPanel::rows
private

◆ sample

std::string MatchAnalysisPanel::sample
private

Evidence the analysis rests on.

◆ suggestions

std::vector<SuggestionText> MatchAnalysisPanel::suggestions
private

◆ title

std::string MatchAnalysisPanel::title
private

◆ visible

bool MatchAnalysisPanel::visible = false
private

The documentation for this class was generated from the following files: