8 #ifndef SOPRAGAMELOGIC_CONVERSIONS_H
9 #define SOPRAGAMELOGIC_CONVERSIONS_H
13 namespace gameLogic::conversions{
19 auto foulToBanReason(gameModel::Foul foul) -> communication::messages::types::BanReason;
27 auto interferenceToId(gameModel::InterferenceType type, gameModel::TeamSide side) -> communication::messages::types::EntityId;
34 bool isFan(communication::messages::types::EntityId
id);
41 bool isBall(communication::messages::types::EntityId
id);
48 bool isPlayer(communication::messages::types::EntityId
id);
56 auto idToSide(communication::messages::types::EntityId
id) -> gameModel::TeamSide;
64 auto idToFantype(communication::messages::types::EntityId
id) -> communication::messages::types::FanType;
71 auto fanToInterference(communication::messages::types::FanType fanType) -> gameModel::InterferenceType;
78 auto interferenceToFan(gameModel::InterferenceType type) -> communication::messages::types::FanType;
81 #endif //SOPRAGAMELOGIC_CONVERSIONS_H
Declaration of multiple classes for the game model.