Class CutsceneCompiler

java.lang.Object
com.csse3200.game.cutscene.CutsceneCompiler

public class CutsceneCompiler extends Object
Cutscene compiler.
  • Constructor Details

    • CutsceneCompiler

      public CutsceneCompiler()
  • Method Details

    • compile

      public Cutscene compile(CutsceneDocDTO cutsceneDocDTO)
      Compiles a CutsceneDocDTO into a Cutscene No error checking is handled in this method as it assumed that the CutsceneDocDTO has already been validated.
      Parameters:
      cutsceneDocDTO - The CutsceneDocDTO to be compiled
      Returns:
      A Cutscene with all the information filled out.
    • getBackground

      public Background getBackground(String id)
      Gets a background by its id.
      Parameters:
      id - the id of the background
      Returns:
      the background
    • getCharacter

      public Character getCharacter(String id)
      Gets a character by its id.
      Parameters:
      id - the id of the character
      Returns:
      the character
    • getSound

      public Sound getSound(String id)
      Gets a sound by its id.
      Parameters:
      id - the id of the sound
      Returns:
      the sound
    • getBeat

      public Beat getBeat(String id)
      Gets a beat by its id.
      Parameters:
      id - the id of the beat
      Returns:
      the beat