Class ScreenChangedEvent
java.lang.Object
java.util.EventObject
de.gurkenlabs.litiengine.gui.screens.ScreenChangedEvent
- All Implemented Interfaces:
Serializable
This event is fired when the screen changes in the game.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionScreenChangedEvent(Screen changed, Screen previous) Constructs a new ScreenChangedEvent. -
Method Summary
Modifier and TypeMethodDescriptionGets the new screen that has been changed to.Gets the previous screen that was displayed.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ScreenChangedEvent
-
-
Method Details
-
getPrevious
Gets the previous screen that was displayed.- Returns:
- the previous screen
-
getChanged
-