scalata.infrastructure.view.terminal
Members list
Packages
Type members
Classlikes
Champion-selection screen.
Champion-selection screen.
The view extends the generic View template, supplying: • an ASCII banner that lists available possible inputs; • a parse implementation that maps raw user input.
Type parameters
- F
-
effect type (e.g.
IO)
Value parameters
- view
-
low-level GameView through which all rendering and input occur (dependency-injected so that we stay UI-agnostic).
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Game over screen.
Game over screen.
The view extends the generic View template, supplying: • an ASCII banner that lists available possible inputs; • a parse implementation that maps raw user input.
Type parameters
- F
-
effect type (e.g.
IO)
Value parameters
- view
-
low-level GameView through which all rendering and input occur (dependency-injected so that we stay UI-agnostic).
Attributes
- Supertypes
Game Running screen.
Game Running screen.
The view extends the generic View template, supplying: • an ASCII banner that lists available possible inputs; • a parse implementation that maps raw user input.
Type parameters
- F
-
effect type (e.g.
IO)
Value parameters
- view
-
low-level GameView through which all rendering and input occur (dependency-injected so that we stay UI-agnostic).
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Help String
Menu screen.
Menu screen.
The view extends the generic View template, supplying: • an ASCII banner that lists available possible inputs; • a parse implementation that maps raw user input.
Type parameters
- F
-
effect type (e.g.
IO)
Value parameters
- view
-
low-level GameView through which all rendering and input occur (dependency-injected so that we stay UI-agnostic).
Attributes
- Supertypes
Terminal-view helper utilities shared.
Terminal-view helper utilities shared.
Responsibilities
• Wire a map GameControllerState ⇒ Controller[F] so that the GameEngine
can route the state machine to the correct controller. • Provide a generic run loop that repeatedly asks the user for input until the supplied parse function succeeds.
• Offer small helper parsers (e.g. booleanParse) used by several interactive screens.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Shared.type