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

Method getFuel

src/Savegame/Tile.cpp:536–550  ·  view source on GitHub ↗

* Fuel of a tile is the lowest flammability of its objects. * @return how long to burn. */

Source from the content-addressed store, hash-verified

534 * @return how long to burn.
535 */
536int Tile::getFuel() const
537{
538 int fuel = 0;
539
540 if (_objects[3])
541 {
542 fuel = _objects[3]->getFuel();
543 }
544 else if (_objects[0])
545 {
546 fuel = _objects[0]->getFuel();
547 }
548
549 return fuel;
550}
551/*
552 * Ignite starts fire on a tile, it will burn <fuel> rounds. Fuel of a tile is the highest fuel of its objects.
553 * NOT the sum of the fuel of the objects!

Callers 7

explodeMethod · 0.45
detonateMethod · 0.45
initMethod · 0.45
TransferItemsStateMethod · 0.45
completeTransferMethod · 0.45
time10MinutesMethod · 0.45
time30MinutesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected