Class FluentScene
java.lang.Object
nl.colorize.multimedialib.scene.FluentScene
- All Implemented Interfaces:
Scene
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend(SceneContext context) Clean-up logic that is performed every time the scene ends.booleanIndicates the scene has been completed and no longer wishes to receive frame updates.voidupdate(SceneContext context, float deltaTime) Called during every frame update for as long as the scene is active.withCompletion(BooleanSupplier completed) withCompletion(BooleanSupplier completed, Runnable onComplete)
-
Constructor Details
-
FluentScene
-
-
Method Details
-
withCompletion
-
withCompletion
-
update
Description copied from interface:SceneCalled during every frame update for as long as the scene is active.deltaTimeindicates the elapsed time since the last frame, in seconds. -
end
Description copied from interface:SceneClean-up logic that is performed every time the scene ends.This method is optional, the default implementation does nothing.
-
isCompleted
public boolean isCompleted()Description copied from interface:SceneIndicates the scene has been completed and no longer wishes to receive frame updates.If this scene is the currently active scene, it might not actually end until a new scene is requested.
If this scene is a completed sub-scene, meaning there is a parent scene which is still active, this sub-scene will end after the current frame.
- Specified by:
isCompletedin interfaceScene
-