GameStartUseCase

scalata.application.usecases.GameStartUseCase

Use-case that handles the “Start Game?” choice shown in the main menu.

true → transition to GameControllerState.ChampSelectfalse → return a GameError.GameOver

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def newGame[F[_] : Monad](input: F[Boolean], worldBuilder: GameBuilder): F[GameResult[(GameControllerState, GameBuilder)]]

Evaluate the player’s answer and emit the next step.

Evaluate the player’s answer and emit the next step.

Type parameters

F

effect type with a cats.Monad instance (e.g. IO)

Value parameters

input

side-effecting Boolean (true=start, false=quit)

worldBuilder

builder carrying the current difficulty / seed setup

Attributes