|
Player12
An open source football management simulator
|
Short welcome tour of a new career: the club, what the board expects, the next thing to do and how Continue works. More...
#include <welcome_tour.h>
Public Member Functions | |
| void | open (const GameController &controller) |
| void | render () |
| bool | isOpen () const |
| std::size_t | page () const |
| void | next () |
| void | back () |
| void | close () |
| const std::string & | body (std::size_t index) const |
Static Public Attributes | |
| static constexpr std::size_t | PAGE_COUNT = 4 |
Private Attributes | |
| bool | visible = false |
| bool | open_requested = false |
| std::size_t | current_page = 0 |
| std::string | club_name |
| std::array< std::string, PAGE_COUNT > | bodies |
| std::string | next_action_title |
| std::string | next_action_reason |
Short welcome tour of a new career: the club, what the board expects, the next thing to do and how Continue works.
It opens once when a career is started from the club choice (and again on request from the Help screen), so nothing about it is stored in a save. Every page can be skipped; the texts come from the career's real state, read once when the tour opens.
| void WelcomeTour::back | ( | ) |
Moves to the previous page.
|
inline |
Body text of a page (for tests).
| void WelcomeTour::close | ( | ) |
Closes the tour.
|
inline |
| void WelcomeTour::next | ( | ) |
Moves to the next page; closes after the last one.
| void WelcomeTour::open | ( | const GameController & | controller | ) |
Reads the career state and shows the first page next frame.
|
inline |
| void WelcomeTour::render | ( | ) |
Draws the tour while it is open (a modal dialog).
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticconstexpr |
Pages, in order.
|
private |