|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.state.transition.FadeOutTransition
public class FadeOutTransition
A transition to fade out to a given colour
| Constructor Summary | |
|---|---|
FadeOutTransition()
Create a new fade out transition |
|
FadeOutTransition(Color color)
Create a new fade out transition |
|
FadeOutTransition(Color color,
int fadeTime)
Create a new fade out 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 |
| Constructor Detail |
|---|
public FadeOutTransition()
public FadeOutTransition(Color color)
color - The color we're going to fade out to
public FadeOutTransition(Color color,
int fadeTime)
color - The color we're going to fade out tofadeTime - The time it takes the fade to occur| Method Detail |
|---|
public boolean isComplete()
Transition
isComplete in interface TransitionTransition.isComplete()
public void postRender(StateBasedGame game,
GameContainer container,
Graphics g)
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 transitonTransition.postRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
public void update(StateBasedGame game,
GameContainer container,
int delta)
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 updateTransition.update(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, int)
public void preRender(StateBasedGame game,
GameContainer container,
Graphics g)
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 transitonTransition.preRender(org.newdawn.slick.state.StateBasedGame, org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||