|
Player12
An open source football management simulator
|
#include <lab_runner.h>
Public Member Functions | |
| int | totalGoals () const |
Public Attributes | |
| std::uint32_t | seed = 0 |
| bool | detailed = false |
| bool | abandoned = false |
| std::array< float, 2 > | rating {} |
| std::array< int, 2 > | goals {} |
| std::array< int, 2 > | shots {} |
| std::array< int, 2 > | on_target {} |
| std::array< int, 2 > | passes_attempted {} |
| std::array< int, 2 > | passes_completed {} |
| std::array< int, 2 > | fouls {} |
| std::array< double, 2 > | xg {} |
| float | home_possession = 50.0f |
| int | corners = 0 |
| int | yellows = 0 |
| int | reds = 0 |
| int | offsides = 0 |
| int | own_goals = 0 |
| int | late_goals = 0 |
| std::array< int, GOAL_TIME_BINS > | goal_bins {} |
| int | inside_box = 0 |
| int | headed_goals = 0 |
| int | set_piece_goals = 0 |
| int | penalty_goals = 0 |
| int | penalties = 0 |
| int | substitutions = 0 |
| double | substitution_minute_sum = 0.0 |
| int | injuries = 0 |
| int | added_minutes = 0 |
| double | ball_in_play = 0.0 |
| double | match_length = 0.0 |
| int | full_match_players = 0 |
| double | full_match_distance = 0.0 |
| double | first_half_distance = 0.0 |
| double | second_half_distance = 0.0 |
| double | first_half_minutes = 0.0 |
| double | second_half_minutes = 0.0 |
| std::array< double, 3 > | state_minutes {} |
| std::array< int, 3 > | state_goals {} |
| std::array< double, 3 > | strength_minutes {} |
| std::array< int, 3 > | strength_goals {} |
Compact per-match record extracted on the simulating thread. Index 0 is the home team, 1 the away team. detailed samples come from the live engine; world samples built from a MatchReport lack the engine-only fields (they stay 0 and the metrics needing them are skipped).
|
inline |
| bool Lab::MatchSample::abandoned = false |
| int Lab::MatchSample::added_minutes = 0 |
| double Lab::MatchSample::ball_in_play = 0.0 |
| int Lab::MatchSample::corners = 0 |
| bool Lab::MatchSample::detailed = false |
| double Lab::MatchSample::first_half_distance = 0.0 |
Distance of those players by half and the half lengths (minutes).
| double Lab::MatchSample::first_half_minutes = 0.0 |
| std::array<int, 2> Lab::MatchSample::fouls {} |
| double Lab::MatchSample::full_match_distance = 0.0 |
| int Lab::MatchSample::full_match_players = 0 |
Outfield starters who played the whole match.
| std::array<int, GOAL_TIME_BINS> Lab::MatchSample::goal_bins {} |
| std::array<int, 2> Lab::MatchSample::goals {} |
| int Lab::MatchSample::headed_goals = 0 |
| float Lab::MatchSample::home_possession = 50.0f |
| int Lab::MatchSample::injuries = 0 |
| int Lab::MatchSample::inside_box = 0 |
| int Lab::MatchSample::late_goals = 0 |
Goals at second-half clock minute >= 90.
| double Lab::MatchSample::match_length = 0.0 |
| int Lab::MatchSample::offsides = 0 |
| std::array<int, 2> Lab::MatchSample::on_target {} |
| int Lab::MatchSample::own_goals = 0 |
| std::array<int, 2> Lab::MatchSample::passes_attempted {} |
| std::array<int, 2> Lab::MatchSample::passes_completed {} |
| int Lab::MatchSample::penalties = 0 |
| int Lab::MatchSample::penalty_goals = 0 |
| std::array<float, 2> Lab::MatchSample::rating {} |
| int Lab::MatchSample::reds = 0 |
| double Lab::MatchSample::second_half_distance = 0.0 |
| double Lab::MatchSample::second_half_minutes = 0.0 |
| std::uint32_t Lab::MatchSample::seed = 0 |
| int Lab::MatchSample::set_piece_goals = 0 |
Includes penalties (engine definition of a set-piece shot).
| std::array<int, 2> Lab::MatchSample::shots {} |
| std::array<int, 3> Lab::MatchSample::state_goals {} |
| std::array<double, 3> Lab::MatchSample::state_minutes {} |
Team-minutes and goals by game state, summed over both teams.
| std::array<int, 3> Lab::MatchSample::strength_goals {} |
| std::array<double, 3> Lab::MatchSample::strength_minutes {} |
| double Lab::MatchSample::substitution_minute_sum = 0.0 |
| int Lab::MatchSample::substitutions = 0 |
| std::array<double, 2> Lab::MatchSample::xg {} |
| int Lab::MatchSample::yellows = 0 |