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
trait Controller[F]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def start(gameBuilder: GameBuilder): F[GameResult[(GameControllerState, GameBuilder)]]

Attributes

Definition Classes