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

Method getLandValue

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:622–625  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

620 * @todo Use world coordinates instead (use landValueMap.worldGet() instead).
621 */
622int Micropolis::getLandValue(int x, int y)
623{
624 return landValueMap.get(x, y);
625}
626
627
628/**

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected