Package de.gurkenlabs.litiengine
Interface GameListener
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
Input.InputGameAdapter
public interface GameListener
extends java.util.EventListener
This 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 void
initialized(java.lang.String... args)
This method gets called after theGame.init(String...)
method was executed.default void
started()
This method gets called after theGame.start
method was executed.default void
terminated()
This method is called when theGame
was terminated (just beforeSystem.exit
is about to be called).default boolean
terminating()
This method gets called before theGame
is about to be terminated.
Method Details
started
default void started()This method gets called after theGame.start
method 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 theGame
is 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 theGame
was terminated (just beforeSystem.exit
is about to be called).