Player12
An open source football management simulator
Loading...
Searching...
No Matches
NextStepsCard Class Reference

Home card: first-week checklist (while visible) and the top next steps with their reasons and a button to act on each. More...

#include <onboarding_overlay.h>

Classes

struct  Row
 

Public Member Functions

void refresh (const GameController &controller)
 
void render (GUIView *view, float width)
 

Static Public Attributes

static constexpr std::size_t MAX_ROWS = 3
 

Private Attributes

std::vector< Row > rows
 
OnboardingState checklist
 
bool refreshed = false
 

Detailed Description

Home card: first-week checklist (while visible) and the top next steps with their reasons and a button to act on each.

Member Function Documentation

◆ refresh()

void NextStepsCard::refresh ( const GameController &  controller)

Rebuilds the rows from the game state (call from refresh()).

◆ render()

void NextStepsCard::render ( GUIView *  view,
float  width 
)

Draws the card across width (auto height, never scrolls).

Member Data Documentation

◆ checklist

OnboardingState NextStepsCard::checklist
private

◆ MAX_ROWS

constexpr std::size_t NextStepsCard::MAX_ROWS = 3
staticconstexpr

Actions shown on Home.

◆ refreshed

bool NextStepsCard::refreshed = false
private

◆ rows

std::vector<Row> NextStepsCard::rows
private

The documentation for this class was generated from the following files: