Class BackgroundState

java.lang.Object
com.csse3200.game.cutscene.runtime.states.BackgroundState

public class BackgroundState extends Object
Background state.
  • Constructor Details

    • BackgroundState

      public BackgroundState()
  • Method Details

    • getImage

      public com.badlogic.gdx.scenes.scene2d.utils.Drawable getImage()
      Gets the image.
      Returns:
      the image
    • getOldImage

      public com.badlogic.gdx.scenes.scene2d.utils.Drawable getOldImage()
      Gets the old image.
      Returns:
      the old image
    • getImageOpacity

      public float getImageOpacity()
      Gets the image opacity.
      Returns:
      the image opacity
    • getOldImageOpacity

      public float getOldImageOpacity()
      Gets the old image opacity.
      Returns:
      the old image opacity
    • setImage

      public void setImage(com.badlogic.gdx.scenes.scene2d.utils.Drawable newImage)
      Sets the image.
      Parameters:
      newImage - the new image
    • setImageOpacity

      public void setImageOpacity(float imageOpacity)
      Sets the image opacity.
      Parameters:
      imageOpacity - the new image opacity
    • setOldImageOpacity

      public void setOldImageOpacity(float oldImageOpacity)
      Sets the old image opacity.
      Parameters:
      oldImageOpacity - the new old image opacity