* Get a value from the pollution density 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 rate of pollution density map at the given position. * @note Off-map positions are considered to contain 0. * @todo Use world coordinates instead (use pollutionDensityMap.worldGet() instead). */
| 540 | * @todo Use world coordinates instead (use pollutionDensityMap.worldGet() instead). |
| 541 | */ |
| 542 | int Micropolis::getPollutionDensity(int x, int y) |
| 543 | { |
| 544 | return pollutionDensityMap.get(x, y); |
| 545 | } |
| 546 | |
| 547 | |
| 548 | /** |