scalata.domain.world.World
final case class World(
player:
Player,
difficulty:
Int,
rooms:
Map[
String,
Room],
roomsArrangement:
List[
List[
String]])
Immutable game world.
Holds the current player, global difficulty, every generated room and their arrangement grid.
Attributes
-
Graph
-
-
Supertypes
-
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Members list
Current difficulty level.
Current difficulty level.
Attributes
Get neighbouring room in the given direction, if any.
Get neighbouring room in the given direction, if any.
Attributes
The active player entity.
The active player entity.
Attributes
Replace the player, returning a new world.
Replace the player, returning a new world.
Attributes
Replace a room, returning a new world.
Replace a room, returning a new world.
Attributes
Attributes
-
Inherited from:
-
Product
Attributes
-
Inherited from:
-
Product