| 2010 | } |
| 2011 | |
| 2012 | void GameMap::clearMapLights() |
| 2013 | { |
| 2014 | // We need to work on a copy of mMapLights because removeFromGameMap will remove them from this vector |
| 2015 | std::vector<MapLight*> mapLights = mMapLights; |
| 2016 | for (MapLight* mapLight : mapLights) |
| 2017 | { |
| 2018 | mapLight->removeFromGameMap(); |
| 2019 | mapLight->deleteYourself(); |
| 2020 | } |
| 2021 | |
| 2022 | mMapLights.clear(); |
| 2023 | } |
| 2024 | |
| 2025 | void GameMap::addMapLight(MapLight *m) |
| 2026 | { |
nothing calls this directly
no test coverage detected