java.lang.Object
com.csse3200.game.components.cutscenes.scenes.Scene

public class Scene extends Object
The Scene class represents an individual scene within a cutscene. It contains the background image, animations, text, and duration of the scene.
  • Constructor Details

    • Scene

      public Scene(String backgroundImagePath)
      Constructor for the Scene class.
      Parameters:
      backgroundImagePath - Path to the background image.
  • Method Details

    • getBackgroundImagePath

      public String getBackgroundImagePath()
      Gets the background image path for the scene.
      Returns:
      Path to the background image.
    • setBackgroundImagePath

      public void setBackgroundImagePath(String backgroundImagePath)
    • getAnimationImagePaths

      public String[] getAnimationImagePaths()
      Gets the animation image paths for the scene.
      Returns:
      Array of paths to the animation images.
    • getAnimationPositions

      public com.badlogic.gdx.math.Vector2[] getAnimationPositions()
      Gets the animation positions for the scene.
      Returns:
      Array of Vector2 positions for the animation images.
    • setAnimationImages

      public void setAnimationImages(String[] animationImagePaths, com.badlogic.gdx.math.Vector2[] animationPositions)
    • getImagePaths

      public String[] getImagePaths()
      Gets the animation image paths for the scene.
      Returns:
      Array of paths to the images.
    • getImageScales

      public float[] getImageScales()
      Gets the image scales for the scene.
      Returns:
      Array of Vector2 positions for the images.
    • getImagePositions

      public com.badlogic.gdx.math.Vector2[] getImagePositions()
    • setImages

      public void setImages(String[] imagePaths, com.badlogic.gdx.math.Vector2[] imagePositions, float[] imageScales)
    • getSceneText

      public com.badlogic.gdx.utils.Array<String> getSceneText()
      Gets the dialogue text for the scene.
      Returns:
      Array of dialogue text strings for the scene.
    • setSceneText

      public void setSceneText(com.badlogic.gdx.utils.Array<String> sceneText)
    • getDuration

      public float getDuration()
      Gets the duration of the scene.
      Returns:
      The duration of the scene in seconds.
    • setDuration

      public void setDuration(float duration)