GameOverController
scalata.infrastructure.controller.GameOverController
class GameOverController[F[_]](askRestart: F[Boolean])(implicit evidence$1: Sync[F]) extends Controller[F]
Controller for the GameOver screen.
- Invokes GameOverUseCase to ask the player whether to restart.
- Returns either
(GameControllerState.Menu, newBuilder)when the player chooses to restart, or propagates the quit signal.
Value parameters
- askRestart
-
side-effecting Boolean (true=restart, false=quit)
Attributes
- Graph
-
- Supertypes
Members list
In this article