MapOrientation enum

The shape and layout of a map's cells — Tiled's four orientations.

Inheritance
Available extensions

Values

orthogonal → const MapOrientation

Square (or rectangular) cells in rows and columns.

isometric → const MapOrientation

Diamonds, the grid turned 45° and squashed: x runs down-right, y runs down-left.

staggered → const MapOrientation

Diamonds laid out in staggered rows (or columns), so the map is a rectangle on screen.

hexagonal → const MapOrientation

Hexagons in staggered rows (or columns).

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromName(String? name) → MapOrientation
The orientation Tiled and a saved map call name (orthogonal, isometric, staggered, hexagonal); orthogonal for null or a name it does not know.

Constants

values → const List<MapOrientation>
A constant List of the values in this enum, in order of their declaration.