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

Method getCache

src/Savegame/BattleUnit.cpp:737–742  ·  view source on GitHub ↗

* Check if the unit is still cached in the Map cache. * When the unit changes it needs to be re-cached. * @param invalid Get if the cache is invalid. * @param part Unit part to check. * @return Pointer to cache surface used. */

Source from the content-addressed store, hash-verified

735 * @return Pointer to cache surface used.
736 */
737Surface *BattleUnit::getCache(bool *invalid, int part) const
738{
739 if (part < 0) part = 0;
740 *invalid = _cacheInvalid;
741 return _cache[part];
742}
743
744/**
745 * Kneel down.

Callers 2

drawTerrainMethod · 0.80
cacheUnitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected