64 void update(
float deltaTime)
override;
169 bool show_ai_debug =
false;
231 [[nodiscard]] std::optional<TouchlineContext>
touchline();
245 [[nodiscard]] std::string
clockText()
const;
246 [[nodiscard]] ImU32
teamColor(
bool home)
const;
273 ImVec2 viewMin, ImVec2 viewMax);
310 void renderDebugLines();
311 void exportDebugSnapshot();
Base class for all GUI scenes.
Definition gui_scene.h:68
Main view manager for the GUI. Handles scenes and overlays.
Definition gui_view.h:29
Definition imatch_renderer.h:97
The assistant's half-time / full-time analysis of a live match: where the chances came from,...
Definition match_analysis_panel.h:31
Definition match_play_controller.h:55
Definition match_scene.h:58
void showSubstitutions(bool show)
Definition match_scene.cpp:672
void takeFreeCamera()
Definition match_scene.cpp:903
bool show_tactics
Definition match_scene.h:157
float focus_controls_width
Definition match_scene.h:139
std::jthread quick_result_worker
Definition match_scene.h:112
bool highlights_only
Definition match_scene.h:149
void openPlayMenu()
Definition match_scene_play.cpp:119
std::uint64_t slow_update_count
Definition match_scene.h:216
bool free_follow_ball
Definition match_scene.h:133
MatchTacticsPanel tactics_panel
Definition match_scene.h:159
void renderQuickResultProgress()
Definition match_scene.cpp:1202
bool day_look
Definition match_scene.h:126
void renderControls()
Definition match_scene.cpp:1510
bool show_all_events
Definition match_scene.h:209
void renderSubstitutionsModal()
Definition match_scene.cpp:2297
float match_speed
Definition match_scene.h:148
void handBack()
Definition match_scene_play.cpp:106
bool pressure_overlay
Definition match_scene.h:128
float average_render_milliseconds
Definition match_scene.h:218
std::unique_ptr< IMatchRenderer > renderer_2d
Definition match_scene.h:118
std::string clockText() const
Definition match_scene.cpp:766
void renderPitch(ImVec2 size)
Definition match_scene.cpp:1803
float last_render_milliseconds
Definition match_scene.h:217
bool watch_focus
Definition match_scene.h:194
bool paused_for_dialog
Definition match_scene.h:161
bool is_paused
Definition match_scene.h:150
void suspendKeyboardNavigation(bool suspend)
Definition match_scene_play.cpp:136
float skip_indicator_seconds
Definition match_scene.h:117
static bool assistant_substitutions
Definition match_scene.h:90
void renderPitchArea(ImVec2 size)
Definition match_scene.cpp:1766
MatchCameraMode camera_mode
Definition match_scene.h:121
MatchPlayController play
Definition match_scene.h:174
bool finishMatch()
Definition match_scene.cpp:730
void updatePlay(float deltaTime)
Definition match_scene_play.cpp:147
bool canHandBack() const
Definition match_scene_play.cpp:100
std::string substitution_status
Definition match_scene.h:205
MatchAnalysisPanel analysis_panel
Definition match_scene.h:152
void renderFocusShouts(ImVec2 origin, ImVec2 size)
Definition match_scene.cpp:1783
MatchViewMode view_mode
Definition match_scene.h:120
std::string pre_match_note
Definition match_scene.h:107
bool show_player_names
Definition match_scene.h:122
std::string home_name
Definition match_scene.h:95
void handleViewInput()
Definition match_scene.cpp:1882
bool play_follow_ready
Definition match_scene.h:199
uint16_t home_team_id
Definition match_scene.h:92
void render() override
Renders the scene.
Definition match_scene.cpp:1074
void renderPitchFocus()
Definition match_scene.cpp:1932
bool nav_keyboard_suspended
Definition match_scene.h:196
PlayMenuNext play_menu_next
Definition match_scene.h:189
void renderEvents(ImVec2 size)
Definition match_scene.cpp:2244
std::string debug_status
Definition match_scene.h:212
bool quickResult()
Definition match_scene.cpp:756
bool play_confirm
Definition match_scene.h:176
int kickoff_minutes
Definition match_scene.h:124
void renderPlayConfirm()
Definition match_scene_play.cpp:338
MatchPlayController::Options playOptions() const
Definition match_scene_play.cpp:47
void renderPlayOverlay(const IMatchRenderer &renderer, ImVec2 viewMin, ImVec2 viewMax)
Definition match_scene_play.cpp:233
float pending_zoom_steps
Definition match_scene.h:129
void startMatch()
Definition match_scene.cpp:550
MatchSubsPanel subs_panel
Definition match_scene.h:156
bool skipped_last_update
Definition match_scene.h:167
bool canTakeControl() const
Definition match_scene_play.cpp:58
void renderPlayButtons()
Definition match_scene_play.cpp:274
float scene_entry_milliseconds
Definition match_scene.h:213
std::future< void > quick_result
Definition match_scene.h:113
void refreshVisibleEvents()
Definition match_scene.cpp:2228
MatchRenderSnapshot snapshot
Definition match_scene.h:203
void renderScoreboard()
Definition match_scene.cpp:1282
MatchViewport playViewport2D(const MatchViewport &fitted, ImVec2 viewMin, ImVec2 viewMax)
Definition match_scene_play.cpp:185
void renderStatistics(ImVec2 size)
Definition match_scene.cpp:2190
TeamTalkDialog team_talk
Definition match_scene.h:151
float frame_seconds
Definition match_scene.h:140
std::unique_ptr< MatchAudio > audio
Definition match_scene.h:115
MatchCameraInput pending_camera_input
Definition match_scene.h:131
void renderPlayMenu()
Definition match_scene_play.cpp:374
std::vector< std::size_t > visible_events
Definition match_scene.h:207
void closePlayMenu()
Definition match_scene_play.cpp:129
PlayScreenBasis play_basis
Definition match_scene.h:201
void dialogClosed()
Definition match_scene.cpp:723
void update(float deltaTime) override
Updates scene logic.
Definition match_scene.cpp:796
friend class GameFlowTest_ManagedMatchIntegration_Test
Definition match_scene.h:71
float last_update_milliseconds
Definition match_scene.h:214
void pauseAtBreak()
Definition match_scene.cpp:863
void setViewMode(MatchViewMode mode)
Definition match_scene.cpp:880
bool indexed_show_all
Definition match_scene.h:210
uint16_t away_team_id
Definition match_scene.h:93
std::optional< MatchType > fixture_type
Definition match_scene.h:101
std::string decided_by
Definition match_scene.h:144
std::unique_ptr< MatchEngine > engine
Definition match_scene.h:109
std::optional< TouchlineContext > touchline()
Definition match_scene.cpp:643
bool match_finished
Definition match_scene.h:142
bool show_substitutions
Definition match_scene.h:154
bool watch_highlights
Definition match_scene.h:192
std::vector< LineupProblem > lineup_problems
Definition match_scene.h:104
void renderTimeline()
Definition match_scene.cpp:1421
bool substitution_refused
Definition match_scene.h:211
float maximum_update_milliseconds
Definition match_scene.h:215
Vector2F play_follow
Definition match_scene.h:198
std::string lineup_status
Definition match_scene.h:105
friend class GameFlowTest_ManagementScreensMidSeason_Test
Definition match_scene.h:72
void applySubstitutionPolicy()
Definition match_scene.cpp:633
void renderViewControls()
Definition match_scene.cpp:1667
bool pitch_focus
Definition match_scene.h:135
void setPlaybackSpeed(float speed)
Definition match_scene.cpp:613
ImU32 teamColor(bool home) const
Definition match_scene.cpp:788
bool in_break
Definition match_scene.h:164
void renderPlayControlsHelp() const
Definition match_scene_play.cpp:303
void applyLineupFix()
Definition match_scene.cpp:511
std::size_t indexed_events
Definition match_scene.h:208
void refreshLineupProblems()
Definition match_scene.cpp:465
void startPlaying()
Definition match_scene_play.cpp:75
void handleEvent(const SDL_Event &event) override
Handles SDL events for the scene.
Definition match_scene.cpp:926
std::string fixture_when
Definition match_scene.h:103
void onExit() override
Called when the scene is exited/becomes inactive.
Definition match_scene_play.cpp:178
friend class GameFlowTest_WatchedMatchSeedIsDeterministic_Test
Definition match_scene.h:73
void renderTacticsModal()
Definition match_scene.cpp:2307
std::unique_ptr< IMatchRenderer > renderer_3d
Definition match_scene.h:119
bool side_panels_hidden
Definition match_scene.h:137
bool play_menu_resume
Definition match_scene.h:181
void setFreeFollowBall(bool follow)
Definition match_scene.cpp:911
float watch_speed
Definition match_scene.h:191
MatchCameraMode watch_camera
Definition match_scene.h:193
void setSidePanelsHidden(bool hidden)
Definition match_scene.cpp:897
void toggleWindowFullscreen()
Definition match_scene.cpp:917
void showTactics(bool show)
Definition match_scene.cpp:698
SceneID getID() const override
Gets the ID of the scene.
Definition match_scene.cpp:405
bool play_menu
Definition match_scene.h:178
std::string away_name
Definition match_scene.h:96
std::optional< bool > managed_is_home
Definition match_scene.h:99
friend class GameFlowTest_WatchedCupTieIsPlayedToAWinner_Test
Definition match_scene.h:74
bool substitute(PlayerID outgoing, PlayerID incoming)
Definition match_scene.cpp:658
void requestTakeControl()
Definition match_scene_play.cpp:66
void renderLineupGate()
Definition match_scene.cpp:1220
PlayMenuNext
Definition match_scene.h:184
bool decided_by_ready
Definition match_scene.h:145
friend class GameFlowTest_GUIFlowLifecycle_Test
Definition match_scene.h:70
void setPitchFocus(bool enabled)
Definition match_scene.cpp:895
void onEnter() override
Called when the scene is entered/becomes active.
Definition match_scene.cpp:407
void setHighlightsOnly(bool enabled)
Definition match_scene.cpp:624
void renderFocusHud(ImVec2 origin, ImVec2 size)
Definition match_scene.cpp:1941
friend class MatchRenderer3DSceneTest_SwitchesViewsAndCapturesFrames_Test
Definition match_scene.h:75
void setCameraMode(MatchCameraMode mode)
Definition match_scene.cpp:886
Substitutions dialog of the live match.
Definition match_subs_panel.h:37
Tactics dialog of the live match: style presets, the five instructions and the formation,...
Definition match_tactics_panel.h:27
Modal pre-match / half-time team talk of the managed club.
Definition team_talk_dialog.h:38
SceneID
Identifiers for different GUI scenes.
Definition gui_scene.h:24
MatchCameraMode
Definition imatch_renderer.h:26
MatchViewMode
Definition match_scene.h:37
Definition match_play_controller.h:59
Definition match_render_snapshot.h:89
Definition match_scene.h:79
std::string reason
Definition match_scene.h:82
std::string name
Definition match_scene.h:81
std::string replacement
Definition match_scene.h:84
static constexpr float CENTRE
Definition match_tuning.h:37
Definition imatch_renderer.h:17
Definition match_play_controller.h:36
A simple 2D float vector for pitch coordinates.
Definition types.h:84
uint32_t PlayerID
Type alias for Player identifiers.
Definition types.h:21