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

Method setCrimeRate

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:596–599  ·  view source on GitHub ↗

* Set a value in 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. * @param rate the value to set. * @note Off-map positions are ignored. * @todo Use world coordinates instead (use crimeRateMap.worldSet() instead). */

Source from the content-addressed store, hash-verified

594 * @todo Use world coordinates instead (use crimeRateMap.worldSet() instead).
595 */
596void Micropolis::setCrimeRate(int x, int y, int rate)
597{
598 crimeRateMap.set(x, y, rate);
599}
600
601
602/**

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected