|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.state.transition.SelectTransition
public class SelectTransition
A transition that moves to the next as though it was selected by some background menu. Note this transition is provided as an example more than intended for use. The values contained are designed for 800x600 resolution. This is an enter transition
| Field Summary | |
|---|---|
protected static SGL |
GL
The renderer to use for all GL operations |
| Constructor Summary | |
|---|---|
SelectTransition()
Create a new transition |
|
SelectTransition(Color background)
Create a new transition |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static SGL GL
| Constructor Detail |
|---|
public SelectTransition()
public SelectTransition(Color background)
background - The background colour to draw under the previous state| Method Detail |
|---|
public void init(GameState firstState,
GameState secondState)
Transition
init in interface TransitionfirstState - 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)Transition.init(org.newdawn.slick.state.GameState, org.newdawn.slick.state.GameState)public boolean isComplete()
Transition
isComplete in interface TransitionTransition.isComplete()
public void postRender(StateBasedGame game,
GameContainer container,
Graphics g)
throws SlickException
Transition
postRender in interface Transitiongame - 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 renderTransition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
public void preRender(StateBasedGame game,
GameContainer container,
Graphics g)
throws SlickException
Transition
preRender in interface Transitiongame - 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 renderTransition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
public void update(StateBasedGame game,
GameContainer container,
int delta)
throws SlickException
Transition
update in interface Transitiongame - 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 updateTransition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||