Class CutsceneService

java.lang.Object
com.csse3200.game.services.CutsceneService

public class CutsceneService extends Object
Service for managing cutscenes throughout the game.
  • Constructor Details

    • CutsceneService

      public CutsceneService()
      Constructor for the CutsceneService class.
  • Method Details

    • playCutscene

      public void playCutscene(String name, Consumer<String> callback)
      runs a cutscene from its name
      Parameters:
      name - The name of the cutscene
      callback - The callback to be called when the cutscene is complete
    • end

      public void end()
      Clear the cutscene entity if it exists