Class AnimatedScene
java.lang.Object
com.csse3200.game.components.cutscenes.scenes.AnimatedScene
AnimatedScene class represents one animated scene for a cutscene.
It contains atlas file for the scene and the length it needs to play for.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnimatedScene(String atlasFilePath, String animName, float duration) Constructor for an animatedScene -
Method Summary
Modifier and TypeMethodDescriptionGet the animation name.Get the atlas file path.floatGet the animation duration.
-
Field Details
-
animName
-
-
Constructor Details
-
AnimatedScene
Constructor for an animatedScene- Parameters:
atlasFilePath- Path to the atlas file for the animation.duration- Duration of the animation.
-
-
Method Details
-
getAtlasFilePath
Get the atlas file path.- Returns:
- String which is the path to the atlas file.
-
getDuration
public float getDuration()Get the animation duration.- Returns:
- Float which is the duration of the animation.
-
getAnimName
Get the animation name.- Returns:
- String which is the animation name
-