* Set a value in the traffic 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 trafficDensityMap.worldSet() instead). */
| 514 | * @todo Use world coordinates instead (use trafficDensityMap.worldSet() instead). |
| 515 | */ |
| 516 | void Micropolis::setTrafficDensity(int x, int y, int density) |
| 517 | { |
| 518 | trafficDensityMap.set(x, y, density); |
| 519 | } |
| 520 | |
| 521 | |
| 522 | /** |