Class AnimatedScene

java.lang.Object
com.csse3200.game.components.cutscenes.scenes.AnimatedScene

public class AnimatedScene extends Object
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 Details

    • animName

      public String animName
  • Constructor Details

    • AnimatedScene

      public AnimatedScene(String atlasFilePath, String animName, float duration)
      Constructor for an animatedScene
      Parameters:
      atlasFilePath - Path to the atlas file for the animation.
      duration - Duration of the animation.
  • Method Details

    • getAtlasFilePath

      public String 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

      public String getAnimName()
      Get the animation name.
      Returns:
      String which is the animation name