Package bagel

Class AbstractGame

java.lang.Object
bagel.AbstractGame

public abstract class AbstractGame extends Object
The base class for all Bagel games.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create the game with a default window size (1024x768) and title ("Game").
    AbstractGame(int width, int height)
    Create the game with a default title ("Game").
    AbstractGame(int width, int height, String title)
    Create the game.
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    run()
    Start the game loop.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractGame

      public AbstractGame()
      Create the game with a default window size (1024x768) and title ("Game").
    • AbstractGame

      public AbstractGame(int width, int height)
      Create the game with a default title ("Game").
    • AbstractGame

      public AbstractGame(int width, int height, String title)
      Create the game.
  • Method Details

    • run

      public final void run()
      Start the game loop.