|
Player12
An open source football management simulator
|
One entry of the key-moments list. More...
#include <match_insights.h>
Public Types | |
| enum class | Kind : std::uint8_t { Goal , OwnGoal , BigChance , Woodwork , Yellow , SecondYellow , Red , Substitution } |
Public Attributes | |
| Kind | kind = Kind::Goal |
| std::uint8_t | minute = 0 |
| std::uint8_t | added = 0 |
| bool | home = true |
| PlayerID | player = 0 |
| PlayerID | other = 0 |
| float | xg = 0.0f |
| int | shot = -1 |
One entry of the key-moments list.
|
strong |
| std::uint8_t KeyMoment::added = 0 |
Minutes into added time (0 = none).
| bool KeyMoment::home = true |
Side the moment counts for (an own goal counts for the other side).
| Kind KeyMoment::kind = Kind::Goal |
| std::uint8_t KeyMoment::minute = 0 |
Clock minute.
| PlayerID KeyMoment::other = 0 |
Assist, or the player substituted off.
| PlayerID KeyMoment::player = 0 |
| int KeyMoment::shot = -1 |
Index into the snapshot's shots, or -1.
| float KeyMoment::xg = 0.0f |