|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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)
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 |
---|
void setTitle(java.lang.String title)
title
- The new title for the game windowvoid setResolution(int x, int y)
x
- The new x resolution of the displayy
- The new y resolution of the displayvoid start() throws java.lang.Exception
java.lang.Exception
void setGameWindowCallback(Game callback)
callback
- The callback that should be notified of game
window events.void addSpriteKeyProcessor(SpriteCmdProcess scp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |