public interface Game
| Modifier and Type | Method and Description |
|---|---|
boolean |
closeRequested()
Notification that a game close has been requested
|
void |
gameLoop(GameContainer container,
int msElapsed,
Graphics g)
Update the game logic and render the game's screen here.
|
java.lang.String |
getTitle()
Get the title of this game
|
void |
init(GameContainer container)
Initialise the game.
|
void init(GameContainer container) throws SlickException
container - The container holding the gameSlickException - Throw to indicate an internal errorvoid gameLoop(GameContainer container, int msElapsed, Graphics g) throws SlickException
container - The container holding this gamemsElapsed - The amount of time thats passed since last update in millisecondsg - The graphics context that can be used to render. However, normal rendering
routines can also be used.SlickException - Throw to indicate an internal errorboolean closeRequested()
java.lang.String getTitle()