Player12
An open source football management simulator
Loading...
Searching...
No Matches
national_job.h File Reference
#include <cstdint>
#include <memory>
#include <optional>
#include <vector>
#include "global/languages.h"
#include "global/types.h"
#include "model/gamedate.h"
#include "model/manager_career.h"
#include "model/national_teams.h"

Go to the source code of this file.

Classes

struct  NationalJob
 The human manager in charge of a national team. More...
 
struct  NationalStint
 An earlier national-team job (values of reason are persisted). More...
 
struct  NationalVacancy
 A national team looking for a head coach. More...
 
struct  NationalApplication
 
struct  NationalJobOffer
 A federation's offer to the human manager. More...
 
struct  NationalDayEvents
 What changed on the latest simulated day. More...
 
class  NationalManagement
 National-team jobs of the human manager: vacancies, applications and offers, the job itself (results, reputation, qualification, contract) and the AI head coaches who fill the other vacancies. More...
 
struct  NationalManagement::QueuedResult
 
struct  NationalManagement::QueuedFinals
 

Namespaces

namespace  NationalJobModel
 

Enumerations

enum class  NationalApplicationStage : std::uint8_t { Pending = 0 , Rejected , Offered }
 Where an application stands (values are persisted). More...
 
enum class  NationalApplyResult : std::uint8_t {
  Ok = 0 , NoVacancy , AlreadyApplied , AlreadyInCharge ,
  NeedsReputation , ClubConflict , NoProfile , NoOffer ,
  RecentlyLeft
}
 

Functions

float NationalJobModel::stature (std::size_t rank, std::size_t nations)
 
CoachingLicence NationalJobModel::requiredLicence (float stature)
 
float NationalJobModel::applicationChance (float reputation, CoachingLicence licence, float stature, bool compatriot)
 
std::int64_t NationalJobModel::weeklyWage (float stature)
 
bool NationalJobModel::canCombineWithClub (float reputation)
 
GameDateValue NationalJobModel::contractEnd (const GameDateValue &start)
 
float NationalJobModel::resultReputation (International::Competition competition, double expected, double actual)
 
const char * NationalJobModel::applyResultKey (NationalApplyResult result)
 

Variables

constexpr float NationalJobModel::MIN_REPUTATION = 45.0f
 
constexpr float NationalJobModel::DUAL_ROLE_REPUTATION = 70.0f
 

Enumeration Type Documentation

◆ NationalApplicationStage

enum class NationalApplicationStage : std::uint8_t
strong

Where an application stands (values are persisted).

Enumerator
Pending 
Rejected 
Offered 

◆ NationalApplyResult

enum class NationalApplyResult : std::uint8_t
strong
Enumerator
Ok 
NoVacancy 
AlreadyApplied 
AlreadyInCharge 

He already coaches a national team.

NeedsReputation 

Federations only consider established managers.

ClubConflict 

Not famous enough to combine it with his club.

NoProfile 
NoOffer 
RecentlyLeft 

He left this national team less than a year ago.