Class BackgroundState
java.lang.Object
com.csse3200.game.cutscene.runtime.states.BackgroundState
Background state.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.scenes.scene2d.utils.Drawable
getImage()
Gets the image.float
Gets the image opacity.com.badlogic.gdx.scenes.scene2d.utils.Drawable
Gets the old image.float
Gets the old image opacity.void
setImage
(com.badlogic.gdx.scenes.scene2d.utils.Drawable newImage) Sets the image.void
setImageOpacity
(float imageOpacity) Sets the image opacity.void
setOldImageOpacity
(float oldImageOpacity) Sets the old image opacity.
-
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
-