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

Method setPollutionDensity

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:556–559  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

554 * @todo Use world coordinates instead (use pollutionDensityMap.worldSet() instead).
555 */
556void Micropolis::setPollutionDensity(int x, int y, int density)
557{
558 pollutionDensityMap.set(x, y, density);
559}
560
561
562/**

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected