|
Player12
An open source football management simulator
|
Youth academy: academy ratings, the head of youth development, board requests and the U18 league (Overview), the U18 squad with its contracts, the intake trialists with their offers (Intake) and the youngsters' progress over time (Development). More...
#include <youth_scene.h>
Classes | |
| struct | PendingAction |
| A button press, executed once the page is drawn. More... | |
| struct | ResultLine |
| struct | Row |
| One player line, pre-formatted at refresh time. More... | |
| struct | UpgradeLine |
Public Member Functions | |
| YouthScene (GUIView *parent) | |
| void | update (float deltaTime) override |
| Updates scene logic. | |
| SceneID | getID () const override |
| Gets the ID of the scene. | |
Public Member Functions inherited from ManagementScene | |
| ManagementScene (GUIView *guiViewPtr) | |
| void | render () final |
| Renders the scene. | |
| void | onEnter () override |
| Called when the scene is entered/becomes active. | |
| void | onResume () override |
| Called when an overlay above this scene closes and it becomes the active scene again. Screens use it to refresh cached view models after a match, a transfer or any other state change made elsewhere. | |
| void | handleEvent (const SDL_Event &event) override |
| std::optional< NavEntry > | historyEntry () const override |
Public Member Functions inherited from GUIScene | |
| GUIScene (GUIView *guiView_ptr) | |
| Constructs a new GUIScene. | |
| virtual | ~GUIScene ()=default |
| Destroys the GUIScene. | |
| virtual void | onExit () |
| Called when the scene is exited/becomes inactive. | |
| virtual void | onResize (int width, int height) |
| Called when the window is resized. | |
Protected Member Functions | |
| void | renderContent () override |
| Draws the page body inside the content region. | |
| NavSection | navSection () const override |
| Sidebar entry highlighted for this screen. | |
| void | refresh () override |
| Rebuilds cached view models from the game state. | |
Protected Member Functions inherited from ManagementScene | |
| virtual std::optional< EditorContext > | editorContext () const |
| void | showToast (std::string message, bool isError=false) |
| Shows a short confirmation message in the top bar. | |
| HolidayDialog & | holidayDialog () |
| Holiday planner and return report of this screen. | |
Protected Member Functions inherited from GUIScene | |
| SDL_Renderer * | getRenderer () const |
| Gets the SDL renderer. | |
| SDL_Window * | getWindow () const |
| Gets the SDL window. | |
| GUIView * | getGuiView () const |
| Gets the associated GUIView. | |
| void | changeScene (std::unique_ptr< GUIScene > newScene) |
| Requests a scene change. | |
| void | quit () |
| Requests the application to quit. | |
Private Types | |
| enum class | Tab : uint8_t { OVERVIEW , SQUAD , INTAKE , DEVELOPMENT } |
| enum class | ListKind : uint8_t { SQUAD , ELIGIBLE , INTAKE , DEVELOPMENT } |
| Which list a table shows (decides columns and actions). More... | |
Private Member Functions | |
| void | renderOverview () |
| void | renderSquad () |
| void | renderIntake () |
| void | renderDevelopment () |
| void | renderIntakeCard (float width) |
| void | renderHeadCard (float width) |
| void | renderBoardCard (float width) |
| void | renderLeagueCard (float width) |
| void | renderTable (const char *id, const std::vector< Row > &rows, ListKind kind) |
| void | renderDetail (const Row &row, ListKind kind) |
| void | renderChart (const Row &row, float width) const |
| void | renderConfirm () |
| void | runPending () |
| Row | makeRow (const GameController::YouthPlayerView &view) const |
| void | openTab (Tab tab) |
Private Attributes | |
| GameController::AcademyOverview | overview |
| std::vector< Row > | squad_rows |
| std::vector< Row > | eligible_rows |
| std::vector< Row > | intake_rows |
| std::vector< Row > | development_rows |
| std::array< UpgradeLine, 2 > | upgrades |
| std::vector< ResultLine > | results |
| std::vector< UI::Outcome > | form |
| std::vector< UI::BarDatum > | improvers |
| std::vector< std::string > | improver_values |
| std::string | head_rating |
| std::string | intake_line |
| std::string | deadline_line |
| std::string | preview_line |
| std::string | league_line |
| std::string | league_record |
| std::string | league_goals |
| std::string | intake_tab_label |
| std::string | squad_title |
| GameDateValue | cached_date |
| Tab | requested_tab = Tab::OVERVIEW |
| bool | tab_pending = false |
| bool | first_refresh = true |
| PlayerID | selected = 0 |
| PlayerID | chart_player = 0 |
| PlayerID | confirm_player = 0 |
| bool | confirm_release = false |
| bool | confirm_requested = false |
| std::string | confirm_text |
| PendingAction | pending |
Friends | |
| class | GameFlowTest_GUIFlowLifecycle_Test |
Additional Inherited Members | |
Protected Attributes inherited from GUIScene | |
| GUIView * | guiView |
Youth academy: academy ratings, the head of youth development, board requests and the U18 league (Overview), the U18 squad with its contracts, the intake trialists with their offers (Intake) and the youngsters' progress over time (Development).
|
strongprivate |
|
strongprivate |
|
explicit |
|
inlineoverridevirtual |
|
private |
|
inlineoverrideprotectedvirtual |
Sidebar entry highlighted for this screen.
Implements ManagementScene.
|
private |
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
|
private |
|
private |
|
private |
|
overrideprotectedvirtual |
Draws the page body inside the content region.
Implements ManagementScene.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Updates scene logic.
| deltaTime | The time elapsed since the last update. |
Implements GUIScene.
|
friend |
|
private |
|
private |
|
private |
|
private |
Release a signed player (else let a trialist go).
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |