Package com.csse3200.game.cutscene
Class CutsceneCompiler
java.lang.Object
com.csse3200.game.cutscene.CutsceneCompiler
Cutscene compiler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile
(CutsceneDocDTO cutsceneDocDTO) Compiles aCutsceneDocDTO
into aCutscene
No error checking is handled in this method as it assumed that theCutsceneDocDTO
has already been validated.getBackground
(String id) Gets a background by its id.Gets a beat by its id.getCharacter
(String id) Gets a character by its id.Gets a sound by its id.
-
Constructor Details
-
CutsceneCompiler
public CutsceneCompiler()
-
-
Method Details
-
compile
Compiles aCutsceneDocDTO
into aCutscene
No error checking is handled in this method as it assumed that theCutsceneDocDTO
has already been validated.- Parameters:
cutsceneDocDTO
- TheCutsceneDocDTO
to be compiled- Returns:
- A
Cutscene
with all the information filled out.
-
getBackground
Gets a background by its id.- Parameters:
id
- the id of the background- Returns:
- the background
-
getCharacter
Gets a character by its id.- Parameters:
id
- the id of the character- Returns:
- the character
-
getSound
Gets a sound by its id.- Parameters:
id
- the id of the sound- Returns:
- the sound
-
getBeat
Gets a beat by its id.- Parameters:
id
- the id of the beat- Returns:
- the beat
-