Class Scene

java.lang.Object
dev.prozilla.pine.core.scene.Scene
All Implemented Interfaces:
Lifecycle, Printable, ApplicationContext, ApplicationProvider, SceneContext

public class Scene extends Object implements Lifecycle, Printable, SceneContext, ApplicationProvider
Responsible for loading objects into the world.
  • Field Details

    • name

      public String name
    • application

      protected Application application
    • logger

      protected Logger logger
    • world

      protected World world
    • cameraData

      protected CameraData cameraData
    • cameraPrefab

      protected Prefab cameraPrefab
      Prefab that will be used during scene loading to create a camera entity.
    • loaded

      public boolean loaded
    • initialized

      public boolean initialized
  • Constructor Details

    • Scene

      public Scene()
      Creates a new scene with a generated name. The name consists of Scene # followed by the scene ID.
    • Scene

      public Scene(String name)
      Creates a new scene with a given name.
      Parameters:
      name - Name of the scene
  • Method Details