Micropolis
simulate.cpp File Reference

Handles the main simulation logic for Micropolis. More...

#include "micropolis.h"
#include "text.h"

Go to the source code of this file.

Variables

static const int CENSUS_FREQUENCY_10 = 4
 
static const int CENSUS_FREQUENCY_120 = CENSUS_FREQUENCY_10 * 12
 
static const int TAX_FREQUENCY = 48
 

Detailed Description

Handles the main simulation logic for Micropolis.

This file contains the primary functions responsible for advancing the simulation state in the Micropolis game. It includes methods for handling various aspects of the game world, such as power generation, population growth, resource management, and disaster events. The simulation is divided into multiple phases, with each phase focusing on specific components of the game world.

Definition in file simulate.cpp.

Variable Documentation

◆ CENSUS_FREQUENCY_10

const int CENSUS_FREQUENCY_10 = 4
static

How often to perform the short term census.

Todo:
Rename to CENSUS_MONTHLY_FREQUENCY or so?

Definition at line 90 of file simulate.cpp.

◆ CENSUS_FREQUENCY_120

const int CENSUS_FREQUENCY_120 = CENSUS_FREQUENCY_10 * 12
static

How often to perform the long term census.

Todo:
Rename to CENSUS_YEARLY_FREQUENCY or so?

Definition at line 96 of file simulate.cpp.

◆ TAX_FREQUENCY

const int TAX_FREQUENCY = 48
static

How often to collect taxes.

Definition at line 101 of file simulate.cpp.