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

Method setTurnsSinceSpotted

src/Savegame/BattleUnit.cpp:2449–2452  ·  view source on GitHub ↗

* Set how long since this unit was last exposed. * @param turns number of turns */

Source from the content-addressed store, hash-verified

2447 * @param turns number of turns
2448 */
2449void BattleUnit::setTurnsSinceSpotted (int turns)
2450{
2451 _turnsSinceSpotted = turns;
2452}
2453
2454/**
2455 * Get how long since this unit was exposed.

Callers 6

endTurnMethod · 0.80
nextStageMethod · 0.80
thinkMethod · 0.80
checkForCasualtiesMethod · 0.80
calculateFOVMethod · 0.80
thinkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected