ChampSelectUseCase

scalata.application.usecases.ChampSelectUseCase

Use-case that concludes champion selection by creating the player and moving the finite-state machine to the Game-Running phase.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def champSelect[F[_] : Monad](input: F[PlayerClasses], worldBuilder: GameBuilder): F[GameResult[(GameControllerState, GameBuilder)]]

Create the player and emit the next step.

Create the player and emit the next step.

Type parameters

F

effect type with a Cats cats.Monad instance

Value parameters

input

effect that yields the chosen PlayerClasses value

worldBuilder

current builder that will receive the new player

Attributes