|
Player12
An open source football management simulator
|
#include <cstdint>#include <string_view>#include <unordered_map>Go to the source code of this file.
Enumerations | |
| enum class | Role : uint8_t { GKP , CB , LB , RB , LWB , RWB , CDM , CM , CAM , LM , RM , LWM , RWM , ST , CF , LW , RW , LF , RF } |
| Represents the positional role of a player on the field. More... | |
Variables | |
| const std::unordered_map< std::string_view, Role > | strToRole |
| Maps a string representation of a role to its Role enum value. Used for parsing input. | |
| const std::unordered_map< Role, std::string_view > | roleToStr |
| Maps a Role enum value to its string representation. | |
|
strong |
Represents the positional role of a player on the field.
|
inline |
Maps a Role enum value to its string representation.