| 67 | |
| 68 | template<class Func> |
| 69 | void Map::ProcessElementLinks( |
| 70 | const MapData::IndexElement::Type element_type, |
| 71 | const unsigned int index, |
| 72 | const Func& func ) |
| 73 | { |
| 74 | for( const MapData::Link& link : map_data_->links ) |
| 75 | { |
| 76 | const MapData::IndexElement& index_element= map_data_->map_index[ link.x + link.y * MapData::c_map_size ]; |
| 77 | |
| 78 | if( index_element.type == element_type && index_element.index == index ) |
| 79 | func( link ); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | Map::Map( |
| 84 | const DifficultyType difficulty, |
nothing calls this directly
no outgoing calls
no test coverage detected