Landscape class

A class that represents a landscape

Constructors

Landscape({required String name, required String location, required String weather, required LandscapeType landscapeType, required List<String> features, required List<String> resources, required List<String> encounters, required String knownFor, required String size, required String travelRate})
Landscape.fromJson(String source)
factory
Landscape.fromMap(Map<String, dynamic> map)
factory
Landscape.fromShallowMap(Map<String, dynamic> map)
factory

Properties

encounters List<String>
A list of possible encounters in the landscape
final
features List<String>
A list of features this landscape have
final
hashCode int
The hash code for this object.
no setteroverride
knownFor String
The thing this landscape is known for
final
landscapeType LandscapeType
The type of the landscape
final
location String
The location of the landscape
final
name String
The name of the landscape
final
resources List<String>
A list of resources that can be found in this landscape
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size String
The size of this landscape
final
travelRate String
How often people go through this landscape
final
weather String
The weather in the landscape
final

Methods

copyWith({String? name, String? location, String? weather, LandscapeType? landscapeType, List<String>? features, List<String>? resources, List<String>? encounters, String? knownFor, String? size, String? travelRate}) Landscape
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(covariant Landscape other) bool
The equality operator.
override