Class TCastleTiledMapData.TTiledObject

Unit

Declaration

type TTiledObject = class(TObject)

Description

Object definition.

Hierarchy

  • TObject
  • TCastleTiledMapData.TTiledObject

Enclosing Class

Overview

Fields

Public Id: Integer;
Public Name: String;
Public Type_: String;
Public X: Single;
Public Y: Single;
Public Width: Single;
Public Height: Single;
Public Rotation: Single;
Public GId: Cardinal;
Public Visible: Boolean;
Public Properties: TPropertyList;
Public Points: TVector2List;
Public Primitive: TTiledObjectPrimitive;
Public Image: TImage;

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function Position: TVector2;

Description

Fields

Public Id: Integer;

Unique ID of the object. Each object that is placed on a map gets a unique id. Even if an object was deleted, no object gets the same ID. Can not be changed in Tiled Qt. (since Tiled 0.11)

Public Name: String;

The name of the object. An arbitrary string.

Public Type_: String;

The type of the object. An arbitrary string.

Public X: Single;

The x coordinate of the object in pixels.

Public Y: Single;

The y coordinate of the object in pixels.

Public Width: Single;

The width of the object in pixels (defaults to 0).

Public Height: Single;

The height of the object in pixels (defaults to 0).

Public Rotation: Single;

The rotation of the object in degrees clockwise (defaults to 0). (since 0.10)

Public GId: Cardinal;

An reference to a tile (optional).

Public Visible: Boolean;

Whether the object is shown (1) or hidden (0). Defaults to 1. (since 0.9)

Public Properties: TPropertyList;

This item has no description.

Public Points: TVector2List;

List of points for poligon and poliline.

Public Primitive: TTiledObjectPrimitive;

This item has no description.

Public Image: TImage;

This item has no description.

Methods

Public constructor Create;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function Position: TVector2;

X and Y packed in a vector.


Generated by PasDoc 0.16.0-snapshot.