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, TileModelAnimation? animation, List<CollisionArea>? collisions, double angle = 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
center Offset
getter/setter pair
collisions List<CollisionArea>?
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
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(BonfireGameInterface gameRef) 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