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

Method cacheUnits

src/Battlescape/Map.cpp:1370–1376  ·  view source on GitHub ↗

* Checks all units for if they need to be redrawn. */

Source from the content-addressed store, hash-verified

1368 * Checks all units for if they need to be redrawn.
1369 */
1370void Map::cacheUnits()
1371{
1372 for (std::vector<BattleUnit*>::iterator i = _save->getUnits()->begin(); i != _save->getUnits()->end(); ++i)
1373 {
1374 cacheUnit(*i);
1375 }
1376}
1377
1378/**
1379 * Check if a certain unit needs to be redrawn.

Callers 6

thinkMethod · 0.80
explodeMethod · 0.80
kneelMethod · 0.80
initMethod · 0.80
btnLeftHandItemClickMethod · 0.80
btnRightHandItemClickMethod · 0.80

Calls 1

getUnitsMethod · 0.80

Tested by

no test coverage detected