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

Method setPowerGrid

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:396–399  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

394 * @todo Use world coordinates instead (use powerGridMap.worldSet() instead).
395 */
396void Micropolis::setPowerGrid(int x, int y, int power)
397{
398 powerGridMap.worldSet(x, y, power);
399}
400
401
402/**

Callers

nothing calls this directly

Calls 1

worldSetMethod · 0.80

Tested by

no test coverage detected