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

Method setTrafficDensity

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:516–519  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

514 * @todo Use world coordinates instead (use trafficDensityMap.worldSet() instead).
515 */
516void Micropolis::setTrafficDensity(int x, int y, int density)
517{
518 trafficDensityMap.set(x, y, density);
519}
520
521
522/**

Callers 1

eatTrafficMethod · 0.80

Calls 1

setMethod · 0.80

Tested by

no test coverage detected