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 TypeMethodDescription
    default voidinitialized​(java.lang.String... args)
    This method gets called after the Game.init(String...) method was executed.
    default voidstarted()
    This method gets called after the Game.start method was executed.
    default voidterminated()
    This method is called when the Game was terminated (just before System.exit is about to be called).
    default booleanterminating()
    This method gets called before the Game is about to be terminated.
  • Method Details

    • started

      default void started()
      This method gets called after the Game.start method was executed.
      See Also:
      Game.start()
    • initialized

      default void initialized​(java.lang.String... args)
      This method gets called after the Game.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 the Game 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 the Game was terminated (just before System.exit is about to be called).