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

Method getRateOfGrowth

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:462–465  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

460 * @todo Use world coordinates instead (use rateOfGrowthMap.worldGet() instead).
461 */
462int Micropolis::getRateOfGrowth(int x, int y)
463{
464 return rateOfGrowthMap.get(x, y);
465}
466
467
468/**

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected