Season calendar: a month grid with the club's fixtures, breaks and club events, the month's agenda and the selected day's details (match report of a played fixture, the opponent's squad before it).
More...
#include <calendar_scene.h>
|
| struct | Day |
| | What happens on one day of the shown month. More...
|
| |
| struct | Entry |
| | One agenda entry, pre-formatted. More...
|
| |
|
| | CalendarScene (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.
|
| |
Season calendar: a month grid with the club's fixtures, breaks and club events, the month's agenda and the selected day's details (match report of a played fixture, the opponent's squad before it).
◆ CalendarScene()
| CalendarScene::CalendarScene |
( |
GUIView * |
parent | ) |
|
|
explicit |
◆ getID()
| SceneID CalendarScene::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.
◆ isToday()
| bool CalendarScene::isToday |
( |
int |
day | ) |
const |
|
private |
◆ navSection()
|
|
inlineoverrideprotectedvirtual |
◆ refresh()
| void CalendarScene::refresh |
( |
| ) |
|
|
overrideprotectedvirtual |
Rebuilds cached view models from the game state.
Reimplemented from ManagementScene.
◆ renderAgenda()
| void CalendarScene::renderAgenda |
( |
float |
width | ) |
|
|
private |
◆ renderContent()
| void CalendarScene::renderContent |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ renderDay()
| void CalendarScene::renderDay |
( |
float |
width | ) |
|
|
private |
◆ renderGrid()
| void CalendarScene::renderGrid |
( |
float |
width | ) |
|
|
private |
◆ renderToolbar()
| void CalendarScene::renderToolbar |
( |
| ) |
|
|
private |
◆ showMonth()
| void CalendarScene::showMonth |
( |
int |
year, |
|
|
int |
month |
|
) |
| |
|
private |
◆ update()
| void CalendarScene::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 |
◆ days
| std::array<Day, 32> CalendarScene::days {} |
|
private |
◆ days_in_month
| int CalendarScene::days_in_month = 0 |
|
private |
◆ entries
| std::vector<Entry> CalendarScene::entries |
|
private |
◆ first_weekday
| int CalendarScene::first_weekday = 0 |
|
private |
◆ month_entries
| std::vector<std::size_t> CalendarScene::month_entries |
|
private |
◆ month_title
| std::string CalendarScene::month_title |
|
private |
◆ season_first
◆ selected_day
| int CalendarScene::selected_day = 0 |
|
private |
◆ shown_month
| int CalendarScene::shown_month = 0 |
|
private |
◆ shown_year
| int CalendarScene::shown_year = 0 |
|
private |
◆ today
The documentation for this class was generated from the following files: