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

Method clearCensus

MicropolisCore/src/MicropolisEngine/src/simulate.cpp:674–703  ·  view source on GitHub ↗

comefrom: simulate doSimInit */

Source from the content-addressed store, hash-verified

672
673/* comefrom: simulate doSimInit */
674void Micropolis::clearCensus()
675{
676 poweredZoneCount = 0;
677 unpoweredZoneCount = 0;
678 firePop = 0;
679 roadTotal = 0;
680 railTotal = 0;
681 resPop = 0;
682 comPop = 0;
683 indPop = 0;
684 resZonePop = 0;
685 comZonePop = 0;
686 indZonePop = 0;
687 hospitalPop = 0;
688 churchPop = 0;
689 policeStationPop = 0;
690 fireStationPop = 0;
691 stadiumPop = 0;
692 coalPowerPop = 0;
693 nuclearPowerPop = 0;
694 seaportPop = 0;
695 airportPop = 0;
696 powerStackPointer = 0; /* Reset before Mapscan */
697
698 fireStationMap.clear();
699 //fireStationEffectMap.clear(); // Added in rev293
700 policeStationMap.clear();
701 //policeStationEffectMap.clear(); // Added in rev293
702
703}
704
705
706/**

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected