|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Game
The main game interface that should be implemented by any game being developed using the container system. There will be some utility type sub-classes as development continues.
BasicGame| Method Summary | |
|---|---|
boolean |
closeRequested()
Notification that a game close has been requested |
java.lang.String |
getTitle()
Get the title of this game |
void |
init(GameContainer container)
Initialise the game. |
void |
render(GameContainer container,
Graphics g)
Render the game's screen here. |
void |
update(GameContainer container,
int delta)
Update the game logic here. |
| Method Detail |
|---|
void init(GameContainer container)
throws SlickException
container - The container holding the game
SlickException - Throw to indicate an internal error
void update(GameContainer container,
int delta)
throws SlickException
container - The container holing this gamedelta - The amount of time thats passed since last update in milliseconds
SlickException - Throw to indicate an internal error
void render(GameContainer container,
Graphics g)
throws SlickException
container - The container holing this gameg - The graphics context that can be used to render. However, normal rendering
routines can also be used.
SlickException - Throw to indicate a internal errorboolean closeRequested()
java.lang.String getTitle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||