MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / resetTiles

Method resetTiles

src/Savegame/SavedBattleGame.cpp:1659–1667  ·  view source on GitHub ↗

* Resets visibility of all the tiles on the map. */

Source from the content-addressed store, hash-verified

1657 * Resets visibility of all the tiles on the map.
1658 */
1659void SavedBattleGame::resetTiles()
1660{
1661 for (int i = 0; i != getMapSizeXYZ(); ++i)
1662 {
1663 _tiles[i]->setDiscovered(false, 0);
1664 _tiles[i]->setDiscovered(false, 1);
1665 _tiles[i]->setDiscovered(false, 2);
1666 }
1667}
1668
1669/**
1670 * @return the tilesearch vector for use in AI functions.

Callers 1

handleMethod · 0.80

Calls 1

setDiscoveredMethod · 0.45

Tested by

no test coverage detected