|
Player12
An open source football management simulator
|
Progress of the first-week checklist. More...
#include <onboarding.h>
Public Member Functions | |
| bool | complete (OnboardingTask task) |
| bool | isDone (OnboardingTask task) const |
| std::size_t | doneCount () const |
| bool | allDone () const |
| void | dismiss () |
| void | undismiss () |
| bool | isDismissed () const |
| bool | isVisible () const |
| std::uint32_t | doneMask () const |
| void | restore (std::uint32_t mask, bool was_dismissed) |
Private Attributes | |
| std::uint32_t | done_mask = 0 |
| bool | dismissed = false |
Progress of the first-week checklist.
Steps tick themselves when the manager does them; the checklist disappears for good once every step is done or the manager dismisses it.
|
inline |
| bool OnboardingState::complete | ( | OnboardingTask | task | ) |
Marks a step as done; true when it was not done before.
|
inline |
| std::size_t OnboardingState::doneCount | ( | ) | const |
|
inline |
|
inline |
| bool OnboardingState::isDone | ( | OnboardingTask | task | ) | const |
|
inline |
Still worth showing: neither finished nor dismissed.
| void OnboardingState::restore | ( | std::uint32_t | mask, |
| bool | was_dismissed | ||
| ) |
Restores persisted progress (unknown bits are dropped).
|
inline |
Brings a dismissed checklist back (steps already done stay done).
|
private |
|
private |