MatrixMapGenerator class

Class useful to create radom map.

  • matrix, Matrix used to create the map.
  • build, Builder used to create the TileModel that represents each tile in the map.
  • axisInverted, used to invert axis of the matrix. Example: matrixx,y turn matrixy,x. It's useful to use an easier-to-see array in code.

Constructors

MatrixMapGenerator()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

generate({required List<MatrixLayer> layers, required TileModelBuilder builder}) WorldMap