TileModel class

Constructors

TileModel({required double x, required double y, double offsetX = 0.0, double offsetY = 0.0, required double width, required double height, String? type, Map<String, dynamic>? properties, TileModelSprite? sprite, Color? color, TileModelAnimation? animation, List<CollisionArea>? collisions, double angle = 0, double opacity = 1.0, bool isFlipVertical = false, bool isFlipHorizontal = false})
TileModel.fromMap(Map<String, dynamic> map)
factory

Properties

angle double
final
animation TileModelAnimation?
final
bottom double
no setter
collisions List<CollisionArea>?
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 TileModelSprite?
final
top double
no setter
type String?
final
width double
final
x double
final
y double
final

Methods

getTile() Tile
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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