CTor
The read method must be overriden by any specialized TileMap.
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.
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.
Calculate, store and return the center point.
Convert from pixel coordinates to tile coordinates.
Convert from pixel coordinates to tile coordinates.
Exchange the tileset
Fetch the viewport pointer so that it can modified outside.
Returns the .xml filename of this tilemap
Returns the information structure of this tilemap
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 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.
Load a new TileMap
Convert from tile coordinates to pixel coordinates.
Convert from tile coordinates to pixel 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
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.
Reset the viewport.
Set a new view.
Set a new view.
Rvalue version.
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.
Apply translation to the object.
Calculate, store and return the center point.
Reset the translation.
Set the rotation center.
Set the rotation center.
Returns the rotation center.
Set a (new) rotation.
Increase/Decrease the rotation.
Returns the current rotation.
Set a new scale.
Increase/Decrease the scale/zoom.
Returns the current scale/zoom.
The Tile map consist of tiles which are stored in a XML file (preferably build with tiled)