Package com.csse3200.game.services
Class CutsceneService
java.lang.Object
com.csse3200.game.services.CutsceneService
Service for managing cutscenes throughout the game.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
end()
Clear the cutscene entity if it existsvoid
playCutscene
(String name, Consumer<String> callback) runs a cutscene from its name
-
Constructor Details
-
CutsceneService
public CutsceneService()Constructor for the CutsceneService class.
-
-
Method Details
-
playCutscene
runs a cutscene from its name- Parameters:
name
- The name of the cutscenecallback
- The callback to be called when the cutscene is complete
-
end
public void end()Clear the cutscene entity if it exists
-