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
13
#include "
gui/scenes/management_scene.h
"
14
#include "
model/delegation.h
"
15
21
class
DelegationScene
:
public
ManagementScene
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
{
36
return
NavSection::DELEGATION
;
37
}
38
void
refresh
()
override
;
39
40
private
:
41
friend
class
GameFlowTest_GUIFlowLifecycle_Test
;
42
43
void
renderDuty
(
Duty
duty,
float
width);
44
45
DelegationPolicy
policy
;
46
std::string
delegate_line
;
47
};
DelegationPolicy
Who handles each duty of the managed club.
Definition
delegation.h:61
DelegationScene
One place to decide who handles which recurring duty: the manager or the assistant,...
Definition
delegation_scene.h:22
DelegationScene::renderDuty
void renderDuty(Duty duty, float width)
Definition
delegation_scene.cpp:92
DelegationScene::navSection
NavSection navSection() const override
Sidebar entry highlighted for this screen.
Definition
delegation_scene.h:34
DelegationScene::getID
SceneID getID() const override
Gets the ID of the scene.
Definition
delegation_scene.h:30
DelegationScene::delegate_line
std::string delegate_line
Definition
delegation_scene.h:46
DelegationScene::renderContent
void renderContent() override
Draws the page body inside the content region.
Definition
delegation_scene.cpp:52
DelegationScene::update
void update(float) override
Updates scene logic.
Definition
delegation_scene.h:26
DelegationScene::policy
DelegationPolicy policy
Definition
delegation_scene.h:45
DelegationScene::refresh
void refresh() override
Rebuilds cached view models from the game state.
Definition
delegation_scene.cpp:38
DelegationScene::GameFlowTest_GUIFlowLifecycle_Test
friend class GameFlowTest_GUIFlowLifecycle_Test
Definition
delegation_scene.h:41
GUIView
Main view manager for the GUI. Handles scenes and overlays.
Definition
gui_view.h:29
ManagementScene
Base class for every in-career screen.
Definition
management_scene.h:93
delegation.h
Duty
Duty
Recurring jobs the manager may hand to the backroom staff.
Definition
delegation.h:23
SceneID
SceneID
Identifiers for different GUI scenes.
Definition
gui_scene.h:24
SceneID::DELEGATION
@ DELEGATION
management_scene.h
NavSection
NavSection
Screens of the management shell. The sidebar groups them into a few hubs (Home, Inbox,...
Definition
nav_history.h:26
NavSection::DELEGATION
@ DELEGATION
src
gui
scenes
delegation_scene.h
Generated by
1.9.8