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