* Get a value from 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. * @return Value of the traffic density at the given position. * @note Off-map positions are considered to contain 0. * @todo Use world coordinates instead (use trafficDensityMap.worldGet() instead). */
| 500 | * @todo Use world coordinates instead (use trafficDensityMap.worldGet() instead). |
| 501 | */ |
| 502 | int Micropolis::getTrafficDensity(int x, int y) |
| 503 | { |
| 504 | return trafficDensityMap.get(x, y); |
| 505 | } |
| 506 | |
| 507 | |
| 508 | /** |
no test coverage detected