scalata.domain.util
Members list
Type members
Classlikes
Cardinal directions plus helpers.
Cardinal directions plus helpers.
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Enemy families rendered by a single‐char glyph.
Enemy families rendered by a single‐char glyph.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
High-level controller states handled by the GameEngine.
High-level controller states handled by the GameEngine.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Enumeration of domain-level errors exchanged between use-cases, controllers and the view layer.
Enumeration of domain-level errors exchanged between use-cases, controllers and the view layer.
==== Contract ==== Each error provides:
message– short, end-user text shown in the UI.errorCode– stable identifier useful for logs or tests.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class GameOverclass Helpclass InvalidDirectionclass InvalidInputclass ItemNotOwnedclass ItemNotPresentclass Undoclass UndoErrorShow all
ADT representing the outcome of a domain operation.
ADT representing the outcome of a domain operation.
==== Cases ====
-
Success[T]– carries a value of typeTand an optional user-facing message. -
Error– wraps a non-recoverableGameError.
Helper constructors success and error make call-sites concise.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
GameResult.type
Lightweight 2-D integer geometry using an opaque type.
Lightweight 2-D integer geometry using an opaque type.
- Point2D is represented as a tuple
(x, y)but the tuple is hidden outside the module. - Convenience ops: Manhattan distance, 4-neighbour listing, axis-aligned range and vector addition.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Geometry.type
Item types; all print as # in the ASCII view.
Item types; all print as # in the ASCII view.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
All hero archetypes with combat stats.
All hero archetypes with combat stats.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
ADT for every user command parsed from the view layer.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PlayerCommand.type
Thin helper around tuProlog that:
Thin helper around tuProlog that:
-
adds Scala → Prolog implicit conversions (
String,Seq); -
provides extractors (
asInt,asPoint); -
builds a reusable Prolog engine with arbitrary clauses.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Scala2P.type
Value members
Concrete methods
Sample an integer in [from, to] following a Gaussian curve whose mean shifts with difficulty.
Sample an integer in [from, to] following a Gaussian curve whose mean shifts with difficulty.
Attributes
Bernoulli trial with success probability p.
Bernoulli trial with success probability p.
Attributes
Concrete fields
Pool of room names used by the procedural generator.
Pool of room names used by the procedural generator.