Class Scene
java.lang.Object
com.csse3200.game.components.cutscenes.scenes.Scene
The Scene class represents an individual scene within a cutscene.
It contains the background image, animations, text, and duration of the scene.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the animation image paths for the scene.com.badlogic.gdx.math.Vector2[]Gets the animation positions for the scene.Gets the background image path for the scene.floatGets the duration of the scene.String[]Gets the animation image paths for the scene.com.badlogic.gdx.math.Vector2[]float[]Gets the image scales for the scene.com.badlogic.gdx.utils.Array<String> Gets the dialogue text for the scene.voidsetAnimationImages(String[] animationImagePaths, com.badlogic.gdx.math.Vector2[] animationPositions) voidsetBackgroundImagePath(String backgroundImagePath) voidsetDuration(float duration) voidvoidsetSceneText(com.badlogic.gdx.utils.Array<String> sceneText)
-
Constructor Details
-
Scene
Constructor for the Scene class.- Parameters:
backgroundImagePath- Path to the background image.
-
-
Method Details
-
getBackgroundImagePath
Gets the background image path for the scene.- Returns:
- Path to the background image.
-
setBackgroundImagePath
-
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
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
Gets the dialogue text for the scene.- Returns:
- Array of dialogue text strings for the scene.
-
setSceneText
-
getDuration
public float getDuration()Gets the duration of the scene.- Returns:
- The duration of the scene in seconds.
-
setDuration
public void setDuration(float duration)
-