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

Method getFaction

src/Savegame/BattleUnit.cpp:707–710  ·  view source on GitHub ↗

* Returns the unit's faction. * @return Faction. (player, hostile or neutral) */

Source from the content-addressed store, hash-verified

705 * @return Faction. (player, hostile or neutral)
706 */
707UnitFaction BattleUnit::getFaction() const
708{
709 return _faction;
710}
711
712/**
713 * Sets the unit's cache flag.

Callers 15

endTurnMethod · 0.80
resetUnitTilesMethod · 0.80
getPatrolNodeMethod · 0.80
eyesOnTargetMethod · 0.80
getMoraleModifierMethod · 0.80
deployXCOMMethod · 0.80
addItemMethod · 0.80
placeUnitNearFriendMethod · 0.80
explosiveEfficacyMethod · 0.80
validTargetMethod · 0.80
initMethod · 0.80
createNewProjectileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected