Player12
An open source football management simulator
Loading...
Searching...
No Matches
delegation_scene.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
14#include "model/delegation.h"
15
22{
23 public:
24 explicit DelegationScene(GUIView* parent);
25
26 void update(float /*deltaTime*/) override
27 {
28 // Rendering reads current state; there is no per-frame update work.
29 }
30 [[nodiscard]] SceneID getID() const override { return SceneID::DELEGATION; }
31
32 protected:
33 void renderContent() override;
34 [[nodiscard]] NavSection navSection() const override
35 {
37 }
38 void refresh() override;
39
40 private:
42
43 void renderDuty(Duty duty, float width);
44
46 std::string delegate_line;
47};
Who handles each duty of the managed club.
Definition delegation.h:61
One place to decide who handles which recurring duty: the manager or the assistant,...
Definition delegation_scene.h:22
void renderDuty(Duty duty, float width)
Definition delegation_scene.cpp:92
NavSection navSection() const override
Sidebar entry highlighted for this screen.
Definition delegation_scene.h:34
SceneID getID() const override
Gets the ID of the scene.
Definition delegation_scene.h:30
std::string delegate_line
Definition delegation_scene.h:46
void renderContent() override
Draws the page body inside the content region.
Definition delegation_scene.cpp:52
void update(float) override
Updates scene logic.
Definition delegation_scene.h:26
DelegationPolicy policy
Definition delegation_scene.h:45
void refresh() override
Rebuilds cached view models from the game state.
Definition delegation_scene.cpp:38
friend class GameFlowTest_GUIFlowLifecycle_Test
Definition delegation_scene.h:41
Main view manager for the GUI. Handles scenes and overlays.
Definition gui_view.h:29
Base class for every in-career screen.
Definition management_scene.h:93
Duty
Recurring jobs the manager may hand to the backroom staff.
Definition delegation.h:23
SceneID
Identifiers for different GUI scenes.
Definition gui_scene.h:24
NavSection
Screens of the management shell. The sidebar groups them into a few hubs (Home, Inbox,...
Definition nav_history.h:26