| 1582 | } |
| 1583 | |
| 1584 | List<Dungeon::ConnectorConstPtr> DungeonGenerator::findConnectablePart(Dungeon::ConnectorConstPtr connector) const { |
| 1585 | List<Dungeon::ConnectorConstPtr> result; |
| 1586 | for (auto const& partPair : m_def->parts()) { |
| 1587 | if (partPair.second->doesNotConnectTo(connector->part())) |
| 1588 | continue; |
| 1589 | for (auto const& connection : partPair.second->connections()) { |
| 1590 | if (connection->connectsTo(connector)) |
| 1591 | result.append(connection); |
| 1592 | } |
| 1593 | } |
| 1594 | return result; |
| 1595 | } |
| 1596 | |
| 1597 | DungeonDefinitionConstPtr DungeonGenerator::definition() const { |
| 1598 | return m_def; |
nothing calls this directly
no test coverage detected