|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Game
I take this from slick. Why not using slick because i don't need all slick implementation And later i want the possibilité of plug in renderer. So SlickRender 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.
org.newdawn.slick.BasicGame
Method Summary | |
---|---|
void |
addDebugHisResRender(Renderable r)
|
void |
addRender(Renderable r)
|
java.util.List<Renderable> |
getDebugHisResRender()
|
java.util.List<Renderable> |
getRenderables()
|
void |
init(java.lang.Object container)
Initialise the game. |
void |
render()
Render the game's screen here. |
void |
renderDebugInfo()
|
void |
update(int delta)
Update the game logic here. |
Method Detail |
---|
void init(java.lang.Object container) throws java.lang.Exception
container
- The container holding the game
java.lang.Exception
- Throw to indicate an internal errorvoid update(int delta) throws java.lang.Exception
container
- The container holing this gamedelta
- The amount of time thats passed since last update in milliseconds
java.lang.Exception
- Throw to indicate an internal errorvoid render() throws java.lang.Exception
container
- The container holing this gameg
- The graphics context that can be used to render. However, normal rendering
routines can also be used.
java.lang.Exception
- Throw to indicate a internal errorvoid addRender(Renderable r)
void addDebugHisResRender(Renderable r)
java.util.List<Renderable> getRenderables()
java.util.List<Renderable> getDebugHisResRender()
void renderDebugInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |