Push new score to the user */
| 467 | |
| 468 | /** Push new score to the user */ |
| 469 | void Micropolis::doScoreCard() |
| 470 | { |
| 471 | callback("update", "s", "evaluation"); |
| 472 | |
| 473 | // The user interface should pull these raw values out and format |
| 474 | // them. The simulator core used to format them and push them out, |
| 475 | // but the user interface should pull them out and format them |
| 476 | // itself. |
| 477 | |
| 478 | // City Evaluation ${FormatYear(currentYear())} |
| 479 | // Public Opinion |
| 480 | // Is the mayor doing a good job? |
| 481 | // Yes: ${FormatPercent(cityYes)} |
| 482 | // No: ${FormatPercent(100 - cityYes)} |
| 483 | // What are the worst problems? |
| 484 | // for i in range(0, CVP_PROBLEM_COMPLAINTS), |
| 485 | // while problemOrder[i] < CVP_NUMPROBLEMS: |
| 486 | // ${probStr[problemOrder[i]]}: |
| 487 | // ${FormatPercent(problemVotes[problemOrder[i]])} |
| 488 | // Statistics |
| 489 | // Population: ${FormatNumber(cityPop)} |
| 490 | // Net Migration: ${FormatNumber(cityPopDelta)} (last year) |
| 491 | // Assessed Value: ${FormatMoney(cityAssessedValue)) |
| 492 | // Category: ${cityClassStr[cityClass]} |
| 493 | // Game Level: ${cityLevelStr[gameLevel]} |
| 494 | } |
| 495 | |
| 496 | /** Request that new score is displayed to the user. */ |
| 497 | void Micropolis::changeEval() |
nothing calls this directly
no outgoing calls
no test coverage detected