Player12
An open source football management simulator
Loading...
Searching...
No Matches
AwardRecord Struct Reference

One honour given in a league. More...

#include <awards.h>

Public Attributes

std::uint16_t season_year = 0
 
std::uint8_t month = 0
 
LeagueID league_id = 0
 
AwardType type = AwardType::PlayerOfMonth
 
PlayerID player_id = 0
 
TeamID team_id = 0
 
TeamID opponent_id = 0
 
std::string name
 
float value = 0.0f
 
std::uint16_t count = 0
 
std::uint8_t slot = 0
 
GameDateValue date
 

Detailed Description

One honour given in a league.

Manager awards name the club (player_id 0). The player's name is kept because winners retire and leave the database. value/count depend on the award: average rating and appearances (player awards), goals and minutes (Golden Boot), clean sheets and appearances (Golden Glove), points above expectation and matches (manager awards), goal minute (Goal of the Month).

Member Data Documentation

◆ count

std::uint16_t AwardRecord::count = 0

◆ date

GameDateValue AwardRecord::date

Goal of the Month: match date.

◆ league_id

LeagueID AwardRecord::league_id = 0

◆ month

std::uint8_t AwardRecord::month = 0

1-12 for monthly awards, else 0.

◆ name

std::string AwardRecord::name

◆ opponent_id

TeamID AwardRecord::opponent_id = 0

Goal of the Month: the opponent.

◆ player_id

PlayerID AwardRecord::player_id = 0

◆ season_year

std::uint16_t AwardRecord::season_year = 0

Calendar year the season started.

◆ slot

std::uint8_t AwardRecord::slot = 0

Team of the Season position (0 = GK).

◆ team_id

TeamID AwardRecord::team_id = 0

◆ type

AwardType AwardRecord::type = AwardType::PlayerOfMonth

◆ value

float AwardRecord::value = 0.0f

The documentation for this struct was generated from the following file: