CTor
The read method must be overriden by any specialized TileMap.
Calculate, store and return the center point.
Fetch the viewport pointer so that it can modified outside.
Set a new view.
Set a new view.
Rvalue version.
Reset the viewport.
Adjust the viewport. The position is shifted about <code>view.x * -1</code> and <code>view.y - 1</code> so that the left upper corner of the current view is in the left upper corner of the Window.
Load a new TileMap
If compress is true, only the needed Tiles are stored (which means that are new tileset is created which contains only the needed tiles) otherwise the whole tileset is taken.
Convert from pixel coordinates to tile coordinates.
Convert from pixel coordinates to tile coordinates.
Convert from tile coordinates to pixel coordinates.
Convert from tile coordinates to pixel coordinates.
Adjusted pixel coordinates so that they lie on valid pixel coordinates based on tile coordinates.
Adjusted pixel coordinates so that they lie on valid pixel coordinates based on tile coordinates.
Reload multiple tiles. The length of coords must be equal to the length of newCoords.
Replace multiple tiles with another.
Rvalue version
Reload one tile, which means that the tile on the coordinates coord is replaced with the tile (and the tile surface) on the coordinates newCoord
Rvalue version
Exchange the tileset
Returns all containing tiles
Check whether a tile exist on the given Coordinates. If idx isn't null, the calculated index of the Tile at the given position is stored there.
Check whether a tile exist on the given Coordinates. If idx isn't null, the calculated index of the Tile at the given position is stored there.
Replace the tile at the given position with the given new Tile. If oldtile is not null, the former Tile is stored there.
Replace the tile at the given position with the given new Tile. If oldtile is not null, the former Tile is stored there.
Returns the tile at the given position, or throw an Exception Note: The position must be in tile coordinates, not pixel coordinates.
Returns the tile at the given position, or throw an Exception Note: The position must be in tile coordinates, not pixel coordinates.
Returns the information structure of this tilemap
Returns the .xml filename of this tilemap