1#ifndef LIBS_CHANNELS_CMOVECHANNELRESTRICTIONS_HPP_
2#define LIBS_CHANNELS_CMOVECHANNELRESTRICTIONS_HPP_
37 std::map<TUnitChannel, std::set<TUnitChannel>>
Definition CMoveChannelRestrictions.hpp:9
CMoveChannelRestrictions & operator=(const CMoveChannelRestrictions &other)=default
void calculateDstUnitsAllowed(const TUnitChannel &srcUnitChannel)
Definition CMoveChannelRestrictions.cpp:154
CMoveChannelRestrictions()
Definition CMoveChannelRestrictions.cpp:10
std::pair< TUnitChannel, TUnitChannel > TChannelMove
Definition CMoveChannelRestrictions.hpp:11
bool checkDstChannelIsCompatible(const TUnitChannel &srcUnitChannel, const TUnitChannel &dstUnitChannel)
Definition CMoveChannelRestrictions.cpp:84
std::set< iv::types::unitId > getDstUnitsAllowed(const TUnitChannel &srcUnitChannel)
Definition CMoveChannelRestrictions.cpp:14
bool checkDstChannelOk(const TUnitChannel &srcUnitChannel, const TUnitChannel &dstUnitChannel)
Definition CMoveChannelRestrictions.cpp:148
void calculateDstUnitChannelsAllowed(const TUnitChannel &srcUnitChannel, uint16_t dstUnitId)
Definition CMoveChannelRestrictions.cpp:180
~CMoveChannelRestrictions()=default
std::set< iv::types::channelOrder > getDstUnitChannelsAllowed(const TUnitChannel &srcUnitChannel, uint16_t dstUnitId)
Definition CMoveChannelRestrictions.cpp:35
CMoveChannelRestrictions(CMoveChannelRestrictions &&other)=delete
bool checkDstUnitOk(const TUnitChannel &srcUnitChannel, uint16_t dstUnitId)
Definition CMoveChannelRestrictions.cpp:73
bool isValidMove(const TChannelMove &move)
Definition CMoveChannelRestrictions.cpp:58
bool checkDstUnitIsCompatible(const TUnitChannel &srcUnitChannel, uint16_t dstUnitId)
Definition CMoveChannelRestrictions.cpp:68
bool checkDstChannelIsNotSelf(const TUnitChannel &srcUnitChannel, const TUnitChannel &dstUnitChannel)
Definition CMoveChannelRestrictions.cpp:78
std::map< TUnitChannel, std::set< TUnitChannel > > m_mapSrcDstRestrictions
Definition CMoveChannelRestrictions.hpp:38
CMoveChannelRestrictions & operator=(CMoveChannelRestrictions &&other)=delete
bool checkDstUnitNotFull(uint16_t unitId)
Definition CMoveChannelRestrictions.cpp:63
Definition CUnitsRestrictions.hpp:16
std::pair< iv::types::unitId, iv::types::channelOrder > TUnitChannel
Definition CUnitsRestrictions.hpp:18