@@ -0,0 +1,1146 @@
+package com.betato.gamedisplay;%0A%0Aimport java.awt.Graphics;%0A%0A/**%0A * A game to be run inside a GameWindow with a Frame and GameLoop.%0A */%0Apublic interface Game %7B%0A%09%0A%09/**%0A%09 * Called when GameWindow has initialized, before the game loop starts.%0A%09 */%0A%09public void init();%0A%0A%09/**%0A%09 * Called as specified based on the GameLoop targetUps.%0A%09 * %0A%09 * @param gameLoop%0A%09 *            The inputListener for this GameWindow, containing mouse and keyboard events that have occurred since%0A%09 *            the last update%0A%09 * @param frameListener%0A%09 *            The frameListener for this GameWindow, containing frame events that have occurred since the last%0A%09 *            update%0A%09 * @param delta%0A%09 *            The amount of time passed since the last update in nanoseconds%0A%09 */%0A%09public void update(InputListener inputListener, FrameListener frameListener, long delta);%0A%0A%09/**%0A%09 * Called as specified based on the GameLoop targetFps.%0A%09 * %0A%09 * @param g%0A%09 *            The graphics to draw to the GameWindow with.%0A%09 */%0A%09public void render(Graphics g);%0A%0A%09/**%0A%09 * Called after the game loop stops when stop is called or when window is closed.%0A%09 */%0A%09public void exit();%0A%7D%0A

Add Game interface; the new structure for a game