|
Player12
An open source football management simulator
|
A screen of the career as the recipe to open it again (which section, player, club or fixture), never the screen object itself. More...
#include <nav_history.h>
Public Types | |
| enum class | Kind : uint8_t { SECTION , PLAYER , CLUB , MATCH_REPORT , COMPARE } |
Public Member Functions | |
| bool | isDetail () const |
| True for screens opened on top of another one (a profile, a report, a comparison of chosen players) rather than from the sidebar. | |
| bool | operator== (const NavEntry &other) const =default |
Static Public Member Functions | |
| static NavEntry | ofSection (NavSection section) |
| static NavEntry | ofPlayer (PlayerID player) |
| static NavEntry | ofClub (TeamID team) |
| static NavEntry | ofMatchReport (GameDateValue date, TeamID home, TeamID away) |
| static NavEntry | ofCompare (PlayerID first, PlayerID second) |
Public Attributes | |
| Kind | kind = Kind::SECTION |
| NavSection | section = NavSection::HOME |
| PlayerID | player = 0 |
| PlayerID | second_player = 0 |
| TeamID | team = 0 |
| TeamID | away_team = 0 |
| GameDateValue | date {} |
A screen of the career as the recipe to open it again (which section, player, club or fixture), never the screen object itself.
|
strong |
| bool NavEntry::isDetail | ( | ) | const |
True for screens opened on top of another one (a profile, a report, a comparison of chosen players) rather than from the sidebar.
|
static |
|
static |
|
default |
| TeamID NavEntry::away_team = 0 |
MATCH_REPORT: the away side.
| GameDateValue NavEntry::date {} |
MATCH_REPORT: the day it was played.
| Kind NavEntry::kind = Kind::SECTION |
| PlayerID NavEntry::player = 0 |
PLAYER, or the first compared player.
| PlayerID NavEntry::second_player = 0 |
COMPARE: the second compared player.
| NavSection NavEntry::section = NavSection::HOME |
SECTION only.
| TeamID NavEntry::team = 0 |
CLUB, or the home side of a report.