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

Method setTile

MicropolisCore/src/MicropolisEngine/src/stubs.cpp:353–360  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

351 * @note Off-map positions are ignored.
352 */
353void 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/**

Callers

nothing calls this directly

Calls 1

testBoundsFunction · 0.85

Tested by

no test coverage detected