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

Method countProblems

MicropolisCore/src/MicropolisEngine/src/evaluate.cpp:518–527  ·  view source on GitHub ↗

* Return number of problem in the city. * @return Number of problems. */

Source from the content-addressed store, hash-verified

516 * @return Number of problems.
517 */
518int Micropolis::countProblems()
519{
520 int i;
521 for (i = 0; i < CVP_PROBLEM_COMPLAINTS; i++) {
522 if (problemOrder[i] == CVP_NUMPROBLEMS) {
523 break;
524 }
525 }
526 return i;
527}
528
529/**
530 * Return the index of the \a i-th worst problem.

Callers 1

handle_updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected