* Set a value in the crime rate map. * @param x X coordinate of the position to get, 0 to WORLD_W_2. * @param y Y coordinate of the position to get, 0 to WORLD_H_2. * @param rate the value to set. * @note Off-map positions are ignored. * @todo Use world coordinates instead (use crimeRateMap.worldSet() instead). */
| 594 | * @todo Use world coordinates instead (use crimeRateMap.worldSet() instead). |
| 595 | */ |
| 596 | void Micropolis::setCrimeRate(int x, int y, int rate) |
| 597 | { |
| 598 | crimeRateMap.set(x, y, rate); |
| 599 | } |
| 600 | |
| 601 | |
| 602 | /** |