* Get a value from 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. * @return Value of the population density map at the given position. * @note Off-map positions are considered to contain 0. * @todo Use world coordinates instead (use crimeRateMap.worldGet() instead). */
| 580 | * @todo Use world coordinates instead (use crimeRateMap.worldGet() instead). |
| 581 | */ |
| 582 | int Micropolis::getCrimeRate(int x, int y) |
| 583 | { |
| 584 | return crimeRateMap.get(x, y); |
| 585 | } |
| 586 | |
| 587 | |
| 588 | /** |