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

Method getFlammability

src/Savegame/Tile.cpp:516–530  ·  view source on GitHub ↗

* Flammability of a tile is the lowest flammability of it's objects. * @return Flammability : the lower the value, the higher the chance the tile/object catches fire. */

Source from the content-addressed store, hash-verified

514 * @return Flammability : the lower the value, the higher the chance the tile/object catches fire.
515 */
516int Tile::getFlammability() const
517{
518 int flam = 255;
519
520 if (_objects[3])
521 {
522 flam = _objects[3]->getFlammable();
523 }
524 else if (_objects[0])
525 {
526 flam = _objects[0]->getFlammable();
527 }
528
529 return flam;
530}
531
532/*
533 * Fuel of a tile is the lowest flammability of its objects.

Callers 2

explodeMethod · 0.80
detonateMethod · 0.80

Calls 1

getFlammableMethod · 0.80

Tested by

no test coverage detected