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

Method setFire

src/Savegame/Tile.cpp:638–642  ·  view source on GitHub ↗

* Set the amount of turns this tile is on fire. 0 = no fire. * @param fire : amount of turns this tile is on fire. */

Source from the content-addressed store, hash-verified

636 * @param fire : amount of turns this tile is on fire.
637 */
638void Tile::setFire(int fire)
639{
640 _fire = fire;
641 _animationOffset = RNG::generate(0,3);
642}
643
644/**
645 * Get the amount of turns this tile is on fire. 0 = no fire.

Callers 4

prepareNewTurnMethod · 0.45
prepareNewTurnMethod · 0.45
explodeMethod · 0.45
detonateMethod · 0.45

Calls 1

generateFunction · 0.85

Tested by

no test coverage detected