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

Method makeMeltdown

MicropolisCore/src/MicropolisEngine/src/disasters.cpp:207–219  ·  view source on GitHub ↗

* Make a nuclear power plant melt * @todo Randomize which nuke plant melts down. */

Source from the content-addressed store, hash-verified

205 * @todo Randomize which nuke plant melts down.
206 */
207void Micropolis::makeMeltdown()
208{
209 short x, y;
210
211 for (x = 0; x < (WORLD_W - 1); x++) {
212 for (y = 0; y < (WORLD_H - 1); y++) {
213 if ((map[x][y] & LOMASK) == NUCLEAR) {
214 doMeltdown(Position(x, y));
215 return;
216 }
217 }
218 }
219}
220
221
222/** Let a fire bomb explode at a random location */

Callers 3

buttonMeltdown_ClickMethod · 0.45
__init__Method · 0.45

Calls 1

PositionClass · 0.70

Tested by

no test coverage detected