|
Player12
An open source football management simulator
|
Squad list of the managed club, or of any other club (read-only). More...
#include <roster_scene.h>
Public Member Functions | |
| RosterScene (GUIView *parent) | |
| Constructs a new RosterScene for the managed club. | |
| RosterScene (GUIView *parent, TeamID teamId) | |
| Constructs a RosterScene for a specific club. | |
| ~RosterScene () override=default | |
| Destroys the RosterScene. | |
| void | update (float deltaTime) override |
| Updates scene logic. | |
| SceneID | getID () const override |
| Gets the ID of this scene. | |
| std::optional< NavEntry > | historyEntry () const override |
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 |
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 | loadRoster () |
| void | renderSummary () |
| void | renderFilters () |
| void | renderTable () |
| void | renderDetails () |
| void | renderNumberEditor (const Player &player) |
| void | applyFilter () |
| void | applySort () |
| const Player * | selectedPlayer () const |
| bool | isManagedClub () const |
Private Attributes | |
| std::optional< TeamID > | team_id |
| std::vector< std::reference_wrapper< const Player > > | roster_players |
| std::optional< PlayerID > | selected_player_id |
| std::array< char, 64 > | search_text {} |
| int | role_filter_index = 0 |
| int | group_filter_index = 0 |
| std::vector< PlayerView::PlayerRow > | rows |
| std::vector< size_t > | visible_rows |
| std::unordered_set< PlayerID > | starters |
| std::string | filtered_search |
| int | filtered_role = -1 |
| int | filtered_group = -1 |
| ImGuiID | sort_column = 0 |
| bool | sort_ascending = true |
| std::string | club_name |
| double | average_age = 0.0 |
| double | average_overall = 0.0 |
| int64_t | payroll = 0 |
| int | expiring_contracts = 0 |
| bool | show_details = false |
| UI::ColumnMask | table_mask = ~UI::ColumnMask{0} |
| int | number_edit = 1 |
| PlayerID | number_edit_for = 0 |
Friends | |
| class | GameFlowTest_GUIFlowLifecycle_Test |
Additional Inherited Members | |
Protected Attributes inherited from GUIScene | |
| GUIView * | guiView |
Squad list of the managed club, or of any other club (read-only).
|
explicit |
Constructs a new RosterScene for the managed club.
| parent | Pointer to the GUIView. |
Constructs a RosterScene for a specific club.
| parent | Pointer to the GUIView. |
| teamId | Club to list; other clubs are shown read-only. |
|
overridedefault |
Destroys the RosterScene.
|
private |
|
private |
|
overridevirtual |
|
overridevirtual |
The managed squad, or the club it was opened for.
Reimplemented from ManagementScene.
|
private |
|
private |
|
overrideprotectedvirtual |
Sidebar entry highlighted for this screen.
Implements ManagementScene.
|
inlineoverrideprotectedvirtual |
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 |
|
private |
|
private |
|
private |
|
overridevirtual |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Columns the table showed last frame (for the column picker).
|
private |
|
private |