java.lang.Object
de.gurkenlabs.litiengine.gui.GuiComponent
de.gurkenlabs.litiengine.gui.screens.Screen
All Implemented Interfaces:
IRenderable, Tweenable, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
Direct Known Subclasses:
GameScreen

public abstract class Screen
extends GuiComponent
Screens are the containers that allow you to organize the visible contents of your game. They render the game’s Environment and are considered the parent of all GUI components you want to display in a particular state of your game. The screen itself inherits from GuiComponent and thereby provides support to define an Appearance and listen to all kinds of Input events (e.g. onMouseMoved(…)). Everything that should be visible to the player needs to be rendered to the currently active screen.
  • Constructor Details

    • Screen

      protected Screen​(java.lang.String screenName)
  • Method Details

    • setX

      public void setX​(double x)
      Description copied from class: GuiComponent
      Sets the GuiComponent's x coordinate.
      Overrides:
      setX in class GuiComponent
      Parameters:
      x - the new x coordinate
    • setY

      public void setY​(double y)
      Description copied from class: GuiComponent
      Sets the GuiComponent's y coordinate.
      Overrides:
      setY in class GuiComponent
      Parameters:
      y - the new y coordinate