GamePhaseService
scalata.application.services.GamePhaseService
Mutable-looking, yet immutable, holder of the current finite-state-machine phase.
==== Responsibilities ====
- Expose the current phase through
getCurrentPhase. - Create a new instance with an updated phase via
transitionTo(pure copy, no mutation).
This minimal wrapper exists so that the GameEngine can pass a single value around and still treat the phase as a first-class object.
Value parameters
- currentPhase
-
FSM node the game is presently in; defaults to
GameControllerState.Menu.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article