org.lee.mugen.core
Interface Game

All Known Implementing Classes:
StateMachine

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.

Author:
kevin
See Also:
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

init

void init(java.lang.Object container)
          throws java.lang.Exception
Initialise the game. This can be used to load static resources. It's called before the game loop starts

Parameters:
container - The container holding the game
Throws:
java.lang.Exception - Throw to indicate an internal error

update

void update(int delta)
            throws java.lang.Exception
Update the game logic here. No rendering should take place in this method though it won't do any harm.

Parameters:
container - The container holing this game
delta - The amount of time thats passed since last update in milliseconds
Throws:
java.lang.Exception - Throw to indicate an internal error

render

void render()
            throws java.lang.Exception
Render the game's screen here.

Parameters:
container - The container holing this game
g - The graphics context that can be used to render. However, normal rendering routines can also be used.
Throws:
java.lang.Exception - Throw to indicate a internal error

addRender

void addRender(Renderable r)

addDebugHisResRender

void addDebugHisResRender(Renderable r)

getRenderables

java.util.List<Renderable> getRenderables()

getDebugHisResRender

java.util.List<Renderable> getDebugHisResRender()

renderDebugInfo

void renderDebugInfo()