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

Method getPowerGrid

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:382–385  ·  view source on GitHub ↗

* Get a value from the power grid map. * @param x X coordinate of the position to get, 0 to WORLD_W. * @param y Y coordinate of the position to get, 0 to WORLD_H. * @return Value of the power grid map at the given position. * @note Off-map positions are considered to contain 0. * @todo Use world coordinates instead (use powerGridMap.worldGet() instead). */

Source from the content-addressed store, hash-verified

380 * @todo Use world coordinates instead (use powerGridMap.worldGet() instead).
381 */
382int Micropolis::getPowerGrid(int x, int y)
383{
384 return powerGridMap.worldGet(x, y);
385}
386
387
388/**

Callers

nothing calls this directly

Calls 1

worldGetMethod · 0.80

Tested by

no test coverage detected