Package de.gurkenlabs.litiengine
Interface GameListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
Input.InputGameAdapter
This listener interface is used for receiving events about the general life-cycle of the
Game (e.g.
started/terminated).-
Method Summary
Modifier and TypeMethodDescriptiondefault voidinitialized(String... args) This method gets called after theGame.init(String...)method was executed.default voidstarted()This method gets called after theGame.startmethod was executed.default voidThis method is called when theGamewas terminated (just beforeSystem.exitis about to be called).default booleanThis method gets called before theGameis about to be terminated.
-
Method Details
-
started
default void started()This method gets called after theGame.startmethod was executed.- See Also:
-
initialized
This method gets called after theGame.init(String...)method was executed.- Parameters:
args- The arguments that were passed to the application.- See Also:
-
terminating
default boolean terminating()This method gets called before theGameis about to be terminated. Returning false prevents the terminate event to continue.- Returns:
- Return false to interrupt the termination process.
-
terminated
default void terminated()This method is called when theGamewas terminated (just beforeSystem.exitis about to be called).
-