MapTerrain class

Implementers

Constructors

MapTerrain({required double value, required List<TileSprite> sprites, List<double> spritesProportion = const [], String? type, Map<String, dynamic>? properties, List<ShapeHitbox>? collisionsBuilder()?, bool collisionOnlyCloseCorners = false})

Properties

collisionOnlyCloseCorners → bool
final
collisionsBuilder → List<ShapeHitbox>? Function()?
final
hashCode → int
The hash code for this object.
no setterinherited
maxRandomValue → int
no setter
properties → Map<String, dynamic>?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sprites → List<TileSprite>
final
spritesProportion → List<double>
final
type → String?
final
value → double
final

Methods

getCollisionClone({bool checkOnlyClose = false}) → List<ShapeHitbox>?
getSingleSprite() → TileSprite?
inRange(int value) → int
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