MenuController
scalata.infrastructure.controller.MenuController
class MenuController[F[_]](askStart: F[Boolean])(implicit evidence$1: Sync[F]) extends Controller[F]
Controller for the main menu.
- Calls GameStartUseCase to ask the player if a new run should begin.
- Returns the next GameControllerState together with the updated GameBuilder.
Value parameters
- askStart
-
effect that yields true to start or false to quit
Attributes
- Graph
-
- Supertypes
Members list
In this article