org.lee.mugen.core.renderer
Interface GameWindow

All Known Implementing Classes:
JGameWindow, JGameWindowLow, LwjgGameWindow

public interface GameWindow

The window in which the game will be displayed. This interface exposes just enough to allow the game logic to interact with, while still maintaining an abstraction away from any physical implementation of windowing (i.e. AWT, LWJGL)

Author:
Kevin Glass

Method Summary
 void addSpriteKeyProcessor(SpriteCmdProcess scp)
           
 void setGameWindowCallback(Game callback)
          Set the callback that should be notified of the window events.
 void setResolution(int x, int y)
          Set the game display resolution
 void setTitle(java.lang.String title)
          Set the title of the game window
 void start()
          Start the game window rendering the display
 

Method Detail

setTitle

void setTitle(java.lang.String title)
Set the title of the game window

Parameters:
title - The new title for the game window

setResolution

void setResolution(int x,
                   int y)
Set the game display resolution

Parameters:
x - The new x resolution of the display
y - The new y resolution of the display

start

void start()
           throws java.lang.Exception
Start the game window rendering the display

Throws:
java.lang.Exception

setGameWindowCallback

void setGameWindowCallback(Game callback)
Set the callback that should be notified of the window events.

Parameters:
callback - The callback that should be notified of game window events.

addSpriteKeyProcessor

void addSpriteKeyProcessor(SpriteCmdProcess scp)