GameState
scalata.domain.world.GameState
final case class GameState(currentRoom: String, visitedRooms: Set[String], currentLevel: Int, note: String)
Immutable snapshot of the player’s progress on the current run.
-
currentRoom id of the room the player is standing in.
-
visitedRooms set of room ids already explored on this floor.
-
currentLevel tower floor index (starts at
1). -
note short message shown to the user (help, errors, etc.).
All mutators return a new GameState; no in-place changes.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article