|
Player12
An open source football management simulator
|
Backroom staff: current coaches, medics and scouts with ratings and responsibilities, their impact on the squad, contract actions and a filterable staff market. More...
#include <staff_scene.h>
Classes | |
| struct | PendingAction |
| A button press, executed once the tables are drawn. More... | |
| struct | Responsibility |
| Who covers an area and how well. More... | |
| struct | StaffRow |
| One staff line, pre-formatted. More... | |
Public Member Functions | |
| StaffScene (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 Member Functions | |
| void | renderStaff (float width) |
| void | renderImpact (float width) const |
| void | renderMarket () |
| void | renderFilters () |
| void | renderGroups (const char *id, const std::vector< StaffRow > &rows, bool market) |
| void | renderDetail (const StaffRow &row, bool market) |
| void | renderReleaseConfirm () |
| void | rebuildMarket () |
| void | showResult (int result, const char *success_key) |
Private Attributes | |
| std::vector< StaffRow > | staff_rows |
| std::vector< StaffRow > | market_rows |
| std::vector< Responsibility > | responsibilities |
| StaffEffects | effects |
| int | role_filter = -1 |
| int | min_rating = 0 |
| int | hire_years = 2 |
| StaffID | selected = 0 |
| StaffID | release_candidate = 0 |
| std::string | release_text |
| bool | release_requested = false |
| PendingAction | pending |
Friends | |
| class | GameFlowTest_GUIFlowLifecycle_Test |
Additional Inherited Members | |
Protected Attributes inherited from GUIScene | |
| GUIView * | guiView |
Backroom staff: current coaches, medics and scouts with ratings and responsibilities, their impact on the squad, contract actions and a filterable staff market.
|
explicit |
|
inlineoverridevirtual |
|
inlineoverrideprotectedvirtual |
Sidebar entry highlighted for this screen.
Implements ManagementScene.
|
private |
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
|
overrideprotectedvirtual |
Draws the page body inside the content region.
Implements ManagementScene.
|
private |
|
private |
|
private |
Rows grouped by department, each group with a header and a table.
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Updates scene logic.
| deltaTime | The time elapsed since the last update. |
Implements GUIScene.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
-1: every role.
|
private |
Row whose detail strip is open (0: none).
|
private |