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

Method evalInit

MicropolisCore/src/MicropolisEngine/src/evaluate.cpp:126–141  ·  view source on GitHub ↗

* Initialize evaluation variables */

Source from the content-addressed store, hash-verified

124 * Initialize evaluation variables
125 */
126void Micropolis::evalInit()
127{
128 cityYes = 0;
129 cityPop = 0;
130 cityPopDelta = 0;
131 cityAssessedValue = 0;
132 cityClass = CC_VILLAGE;
133 cityScore = 500;
134 cityScoreDelta = 0;
135 for (int i = 0; i < PROBNUM; i++) {
136 problemVotes[i] = 0;
137 }
138 for (int i = 0; i < CVP_PROBLEM_COMPLAINTS; i++) {
139 problemOrder[i] = CVP_NUMPROBLEMS;
140 }
141}
142
143
144/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected