* Set a value in the pollition 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. * @param density the value to set. * @note Off-map positions are ignored. * @todo Use world coordinates instead (use pollutionDensityMap.worldSet() instead). */
| 554 | * @todo Use world coordinates instead (use pollutionDensityMap.worldSet() instead). |
| 555 | */ |
| 556 | void Micropolis::setPollutionDensity(int x, int y, int density) |
| 557 | { |
| 558 | pollutionDensityMap.set(x, y, density); |
| 559 | } |
| 560 | |
| 561 | |
| 562 | /** |