Class ScreenChangedEvent

java.lang.Object
java.util.EventObject
de.gurkenlabs.litiengine.gui.screens.ScreenChangedEvent
All Implemented Interfaces:
Serializable

public class ScreenChangedEvent extends EventObject
This event is fired when the screen changes in the game.
See Also:
  • Constructor Details

    • ScreenChangedEvent

      public ScreenChangedEvent(Screen changed, Screen previous)
      Constructs a new ScreenChangedEvent.
      Parameters:
      changed - the new screen that has been changed to
      previous - the previous screen that was displayed
  • Method Details

    • getPrevious

      public Screen getPrevious()
      Gets the previous screen that was displayed.
      Returns:
      the previous screen
    • getChanged

      public Screen getChanged()
      Gets the new screen that has been changed to.
      Returns:
      the new screen