The manager's own screen: profile card with reputation, licence and contract, career history, season finishes and honours, and the Job Centre (vacancies with the chance of an interview, applications, interviews, offers with negotiation, resignation).
More...
#include <manager_scene.h>
|
| | ManagerScene (GUIView *parent, std::optional< Tab > tab=std::nullopt) |
| |
| void | update (float deltaTime) override |
| | Updates scene logic.
|
| |
| SceneID | getID () const override |
| | Gets the ID of the scene.
|
| |
| | 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 |
| |
| | 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.
|
| |
The manager's own screen: profile card with reputation, licence and contract, career history, season finishes and honours, and the Job Centre (vacancies with the chance of an interview, applications, interviews, offers with negotiation, resignation).
◆ Tab
| Enumerator |
|---|
| PROFILE | |
| JOB_CENTRE | |
◆ ManagerScene()
| ManagerScene::ManagerScene |
( |
GUIView * |
parent, |
|
|
std::optional< Tab > |
tab = std::nullopt |
|
) |
| |
|
explicit |
Without tab the Job Centre opens while out of work.
◆ getID()
| SceneID ManagerScene::getID |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the ID of the scene.
- Returns
- The SceneID of this scene.
GUIView uses this identifier to apply match-specific event and scene behavior.
Implements GUIScene.
◆ navSection()
|
|
inlineoverrideprotectedvirtual |
◆ refresh()
| void ManagerScene::refresh |
( |
| ) |
|
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
◆ refreshNational()
| void ManagerScene::refreshNational |
( |
| ) |
|
|
private |
◆ renderConfirmations()
| void ManagerScene::renderConfirmations |
( |
| ) |
|
|
private |
◆ renderContent()
| void ManagerScene::renderContent |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ renderHistory()
| void ManagerScene::renderHistory |
( |
| ) |
const |
|
private |
◆ renderHonours()
| void ManagerScene::renderHonours |
( |
float |
width | ) |
const |
|
private |
◆ renderInterviewDialog()
| void ManagerScene::renderInterviewDialog |
( |
| ) |
|
|
private |
◆ renderInterviews()
| void ManagerScene::renderInterviews |
( |
| ) |
|
|
private |
◆ renderJobCentre()
| void ManagerScene::renderJobCentre |
( |
| ) |
|
|
private |
◆ renderNationalCard()
| void ManagerScene::renderNationalCard |
( |
float |
width | ) |
|
|
private |
◆ renderNationalConfirmation()
| void ManagerScene::renderNationalConfirmation |
( |
| ) |
|
|
private |
◆ renderNationalOffers()
| void ManagerScene::renderNationalOffers |
( |
| ) |
|
|
private |
◆ renderNationalVacancies()
| void ManagerScene::renderNationalVacancies |
( |
| ) |
|
|
private |
◆ renderOffers()
| void ManagerScene::renderOffers |
( |
| ) |
|
|
private |
◆ renderProfile()
| void ManagerScene::renderProfile |
( |
| ) |
|
|
private |
◆ renderProfileCard()
| void ManagerScene::renderProfileCard |
( |
float |
width | ) |
|
|
private |
◆ renderSeasons()
| void ManagerScene::renderSeasons |
( |
| ) |
const |
|
private |
◆ renderUnemployedHome()
| void ManagerScene::renderUnemployedHome |
( |
GUIView * |
view | ) |
|
|
static |
Home page of a manager out of work (drawn by the dashboard).
◆ renderVacancies()
| void ManagerScene::renderVacancies |
( |
| ) |
|
|
private |
◆ renderVacancyDetail()
| void ManagerScene::renderVacancyDetail |
( |
const VacancyRow & |
row | ) |
|
|
private |
◆ runNationalAction()
| bool ManagerScene::runNationalAction |
( |
const PendingAction & |
action | ) |
|
|
private |
True when the pending action was a national-team one (and ran).
◆ runPendingAction()
| void ManagerScene::runPendingAction |
( |
| ) |
|
|
private |
◆ update()
| void ManagerScene::update |
( |
float |
deltaTime | ) |
|
|
overridevirtual |
Updates scene logic.
- Parameters
-
| deltaTime | The time elapsed since the last update. |
Implements GUIScene.
◆ GameFlowTest_GUIFlowLifecycle_Test
| friend class GameFlowTest_GUIFlowLifecycle_Test |
|
friend |
◆ accept_candidate
| std::uint32_t ManagerScene::accept_candidate = 0 |
|
private |
◆ accept_requested
| bool ManagerScene::accept_requested = false |
|
private |
◆ accept_text
| std::string ManagerScene::accept_text |
|
private |
◆ awards
| std::vector<AwardRow> ManagerScene::awards |
|
private |
◆ club_note
| std::string ManagerScene::club_note |
|
private |
◆ club_value
| std::string ManagerScene::club_value |
|
private |
◆ counter_wage
| std::int64_t ManagerScene::counter_wage = 0 |
|
private |
◆ counter_years
| int ManagerScene::counter_years = 1 |
|
private |
◆ interview_answers
◆ interview_close_requested
| bool ManagerScene::interview_close_requested = false |
|
private |
◆ interview_club
| TeamID ManagerScene::interview_club = 0 |
|
private |
◆ interview_club_name
| std::string ManagerScene::interview_club_name |
|
private |
◆ interview_requested
| bool ManagerScene::interview_requested = false |
|
private |
◆ interview_result
◆ interview_step
| std::size_t ManagerScene::interview_step = 0 |
|
private |
◆ interviews
| std::vector<TeamID> ManagerScene::interviews |
|
private |
◆ licence_note
| std::string ManagerScene::licence_note |
|
private |
◆ licence_value
| std::string ManagerScene::licence_value |
|
private |
◆ national_blocked
| bool ManagerScene::national_blocked = false |
|
private |
He has a club and is not famous enough to add a national team.
◆ national_facts
| std::vector<std::pair<const char*, std::string> > ManagerScene::national_facts |
|
private |
◆ national_history
| std::vector<std::string> ManagerScene::national_history |
|
private |
◆ national_job
| bool ManagerScene::national_job = false |
|
private |
◆ national_note
| std::string ManagerScene::national_note |
|
private |
◆ national_offers
◆ national_vacancies
◆ national_value
| std::string ManagerScene::national_value |
|
private |
◆ negotiating
| std::uint32_t ManagerScene::negotiating = 0 |
|
private |
◆ offers
| std::vector<OfferRow> ManagerScene::offers |
|
private |
◆ pending
◆ profile_facts
| std::vector<std::pair<const char*, std::string> > ManagerScene::profile_facts |
|
private |
◆ record_note
| std::string ManagerScene::record_note |
|
private |
◆ record_value
| std::string ManagerScene::record_value |
|
private |
◆ reputation
| float ManagerScene::reputation = 0.0f |
|
private |
◆ reputation_tier_key
| const char* ManagerScene::reputation_tier_key = "" |
|
private |
◆ reputation_value
| std::string ManagerScene::reputation_value |
|
private |
◆ resign_national_requested
| bool ManagerScene::resign_national_requested = false |
|
private |
◆ resign_requested
| bool ManagerScene::resign_requested = false |
|
private |
◆ seasons
◆ selected_nation
| int ManagerScene::selected_nation = -1 |
|
private |
◆ selected_vacancy
| TeamID ManagerScene::selected_vacancy = 0 |
|
private |
◆ stints
| std::vector<StintRow> ManagerScene::stints |
|
private |
◆ subtitle
| std::string ManagerScene::subtitle |
|
private |
◆ tab
◆ unemployed
| bool ManagerScene::unemployed = false |
|
private |
◆ vacancies
The documentation for this class was generated from the following files: