|
Player12
An open source football management simulator
|
Club planning: the pre-season (friendlies, tour and training camp), facility projects funded by the board and the mentoring groups. More...
#include <preseason_scene.h>
Classes | |
| struct | FriendlyLine |
| One formatted friendly. More... | |
| struct | ProjectLine |
| One project type with its quote and state. More... | |
Public Member Functions | |
| PreseasonScene (GUIView *parent) | |
| void | update (float) 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 Member Functions | |
| void | renderPreseason (float width) |
| void | renderFriendlyEditor (const FriendlyLine &line) |
| void | renderCamp () |
| void | renderProjects (float width) |
| void | renderMentoring (float width) |
| void | loadOpponents () |
Private Attributes | |
| std::vector< FriendlyLine > | friendlies |
| int | selected_friendly = -1 |
| int | level = static_cast<int>(std::to_underlying(OpponentLevel::Similar)) |
| int | region = 0 |
| int | venue = 0 |
| bool | tour = false |
| std::vector< OpponentOption > | opponents |
| std::vector< std::string > | opponent_labels |
| int | opponent_index = -1 |
| int | tour_fee_for = -1 |
| std::string | tour_fee_text |
| int | camp_choice = 0 |
| std::array< CampQuote, 3 > | camp_quotes |
| bool | camp_open = false |
| std::string | camp_status |
| std::string | camp_suggestion |
| std::vector< ProjectLine > | projects |
| std::vector< std::string > | completed_projects |
| int | seats_choice = 1 |
| std::array< std::string, 3 > | seat_labels |
| std::string | project_message |
| bool | project_message_error = false |
| std::vector< std::string > | mentoring_lines |
| MentoringDialog | mentoring_dialog |
Friends | |
| class | GameFlowTest_GUIFlowLifecycle_Test |
Additional Inherited Members | |
Protected Attributes inherited from GUIScene | |
| GUIView * | guiView |
Club planning: the pre-season (friendlies, tour and training camp), facility projects funded by the board and the mentoring groups.
|
explicit |
|
inlineoverridevirtual |
|
private |
|
inlineoverrideprotectedvirtual |
Sidebar entry highlighted for this screen.
Implements ManagementScene.
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
|
private |
|
overrideprotectedvirtual |
Draws the page body inside the content region.
Implements ManagementScene.
|
private |
|
private |
|
private |
|
private |
|
inlineoverridevirtual |
Updates scene logic.
| deltaTime | The time elapsed since the last update. |
Implements GUIScene.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
0 domestic, 1 abroad.
|
private |
|
private |
|
private |
|
private |
|
private |
Opponent index tour_fee_text belongs to.
|
private |
|
private |
0 home, 1 away.