* 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. */
| 514 | * @return Flammability : the lower the value, the higher the chance the tile/object catches fire. |
| 515 | */ |
| 516 | int 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. |
no test coverage detected