| 1770 | } |
| 1771 | |
| 1772 | std::vector<GameEntity*> GameMap::getCarryableEntities(Creature* carrier, const std::vector<Tile*>& tiles) |
| 1773 | { |
| 1774 | std::vector<GameEntity*> returnList; |
| 1775 | |
| 1776 | // Loop over the visible tiles |
| 1777 | for (Tile* tile : tiles) |
| 1778 | { |
| 1779 | if(tile == nullptr) |
| 1780 | { |
| 1781 | OD_LOG_ERR("unexpected null tile"); |
| 1782 | continue; |
| 1783 | } |
| 1784 | |
| 1785 | tile->fillWithCarryableEntities(carrier, returnList); |
| 1786 | } |
| 1787 | |
| 1788 | return returnList; |
| 1789 | } |
| 1790 | |
| 1791 | void GameMap::clearRooms() |
| 1792 | { |
no test coverage detected