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

One structured event of a finished match (scorer, card...). More...

#include <match_report.h>

Public Attributes

uint8_t minute = 0
 
uint8_t added_minute = 0
 
MatchEventKind kind = MatchEventKind::GOAL
 
bool home = true
 
PlayerID player = 0
 
PlayerID assist = 0
 

Detailed Description

One structured event of a finished match (scorer, card...).

home is the side of player; an OWN_GOAL therefore counts for the other side. minute is the match clock; when added_minute > 0 the event happened in added time ("45+2'" is minute 47 with added_minute 2).

Member Data Documentation

◆ added_minute

uint8_t MatchReportEvent::added_minute = 0

◆ assist

PlayerID MatchReportEvent::assist = 0

0 when there was no (known) assist.

◆ home

bool MatchReportEvent::home = true

◆ kind

MatchEventKind MatchReportEvent::kind = MatchEventKind::GOAL

◆ minute

uint8_t MatchReportEvent::minute = 0

◆ player

PlayerID MatchReportEvent::player = 0

0 when the engine did not attribute it.


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