* Return number of problem in the city. * @return Number of problems. */
| 516 | * @return Number of problems. |
| 517 | */ |
| 518 | int 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. |