GameEngine
scalata.infrastructure.controller.GameEngine
Orchestrates high-level state transitions of the game.
- Picks the controller that matches the current
GameControllerState. - Delegates one step to that controller.
- Reads the returned
GameResultand, if successful, recurses with the next phase and updatedGameBuilder. - Ends with
ExitCode.Successwhen any controller returns an error (e.g. player quit).
Type parameters
- F
-
effect type (usually
IO)
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article