|
Player12
An open source football management simulator
|
Functions | |
| void | accumulate (PlayerSeasonTable &table, const MatchReport &report) |
| Adds the player lines of a competitive match to the season table. | |
| std::vector< PlayerSeasonStats > | topScorers (const PlayerSeasonTable &table, uint16_t season, MatchType competition_type, const std::vector< TeamID > &team_ids, size_t limit) |
| void SeasonStats::accumulate | ( | PlayerSeasonTable & | table, |
| const MatchReport & | report | ||
| ) |
Adds the player lines of a competitive match to the season table.
Goals/assists/cards are taken from the player lines; when the engine does not attribute them yet, goal events with a known scorer are used instead. Friendlies are ignored.
| std::vector< PlayerSeasonStats > SeasonStats::topScorers | ( | const PlayerSeasonTable & | table, |
| uint16_t | season, | ||
| MatchType | competition_type, | ||
| const std::vector< TeamID > & | team_ids, | ||
| size_t | limit | ||
| ) |
Top scorers (goals > 0) among team_ids for a season and competition.