Tile class

Constructors

Tile({required double x, required double y, required double width, required double height, double offsetX = 0.0, double offsetY = 0.0, String? tileClass, Map<String, dynamic>? properties, TileSprite? sprite, Color? color, TilelAnimation? animation, List<ShapeHitbox>? collisions, double angle = 0, double opacity = 1.0, bool isFlipVertical = false, bool isFlipHorizontal = false})

Properties

angle → double
final
animation → TilelAnimation?
final
bottom → double
no setter
collisions → List<ShapeHitbox>?
final
color → Color?
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
final
id ↔ String
getter/setter pair
isFlipHorizontal → bool
final
isFlipVertical → bool
final
left → double
no setter
offsetX → double
final
offsetY → double
final
opacity → double
final
properties → Map<String, dynamic>?
final
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sprite → TileSprite?
final
tileClass → String?
final
top → double
no setter
width → double
final
x → double
final
y → double
final

Methods

getTile() → TileComponent
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