|
Player12
An open source football management simulator
|
Functions | |
| MatchContext | leagueContext (LeagueID league_id) |
| MatchSimulationResult | run (const MatchSimulationInput &input, const StatsConfig &config) |
| MatchContext MatchSimulation::leagueContext | ( | LeagueID | league_id | ) |
Engine context of a match played in the style of league league_id: its goal rate, referee strictness (mean and spread) and home advantage relative to the calibrated engine (LeagueProfile::match_style). League 0 or an unknown league gives the engine default. Live matches call this too, so a watched match plays like the same fixture simulated unwatched.
| MatchSimulationResult MatchSimulation::run | ( | const MatchSimulationInput & | input, |
| const StatsConfig & | config | ||
| ) |
Runs one match to full time. Thread-safe for distinct inputs.