Medical centre: injured players with their expected return and recurrence risk, the injury risk of the available squad from workload and freshness, and what the physios and doctors contribute.
More...
#include <medical_scene.h>
|
| | MedicalScene (GUIView *parent) |
| |
| 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.
|
| |
Medical centre: injured players with their expected return and recurrence risk, the injury risk of the available squad from workload and freshness, and what the physios and doctors contribute.
◆ MedicalScene()
| MedicalScene::MedicalScene |
( |
GUIView * |
parent | ) |
|
|
explicit |
◆ getID()
| SceneID MedicalScene::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.
◆ nameCell()
| void MedicalScene::nameCell |
( |
PlayerID |
id, |
|
|
const std::string & |
name, |
|
|
const std::string & |
role, |
|
|
bool |
returning |
|
) |
| |
|
private |
Name cell of both tables: selects the player for the load card.
◆ navSection()
|
|
inlineoverrideprotectedvirtual |
◆ refresh()
| void MedicalScene::refresh |
( |
| ) |
|
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
◆ renderContent()
| void MedicalScene::renderContent |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ renderInjured()
| void MedicalScene::renderInjured |
( |
float |
width | ) |
|
|
private |
◆ renderLoadChart()
| void MedicalScene::renderLoadChart |
( |
float |
height | ) |
|
|
private |
◆ renderPlayerLoad()
| void MedicalScene::renderPlayerLoad |
( |
float |
width | ) |
|
|
private |
Load chart and medical instructions of the selected player.
◆ renderRisk()
| void MedicalScene::renderRisk |
( |
float |
width | ) |
|
|
private |
◆ renderStaff()
| void MedicalScene::renderStaff |
( |
float |
width | ) |
|
|
private |
◆ select()
| void MedicalScene::select |
( |
PlayerID |
id | ) |
|
|
private |
Selects id for the load card and reads his chart and flags.
◆ setFlag()
| void MedicalScene::setFlag |
( |
std::byte |
flag, |
|
|
bool |
enabled |
|
) |
| |
|
private |
◆ update()
| void MedicalScene::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 |
◆ average_condition
| float MedicalScene::average_condition = 0.0f |
|
private |
◆ average_sharpness
| float MedicalScene::average_sharpness = 0.0f |
|
private |
◆ chart
◆ chart_empty
| bool MedicalScene::chart_empty = true |
|
private |
◆ chart_today
| std::int32_t MedicalScene::chart_today = 0 |
|
private |
◆ days_lost
| int MedicalScene::days_lost = 0 |
|
private |
◆ high_risk
| int MedicalScene::high_risk = 0 |
|
private |
◆ injured
◆ prevention_effect
| std::string MedicalScene::prevention_effect |
|
private |
◆ prevention_good
| bool MedicalScene::prevention_good = false |
|
private |
◆ recovery_effect
| std::string MedicalScene::recovery_effect |
|
private |
e.g. "-8% layoff length".
◆ recovery_good
| bool MedicalScene::recovery_good = false |
|
private |
◆ risks
| std::vector<RiskLine> MedicalScene::risks |
|
private |
◆ selected
Player shown in the load card (0: none) and his cached data.
◆ selected_flags
| std::byte MedicalScene::selected_flags {} |
|
private |
◆ selected_name
| std::string MedicalScene::selected_name |
|
private |
◆ show_all
| bool MedicalScene::show_all = false |
|
private |
Risk table: everyone or only raised risk.
◆ staff
The documentation for this class was generated from the following files: