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

Method setExplosive

src/Savegame/Tile.cpp:495–501  ·  view source on GitHub ↗

* Set a "virtual" explosive on this tile. We mark a tile this way to detonate it later. * We do it this way, because the same tile can be visited multiple times by an "explosion ray". * The explosive power on the tile is some kind of moving MAXIMUM of the explosive rays that passes it. * @param power Power of the damage. * @param force Force damage. */

Source from the content-addressed store, hash-verified

493 * @param force Force damage.
494 */
495void Tile::setExplosive(int power, bool force)
496{
497 if (force || _explosive < power)
498 {
499 _explosive = power;
500 }
501}
502
503/**
504 * Get explosive on this tile.

Callers 2

explodeMethod · 0.45
detonateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected