Player12
An open source football management simulator
Loading...
Searching...
No Matches
delegation.h File Reference
#include <array>
#include <cstddef>
#include <cstdint>
#include <optional>
#include <utility>

Go to the source code of this file.

Classes

class  DelegationPolicy
 Who handles each duty of the managed club. More...
 

Enumerations

enum class  Duty : std::uint8_t {
  LineupFixes = 0 , Substitutions , TrainingSchedule , ContractRenewals ,
  ScoutingAssignments , Friendlies , YouthContracts , COUNT
}
 Recurring jobs the manager may hand to the backroom staff. More...
 
enum class  DutyOwner : std::uint8_t { Manager = 0 , Assistant }
 Who takes care of a duty (values are persisted). More...
 
enum class  DelegationPreset : std::uint8_t { HandsOn = 0 , Balanced , AssistantRuns , COUNT }
 Named delegation profiles offered on the delegation screen. More...
 

Functions

const char * dutyKey (Duty duty)
 
const char * dutyHelpKey (Duty duty)
 
const char * delegationPresetKey (DelegationPreset preset)
 

Variables

constexpr std::size_t DUTY_COUNT
 

Enumeration Type Documentation

◆ DelegationPreset

enum class DelegationPreset : std::uint8_t
strong

Named delegation profiles offered on the delegation screen.

Enumerator
HandsOn 

The manager decides everything that can be decided.

Balanced 

Matchday safety nets delegated, squad business kept.

AssistantRuns 

The assistant runs the daily operations.

COUNT 

◆ Duty

enum class Duty : std::uint8_t
strong

Recurring jobs the manager may hand to the backroom staff.

Values are persisted (table DelegatedDuties); append new duties at the end.

Enumerator
LineupFixes 

Replace injured/suspended players before kick-off.

Substitutions 

In-match changes of the managed side.

TrainingSchedule 

Squad intensity and congestion weeks.

ContractRenewals 

Final-year renewals of players outside the core.

ScoutingAssignments 

Idle scouts are sent out.

Friendlies 

Pre-season friendly opponents.

YouthContracts 

Contracts for the youth intake trialists.

COUNT 

◆ DutyOwner

enum class DutyOwner : std::uint8_t
strong

Who takes care of a duty (values are persisted).

Enumerator
Manager 
Assistant 

Function Documentation

◆ delegationPresetKey()

const char * delegationPresetKey ( DelegationPreset  preset)

Language key naming a preset.

◆ dutyHelpKey()

const char * dutyHelpKey ( Duty  duty)

Language key explaining what the assistant does for a duty.

◆ dutyKey()

const char * dutyKey ( Duty  duty)

Language key naming a duty ("DELEGATION_DUTY_LINEUP"...).

Variable Documentation

◆ DUTY_COUNT

constexpr std::size_t DUTY_COUNT
inlineconstexpr
Initial value:
=
static_cast<std::size_t>(std::to_underlying(Duty::COUNT))