|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.adventure.actions.AbstractAction
de.rico.adventure.actions.custom.FadeOut
public class FadeOut
This game action fades the screen out to a certain color. The color will be kept for a certain amount of time.
| Constructor Summary | |
|---|---|
FadeOut(float red,
float green,
float blue,
int fadingTime,
int keepFadedTime)
Creates a game action that fades the screen out to a certain color and stays at that state for some time. |
|
| Method Summary | |
|---|---|
void |
draw(javax.media.opengl.GL gl)
This method renders the game action, if needed. |
void |
finishUp()
Implementations of this method hold code that needs to be called before the game action can be removed from the queue (prematurely) without causing side effects. |
void |
update(long elapsedTime)
This method updates the game action |
| Methods inherited from class de.rico.adventure.actions.AbstractAction |
|---|
getEntity |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FadeOut(float red,
float green,
float blue,
int fadingTime,
int keepFadedTime)
red - amount of red to fade out togreen - amount of green to fade out toblue - amount of blue to fade out tofadingTime - time to use for the fading processkeepFadedTime - time to keep the screen faded out.| Method Detail |
|---|
public void update(long elapsedTime)
AbstractAction
update in class AbstractActionelapsedTime - time between two framespublic void draw(javax.media.opengl.GL gl)
AbstractAction
draw in class AbstractActionpublic void finishUp()
AbstractAction
finishUp in class AbstractAction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||