Class SceneServices

java.lang.Object
com.victorvalentim.zividomelive.SceneServices

public final class SceneServices extends Object
Lifecycle-aware service context for one activation of one Scene.

The facade creates this context before Scene.setupScene(), supplies it through Scene.configure(SceneServices), advances it around Scene.update(), and closes it after Scene.dispose(). Reloading the same scene object creates a fresh context.

Scenes consume these services but never construct or close them. Every accessor rejects use after the activation begins disposal.

API stability: Advanced Stable.

Since:
2.0.0
  • Method Details

    • applet

      public processing.core.PApplet applet()
      Returns:
      Processing applet that owns the facade and this activation
    • frameClock

      public FrameClock frameClock()
      Returns:
      monotonic activation-scoped frame clock
    • timeline

      public SimulationTimeline timeline()
      Returns:
      activation-scoped fixed-step timeline
    • tasks

      public SceneTaskGroup tasks()
      Returns:
      bounded activation-scoped task group
    • assets

      public SceneAssets assets()
      Returns:
      typed activation-scoped Processing asset caches
    • actions

      public SceneActionMap actions()
      Returns:
      activation-scoped named action and input-binding map
    • camera

      public SceneCameraService camera()
      Returns:
      activation-scoped wrapper around the shared scene camera
    • environment

      public SceneEnvironmentService environment()
      Returns:
      activation-scoped Environment configuration
    • ports

      public ScenePorts ports()
      Returns:
      activation-scoped boundary for optional external message adapters
    • requestReload

      public void requestReload()
      Requests one full dispose/configure/setup cycle for the active scene.

      Multiple requests before the next Processing frame boundary coalesce into one reload.