MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / getCarryableEntities

Method getCarryableEntities

source/gamemap/GameMap.cpp:1772–1789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1770}
1771
1772std::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
1791void GameMap::clearRooms()
1792{

Callers 1

Calls 1

Tested by

no test coverage detected