Package nl.colorize.multimedialib.scene
Class ComplexScene
- java.lang.Object
-
- nl.colorize.multimedialib.scene.ComplexScene
-
- All Implemented Interfaces:
Renderable,Updatable,Scene
public abstract class ComplexScene extends java.lang.Object implements Scene
Scene that is split into a number of subsystems. This is typically needed for scenes that contain a significant amount of functionality, in which case the scene can be split into subsystems, with each subsystem corresponding to a functional area, to manage the scene's complexity.
-
-
Constructor Summary
Constructors Constructor Description ComplexScene()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ColorRGBgetBackgroundColor()EffectManagergetEffectManager()protected abstract voidinitScene()Initializes the scene itself, before any of its subsystems are started.protected abstract java.util.List<SubSystem>initSubSystems()Initializes the list of subsystems that will be used within this scene.voidrender(GraphicsContext graphics)voidsetBackgroundColor(ColorRGB backgroundColor)protected booleanshouldRender(SubSystem subSystem)voidstart()voidupdate(float deltaTime)Updates this object for the current frame.
-
-
-
Method Detail
-
initScene
protected abstract void initScene()
Initializes the scene itself, before any of its subsystems are started. This method is called every time the scene is started.
-
initSubSystems
protected abstract java.util.List<SubSystem> initSubSystems()
Initializes the list of subsystems that will be used within this scene. This method is called every time the scene is started.
-
update
public void update(float deltaTime)
Description copied from interface:UpdatableUpdates this object for the current frame.
-
render
public void render(GraphicsContext graphics)
- Specified by:
renderin interfaceRenderable
-
shouldRender
protected boolean shouldRender(SubSystem subSystem)
-
getEffectManager
public EffectManager getEffectManager()
-
setBackgroundColor
public void setBackgroundColor(ColorRGB backgroundColor)
-
getBackgroundColor
public ColorRGB getBackgroundColor()
-
-