|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transition
A transition between two game states
| Method Summary | |
|---|---|
void |
init(GameState firstState,
GameState secondState)
Initialise the transition |
boolean |
isComplete()
Check if this transtion has been completed |
void |
postRender(StateBasedGame game,
GameContainer container,
Graphics g)
Render the transition over the existing state rendering |
void |
preRender(StateBasedGame game,
GameContainer container,
Graphics g)
Render the transition before the existing state rendering |
void |
update(StateBasedGame game,
GameContainer container,
int delta)
Update the transition. |
| Method Detail |
|---|
void update(StateBasedGame game,
GameContainer container,
int delta)
throws SlickException
game - The game this transition is being rendered as part ofcontainer - The container holding the gamedelta - The amount of time passed since last update
SlickException - Indicates a failure occured during the update
void preRender(StateBasedGame game,
GameContainer container,
Graphics g)
throws SlickException
game - The game this transition is being rendered as part ofcontainer - The container holding the gameg - The graphics context to use when rendering the transiton
SlickException - Indicates a failure occured during the render
void postRender(StateBasedGame game,
GameContainer container,
Graphics g)
throws SlickException
game - The game this transition is being rendered as part ofcontainer - The container holding the gameg - The graphics context to use when rendering the transiton
SlickException - Indicates a failure occured during the renderboolean isComplete()
void init(GameState firstState,
GameState secondState)
firstState - The first state we're rendering (this will be rendered by the framework)secondState - The second stat we're transitioning to or from (this one won't be rendered)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||