* 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. */
| 493 | * @param force Force damage. |
| 494 | */ |
| 495 | void 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. |