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