Interface CutsceneOrchestrator
- All Known Implementing Classes:
DefaultOrchestrator
public interface CutsceneOrchestrator
Responsible for managing the state of a cutscene.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
advance()
Key or click to advancevoid
Selects a choice (from choice events)boolean
isRuning()
Returns the running state of the orchestrator (to dispose)void
Loads a cutscene from aCutscene
objectboolean
paused()
Check if the orchestrator is runningvoid
setPause
(boolean pause) Set the pause state of the orchestratorstate()
Get the current state of the orchestratorvoid
stop()
Permanently stops execution, required load to restart cutscenevoid
update
(float dt) Updates the state of the cutscene by delta time (dt)
-
Method Details
-
load
Loads a cutscene from aCutscene
object- Parameters:
cutscene
- The cutscene to load
-
update
void update(float dt) Updates the state of the cutscene by delta time (dt)- Parameters:
dt
- Delta time between game frames
-
advance
void advance()Key or click to advance -
choose
Selects a choice (from choice events)- Parameters:
id
- The id of the choice made
-
state
OrchestratorState state()Get the current state of the orchestrator- Returns:
- The current state of the orchestrator
-
paused
boolean paused()Check if the orchestrator is running- Returns:
- true if paused, false if running
-
isRuning
boolean isRuning()Returns the running state of the orchestrator (to dispose)- Returns:
- true if running, false otherwise
-
setPause
void setPause(boolean pause) Set the pause state of the orchestrator- Parameters:
pause
- True to pause execution, false to continue execution
-
stop
void stop()Permanently stops execution, required load to restart cutscene
-