Class GoodEndCutscene
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.cutscenes.Cutscene
com.csse3200.game.components.cutscenes.GoodEndCutscene
The GoodEndCutscene class plays the good end cutscene when triggered at the end of the game.
-
Field Summary
Fields inherited from class com.csse3200.game.components.cutscenes.Cutscene
animatedScenes, animations, animName, currentAnimatedScene, currentScene, currentSceneIndex, currentText, cutsceneText, entities, gameTime, images, isAnimatedScenes, scenes, textIndex, textures, timeStart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Abstract method to create entities for the cutscene.Get the list of animated scenesprotected void
Loads the assets needed for the cutscene, including textures for backgrounds and animations.protected void
Sets up the scenes for the good end cutscene, in particular, the animation images for each scene.Methods inherited from class com.csse3200.game.components.cutscenes.Cutscene
create, createEntitiesForScene, createEntitiesForScene, dispose, disposeEntities, getAnimations, getCurrentSceneIndex, getImages, getScenes, getTextures, getTimeStart, isAtEnd, isCompleted, loadAssetsForScene, loadAssetsForScene, loadScene, nextCutscene, nextCutsceneMoral, setAnimations, setCurrentScene, setImages, setScenes, setTextForScene, setTextForSceneMoral, setTextures, setTimeStart, start, unloadAssets, update
Methods inherited from class com.csse3200.game.components.Component
earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate
-
Constructor Details
-
GoodEndCutscene
public GoodEndCutscene()Constructor for the GoodEndCutscene class.
-
-
Method Details
-
setupScenes
protected void setupScenes()Sets up the scenes for the good end cutscene, in particular, the animation images for each scene.- Specified by:
setupScenes
in classCutscene
-
loadAssets
protected void loadAssets()Loads the assets needed for the cutscene, including textures for backgrounds and animations.- Specified by:
loadAssets
in classCutscene
-
createEntities
public void createEntities()Description copied from class:Cutscene
Abstract method to create entities for the cutscene. This should be implemented by subclasses.- Specified by:
createEntities
in classCutscene
-
getAnimatedScenes
Get the list of animated scenes- Returns:
- List of animated scenes
-