Player12
An open source football management simulator
Loading...
Searching...
No Matches
StaffMember Struct Reference

A coach, medic, scout or academy manager. More...

#include <staff.h>

Public Member Functions

std::string name () const
 
std::uint8_t attribute (StaffAttribute which) const
 

Public Attributes

StaffID id = 0
 
TeamID team_id = 0
 
std::string first_name
 
std::string last_name
 
Language nationality = Language::EN
 
std::uint8_t age = 40
 
StaffRole role = StaffRole::AssistantManager
 
std::array< std::uint8_t, STAFF_ATTRIBUTE_COUNT > attributes {}
 
std::uint32_t wage = 0
 
std::uint8_t contract_years = 0
 

Detailed Description

A coach, medic, scout or academy manager.

team_id 0 means unattached (on the staff market). contract_years counts the remaining seasons including the current one, like player contracts.

Member Function Documentation

◆ attribute()

std::uint8_t StaffMember::attribute ( StaffAttribute  which) const
inline

◆ name()

std::string StaffMember::name ( ) const
inline

Member Data Documentation

◆ age

std::uint8_t StaffMember::age = 40

◆ attributes

std::array<std::uint8_t, STAFF_ATTRIBUTE_COUNT> StaffMember::attributes {}

◆ contract_years

std::uint8_t StaffMember::contract_years = 0

◆ first_name

std::string StaffMember::first_name

◆ id

StaffID StaffMember::id = 0

◆ last_name

std::string StaffMember::last_name

◆ nationality

Language StaffMember::nationality = Language::EN

◆ role

◆ team_id

TeamID StaffMember::team_id = 0

◆ wage

std::uint32_t StaffMember::wage = 0

Weekly.


The documentation for this struct was generated from the following file: