public interface GameListener
extends java.util.EventListener
Game
(e.g. started/terminated).Modifier and Type | Method and Description |
---|---|
default void |
initialized(java.lang.String... args)
This method gets called after the
Game.init(String...) method was executed. |
default void |
started()
This method gets called after the
Game.start method was executed. |
default void |
terminated()
This method is called when the
Game was terminated (just before System.exit is about to be called). |
default boolean |
terminating()
This method gets called before the
Game is about to be terminated. |
default void started()
Game.start
method was executed.Game.start()
default void initialized(java.lang.String... args)
Game.init(String...)
method was executed.args
- The arguments that were passed to the application.Game.init(String...)
default boolean terminating()
Game
is about to be terminated.
Returning false prevents the terminate event to continue.default void terminated()
Game
was terminated (just before System.exit
is about to be called).