* Set a tile into the 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 tile the tile value to set. * @note Off-map positions are ignored. */
| 351 | * @note Off-map positions are ignored. |
| 352 | */ |
| 353 | void Micropolis::setTile(int x, int y, int tile) |
| 354 | { |
| 355 | if (!testBounds(x, y)) { |
| 356 | return; |
| 357 | } |
| 358 | |
| 359 | map[x][y] = (unsigned short)tile; |
| 360 | } |
| 361 | |
| 362 | |
| 363 | /** |
nothing calls this directly
no test coverage detected