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

Method getOriginalFaction

src/Savegame/BattleUnit.cpp:2467–2470  ·  view source on GitHub ↗

* Get this unit's original Faction. * @return original faction */

Source from the content-addressed store, hash-verified

2465 * @return original faction
2466 */
2467UnitFaction BattleUnit::getOriginalFaction() const
2468{
2469 return _originalFaction;
2470}
2471
2472/**
2473 * invalidate cache; call after copying object :(

Callers 15

loadMethod · 0.80
endTurnMethod · 0.80
getHighestRankedXComMethod · 0.80
prepareNewTurnMethod · 0.80
nextStageMethod · 0.80
psiActionMethod · 0.80
explodeMethod · 0.80
prepareDebriefingMethod · 0.80
recoverItemsMethod · 0.80
handleAIMethod · 0.80
checkForCasualtiesMethod · 0.80
handlePanickingPlayerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected