Package net.thewinnt.cutscenes
Class CutsceneInstance
java.lang.Object
net.thewinnt.cutscenes.CutsceneInstance
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleandoubledoubledoublegetTime()voidStops all running effects and transitions.booleanbooleanbooleanbooleantick()Ticks the cutscene logic, mainly theonStart/onFrame/onEndmethods of transitions and cutscene effects
-
Field Details
-
cutscene
-
-
Constructor Details
-
CutsceneInstance
-
-
Method Details
-
tick
public boolean tick()Ticks the cutscene logic, mainly theonStart/onFrame/onEndmethods of transitions and cutscene effects- Returns:
trueif the cutscene should continue
-
interrupt
public void interrupt()Stops all running effects and transitions. The cutscene should not be ticked after calling this method. -
getTime
public double getTime() -
getTimeManager
-
getEndTime
public double getEndTime() -
isTimeForStart
public boolean isTimeForStart() -
isTimeForEnd
public boolean isTimeForEnd() -
getEndProress
public double getEndProress() -
endedStartTransition
public boolean endedStartTransition() -
endedEndTransition
public boolean endedEndTransition() -
isInitialized
public boolean isInitialized()
-