Interface GameListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
Input.InputGameAdapter

public interface GameListener extends 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
    This method gets called after the Game.init(String...) method was executed.
    default void
    This method gets called after the Game.start method was executed.
    default void
    This method is called when the Game was terminated (just before System.exit is about to be called).
    default boolean
    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:
    • initialized

      default void initialized(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:
    • 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).