RoomGenerator class
Random Room generator
Constructors
- RoomGenerator(int width, int height, RoomConstraint widthBounds, RoomConstraint heightBounds, double maxAspect)
-
Initialize a room generator to generate random rooms within a space of the
given
width
andheight
, with other tuning parameters:
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
-
nextRoom(
) → Room - Generate on random room within the configured constraints
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rooms(
) → Iterable< Room> - Iterate through a sequence of random rooms generated within the configured constraints
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited