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

The "your manager" card of the new-game club choice: name, nationality, experience (starting reputation and licence), preferred style, and the option to start without a club. More...

#include <manager_scene.h>

Public Types

enum class  Action : uint8_t { NONE , START_UNEMPLOYED }
 

Public Member Functions

Action render (const GameController &controller, float width)
 Draws the card across width.
 
ManagerSetup setup () const
 What the manager chose (names never empty).
 

Private Member Functions

void initialize (const GameController &controller)
 

Private Attributes

bool initialized = false
 
std::array< char, 40 > first_name {}
 
std::array< char, 40 > last_name {}
 
std::string default_first
 
std::string default_last
 
int nationality = 0
 
int background
 
int style = 0
 
int age = 42
 

Detailed Description

The "your manager" card of the new-game club choice: name, nationality, experience (starting reputation and licence), preferred style, and the option to start without a club.

Member Enumeration Documentation

◆ Action

enum class ManagerSetupPanel::Action : uint8_t
strong
Enumerator
NONE 
START_UNEMPLOYED 

Member Function Documentation

◆ initialize()

void ManagerSetupPanel::initialize ( const GameController &  controller)
private

◆ render()

ManagerSetupPanel::Action ManagerSetupPanel::render ( const GameController &  controller,
float  width 
)

Draws the card across width.

◆ setup()

ManagerSetup ManagerSetupPanel::setup ( ) const

What the manager chose (names never empty).

Member Data Documentation

◆ age

int ManagerSetupPanel::age = 42
private

◆ background

int ManagerSetupPanel::background
private
Initial value:
= static_cast<int>(

◆ default_first

std::string ManagerSetupPanel::default_first
private

◆ default_last

std::string ManagerSetupPanel::default_last
private

◆ first_name

std::array<char, 40> ManagerSetupPanel::first_name {}
private

◆ initialized

bool ManagerSetupPanel::initialized = false
private

◆ last_name

std::array<char, 40> ManagerSetupPanel::last_name {}
private

◆ nationality

int ManagerSetupPanel::nationality = 0
private

◆ style

int ManagerSetupPanel::style = 0
private

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