Player12
An open source football management simulator
Loading...
Searching...
No Matches
opposition_report.cpp File Reference
#include "model/opposition_report.h"
#include <algorithm>
#include <cmath>
#include <format>
#include <utility>
#include "model/data_hub.h"
#include "model/world_rng.h"

Functions

const char * oppositionInstructionKey (OppositionInstruction instruction)
 
std::string formationLabel (std::span< const PlayerRole > starters)
 
OppositionReport buildOppositionReport (const OppositionInput &input)
 
Strategy applyCounter (const Strategy &strategy, const CounterTactic &counter)
 

Function Documentation

◆ applyCounter()

Strategy applyCounter ( const Strategy &  strategy,
const CounterTactic &  counter 
)

Applies a counter's slider shift to a tactic.

◆ buildOppositionReport()

OppositionReport buildOppositionReport ( const OppositionInput &  input)

Builds the report (pure and deterministic).

◆ formationLabel()

std::string formationLabel ( std::span< const PlayerRole >  starters)

Formation label from the roles of a starting XI ("4-4-2").

◆ oppositionInstructionKey()

const char * oppositionInstructionKey ( OppositionInstruction  instruction)

Language key of an instruction.