Class TTiledMap

Unit

Declaration

type TTiledMap = class(TObject)

Description

Loading and manipulating "Tiled" map files (http://mapeditor.org). Based on Tiled version 0.14.

Hierarchy

  • TObject
  • TTiledMap

Overview

Methods

Public constructor Create(AURL: string);
Public destructor Destroy; override;
Public function GIDToTileset(const AGID: Cardinal): PTileSet;

Properties

Public property Layers: TLayers read FLayers;
Public property Orientation: TMapOrientation read FOrientation;
Public property Properties: TProperties read FProperties;
Public property Tilesets: TTilesets read FTilesets;
Public property Width: Cardinal read FWidth;
Public property Height: Cardinal read FHeight;
Public property TileWidth: Cardinal read FTileWidth;
Public property TileHeight: Cardinal read FTileHeight;
Public property RenderOrder: TMapRenderOrder read FRenderOrder;

Description

Methods

Public constructor Create(AURL: string);

Constructor.

Parameters
AURL
URL to Tiled (TMX) file.
Public destructor Destroy; override;
 
Public function GIDToTileset(const AGID: Cardinal): PTileSet;

Returns the pointer to tileset that contains the global ID.

Properties

Public property Layers: TLayers read FLayers;
 
Public property Orientation: TMapOrientation read FOrientation;

Map orientation. Tiled supports "orthogonal", "isometric" and "staggered" (since 0.9) at the moment.

Public property Properties: TProperties read FProperties;
 
Public property Tilesets: TTilesets read FTilesets;
 
Public property Width: Cardinal read FWidth;

The map width in tiles.

Public property Height: Cardinal read FHeight;

The map height in tiles.

Public property TileWidth: Cardinal read FTileWidth;

The width of a tile.

Public property TileHeight: Cardinal read FTileHeight;

The height of a tile.

Public property RenderOrder: TMapRenderOrder read FRenderOrder;

The order in which tiles on tile layers are rendered. Valid values are right-down (the default), right-up, left-down and left-up. In all cases, the map is drawn row-by-row. (since 0.10, but only supported for orthogonal maps at the moment)


Generated by PasDoc 0.15.0.