public final class ScreenManager
extends java.lang.Object
The ScreenManager
holds instances of all available screen and handles whenever a different Screen
should be shown to the
player. It provides the
currently active Screen for the Game’s RenderComponent
which calls the Screen.render(Graphics2D)
method on every tick of
the RenderLoop
.
Overwriting this method provides the ability to define a customized render pipeline that suits the need of a particular Screen implementation. With
the GameScreen, the LITIengine provides a simple default Screen implementation that renders the current Environment
and all its
GuiComponents
.
- See Also:
Screen
,
RenderComponent
,
GameScreen
,
GuiComponent.render(java.awt.Graphics2D)
,
Game.renderLoop()