|
Player12
An open source football management simulator
|
#include <array>#include <cstdint>#include <span>#include <string>#include <vector>#include "global/types.h"#include "model/match_analysis.h"#include "model/match_report.h"#include "model/strategy.h"Go to the source code of this file.
Classes | |
| struct | OppositionOrder |
| An instruction stored for the next match against a club. More... | |
| class | OppositionPlan |
| Instructions against upcoming opponents, per opponent and player (OppositionInstruction is declared in model/tactics.h). The managed club's Strategy carries them into the match engine (see Strategy::setOppositionOrders and GameController). More... | |
| struct | OppositionPlayer |
| What the report knows about one opposing player. More... | |
| struct | KeyOpponent |
| A key player with the reason he stands out. More... | |
| struct | CounterTactic |
| A suggested adjustment of the managed tactic. More... | |
| struct | OppositionInput |
| Facts gathered for the opposition report. More... | |
| struct | OppositionAverages |
| Per-match averages of a side. More... | |
| struct | OppositionReport |
| The pre-match opposition report. More... | |
Namespaces | |
| namespace | OppositionRules |
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) |
Variables | |
| constexpr std::size_t | OppositionRules::RECENT_MATCHES = 5 |
| constexpr int | OppositionRules::MIN_MATCHES = 3 |
| constexpr std::size_t | OppositionRules::KEY_PLAYERS = 3 |
| constexpr std::size_t | OppositionRules::MAX_COUNTERS = 3 |
| constexpr float | OppositionRules::HIGH_RATIO = 1.15f |
| constexpr float | OppositionRules::LOW_RATIO = 0.85f |
| constexpr float | OppositionRules::HIGH_POSSESSION = 55.0f |
| constexpr float | OppositionRules::LOW_POSSESSION = 45.0f |
| constexpr float | OppositionRules::PASSING_MARGIN = 4.0f |
| constexpr float | OppositionRules::MAIN_THREAT_SHARE = 0.4f |
| constexpr int | OppositionRules::MAIN_THREAT_MIN_GOALS = 5 |
| Strategy applyCounter | ( | const Strategy & | strategy, |
| const CounterTactic & | counter | ||
| ) |
Applies a counter's slider shift to a tactic.
| OppositionReport buildOppositionReport | ( | const OppositionInput & | input | ) |
Builds the report (pure and deterministic).
| std::string formationLabel | ( | std::span< const PlayerRole > | starters | ) |
Formation label from the roles of a starting XI ("4-4-2").
| const char * oppositionInstructionKey | ( | OppositionInstruction | instruction | ) |
Language key of an instruction.