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

Method fireBomb

MicropolisCore/src/MicropolisEngine/src/disasters.cpp:223–229  ·  view source on GitHub ↗

Let a fire bomb explode at a random location */

Source from the content-addressed store, hash-verified

221
222/** Let a fire bomb explode at a random location */
223void Micropolis::fireBomb()
224{
225 int crashX = getRandom(WORLD_W - 1);
226 int crashY = getRandom(WORLD_H - 1);
227 makeExplosion(crashX, crashY);
228 sendMessage(MESSAGE_FIREBOMBING, crashX, crashY, true, true);
229}
230
231
232/** Throw several bombs onto the city. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected