MCPcopy Create free account
hub / github.com/SimHacker/micropolis / getTrafficDensity

Method getTrafficDensity

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:502–505  ·  view source on GitHub ↗

* 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). */

Source from the content-addressed store, hash-verified

500 * @todo Use world coordinates instead (use trafficDensityMap.worldGet() instead).
501 */
502int Micropolis::getTrafficDensity(int x, int y)
503{
504 return trafficDensityMap.get(x, y);
505}
506
507
508/**

Callers 2

eatTrafficMethod · 0.45
scanRoadsMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected