TileMap.replaceTileAt

Replace the tile at the given position with the given new Tile. If oldtile is not null, the former Tile is stored there.

Note: This method is designated as helper method for reload Note: The position must be in tile coordinates, not pixel coordinates.

  1. void replaceTileAt(Vector2s vec, Tile newTile, Tile* oldTile)
  2. void replaceTileAt(short x, short y, Tile newTile, Tile* oldTile)
    class TileMap
    final
    void
    replaceTileAt
    (
    short x
    ,
    short y
    ,,
    Tile* oldTile = null
    )

Meta