Micropolis
disasters.cpp File Reference

Handles disaster events in the Micropolis game engine. More...

#include "micropolis.h"

Go to the source code of this file.

Detailed Description

Handles disaster events in the Micropolis game engine.

This file includes functions to trigger and manage various disaster events such as earthquakes, fires, floods, and other scenarios. It controls the probability of disasters occurring based on the game level and executes disaster-specific effects on the city, like damaging structures and changing terrain. The file plays a critical role in adding challenge and dynamic events to the gameplay experience.

Definition in file disasters.cpp.