| 156 | } |
| 157 | |
| 158 | static bool get_pathability_groups(color_ostream &out, unordered_set<uint16_t> * depot_pathability_groups, |
| 159 | const unordered_set<df::coord> & depot_coords) |
| 160 | { |
| 161 | CHECK_NULL_POINTER(depot_pathability_groups); |
| 162 | |
| 163 | for (auto pos : depot_coords) { |
| 164 | auto wgroup = Maps::getWalkableGroup(pos); |
| 165 | if (wgroup) { |
| 166 | DEBUG(log,out).print("walkability group at ({}, {}, {}) is {}\n", pos.x, pos.y, pos.z, wgroup); |
| 167 | depot_pathability_groups->emplace(wgroup); |
| 168 | } |
| 169 | } |
| 170 | return !depot_pathability_groups->empty(); |
| 171 | } |
| 172 | |
| 173 | // if entry_tiles is given, it is filled with the surface edge tiles that match one of the given |
| 174 | // depot pathability groups. If entry_tiles is NULL, just returns true if such a tile is found. |
no test coverage detected