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

Method getCrimeRate

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:582–585  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

580 * @todo Use world coordinates instead (use crimeRateMap.worldGet() instead).
581 */
582int Micropolis::getCrimeRate(int x, int y)
583{
584 return crimeRateMap.get(x, y);
585}
586
587
588/**

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected