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

Method getPollutionDensity

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:542–545  ·  view source on GitHub ↗

* Get a value from the pollution 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 rate of pollution density map at the given position. * @note Off-map positions are considered to contain 0. * @todo Use world coordinates instead (use pollutionDensityMap.worldGet() instead). */

Source from the content-addressed store, hash-verified

540 * @todo Use world coordinates instead (use pollutionDensityMap.worldGet() instead).
541 */
542int Micropolis::getPollutionDensity(int x, int y)
543{
544 return pollutionDensityMap.get(x, y);
545}
546
547
548/**

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected