GameLogic
 All Data Structures Files Functions Variables Friends
conversions.h
Go to the documentation of this file.
1 
8 #ifndef SOPRAGAMELOGIC_CONVERSIONS_H
9 #define SOPRAGAMELOGIC_CONVERSIONS_H
10 
11 #include "GameModel.h"
12 
13 namespace gameLogic::conversions{
19  auto foulToBanReason(gameModel::Foul foul) -> communication::messages::types::BanReason;
20 
27  auto interferenceToId(gameModel::InterferenceType type, gameModel::TeamSide side) -> communication::messages::types::EntityId;
28 
34  bool isFan(communication::messages::types::EntityId id);
35 
41  bool isBall(communication::messages::types::EntityId id);
42 
48  bool isPlayer(communication::messages::types::EntityId id);
49 
56  auto idToSide(communication::messages::types::EntityId id) -> gameModel::TeamSide;
57 
64  auto idToFantype(communication::messages::types::EntityId id) -> communication::messages::types::FanType;
65 
71  auto fanToInterference(communication::messages::types::FanType fanType) -> gameModel::InterferenceType;
72 
78  auto interferenceToFan(gameModel::InterferenceType type) -> communication::messages::types::FanType;
79 }
80 
81 #endif //SOPRAGAMELOGIC_CONVERSIONS_H
Declaration of multiple classes for the game model.