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

Method getPoliceCoverage

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:701–704  ·  view source on GitHub ↗

* Get a value from the police coverage map. * @param x X coordinate of the position to get, 0 to WORLD_W_8. * @param y Y coordinate of the position to get, 0 to WORLD_H_8. * @return Value of the fir coverage map at the given position. * @note Off-map positions are considered to contain 0. * @todo Use world coordinates instead (use policeStationEffectMap.worldGet() instead). */

Source from the content-addressed store, hash-verified

699 * @todo Use world coordinates instead (use policeStationEffectMap.worldGet() instead).
700 */
701int Micropolis::getPoliceCoverage(int x, int y)
702{
703 return policeStationEffectMap.get(x, y);
704}
705
706
707/**

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected