MCPcopy Create free account
hub / github.com/SimHacker/micropolis / makeFireBombs

Method makeFireBombs

MicropolisCore/src/MicropolisEngine/src/disasters.cpp:233–243  ·  view source on GitHub ↗

Throw several bombs onto the city. */

Source from the content-addressed store, hash-verified

231
232/** Throw several bombs onto the city. */
233void Micropolis::makeFireBombs()
234{
235 int count = 2 + (getRandom16() & 1);
236
237 while (count > 0) {
238 fireBomb();
239 count--;
240 }
241
242 // TODO: Schedule periodic fire bombs over time, every few ticks.
243}
244
245
246/** Change random tiles to fire or dirt as result of the earthquake */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected