Package de.gurkenlabs.litiengine
Interface GameListener
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
Input.InputGameAdapter
public interface GameListener
extends java.util.EventListenerThis listener interface is used for receiving events about the general life-cycle of the
Game (e.g. started/terminated).Method Summary
Modifier and Type Method Description default voidinitialized(java.lang.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 voidterminated()This method is called when theGamewas terminated (just beforeSystem.exitis about to be called).default booleanterminating()This 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:
Game.start()
initialized
default void initialized(java.lang.String... args)This method gets called after theGame.init(String...)method was executed.- Parameters:
args- The arguments that were passed to the application.- See Also:
Game.init(String...)
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).
