indigo.scenes

Type members

Classlikes

trait Scene[StartUpData, GameModel, ViewModel]

Describes the functions that a valid scene must implement.

Describes the functions that a valid scene must implement.

Companion:
object
object Scene
Companion:
class
final class SceneContext[StartUpData](val sceneName: SceneName, val sceneTime: Seconds, val frameContext: FrameContext[StartUpData])

SceneContext is a Scene specific equivalent of FrameContext, and exposes all of the fields and methods or a normal FrameContext object. It adds information about the scene currently running.

SceneContext is a Scene specific equivalent of FrameContext, and exposes all of the fields and methods or a normal FrameContext object. It adds information about the scene currently running.

Value parameters:
frameContext

The normal frame context object that all other fields delegate to.

sceneName

The name of the current scene.

sceneTime

The running time of the current scene calculated as the time the scene was entered minus game running time.

enum SceneEvent extends GlobalEvent

The events used by the scene manager to move between scenes.

The events used by the scene manager to move between scenes.

final case class SceneFinder(previous: List[ScenePosition], current: ScenePosition, next: List[ScenePosition])
Companion:
object
Companion:
class
class SceneManager[StartUpData, GameModel, ViewModel](scenes: NonEmptyList[Scene[StartUpData, GameModel, ViewModel]], scenesFinder: SceneFinder)
Companion:
object
Companion:
class
object SceneName
final case class ScenePosition(index: Int, name: SceneName)

Types

opaque type SceneName