|
Player12
An open source football management simulator
|
#include <cstdint>#include <string>#include <string_view>#include "global/types.h"#include "model/match_tuning.h"Go to the source code of this file.
Classes | |
| struct | MatchEvent |
| struct | PlayerMatchStats |
| struct | MatchSubstitution |
Enumerations | |
| enum class | MatchEventType : std::uint8_t { INFO , KICK_OFF , GOAL , OWN_GOAL , SHOT , SAVE , SHOT_BLOCKED , SHOT_OFF_TARGET , WOODWORK , FOUL , ADVANTAGE , YELLOW_CARD , SECOND_YELLOW , RED_CARD , INJURY , SUBSTITUTION , OFFSIDE , CORNER , FREE_KICK , PENALTY , PENALTY_MISSED , THROW_IN , GOAL_KICK , ADDED_TIME , HALF_TIME , SECOND_HALF , FULL_TIME , PENALTY_SHOOTOUT } |
| enum class | MatchEventDetail : std::uint8_t { NONE , HEADER , PARRIED , TIPPED_BEHIND , WALL , CONTACT , ABANDONED , SCORED , SAVED , MISSED } |
| enum class | SubstitutionReason : std::uint8_t { MANUAL , FATIGUE , INJURY , TACTICAL , CARD_RISK , GOALKEEPER_REPLACEMENT } |
Functions | |
| std::string_view | matchEventTypeName (MatchEventType type) |
|
strong |
Variant of an event, for the commentary (MatchEvent::detail).
|
strong |
Machine-readable category of a match event.
|
strong |
| std::string_view matchEventTypeName | ( | MatchEventType | type | ) |