com.jmex.game.state.load
Class LoadingGameState
java.lang.Object
com.jmex.game.state.GameState
com.jmex.game.state.load.LoadingGameState
- All Implemented Interfaces:
- Loader
- Direct Known Subclasses:
- TransitionGameState
public class LoadingGameState
- extends GameState
- implements Loader
- Author:
- Matthew D. Hicks
Method Summary |
void |
cleanup()
Gets performed when cleanup is called on a parent GameStateNode (e.g. |
float |
increment()
|
float |
increment(int steps)
|
float |
increment(int steps,
java.lang.String activity)
|
float |
increment(java.lang.String activity)
|
protected void |
init()
|
void |
render(float tpf)
Gets called every frame after update(float) by the
GameStateManager . |
protected void |
setAlpha(float alpha)
|
void |
setProgress(float progress)
|
void |
setProgress(float progress,
java.lang.String activity)
|
void |
update(float tpf)
Gets called every frame before render(float) by the parent
GameStateNode . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rootNode
protected Node rootNode
color
protected ColorRGBA color
alphaState
protected BlendState alphaState
LoadingGameState
public LoadingGameState()
LoadingGameState
public LoadingGameState(int steps)
init
protected void init()
update
public void update(float tpf)
- Description copied from class:
GameState
- Gets called every frame before render(float) by the parent
GameStateNode
.
- Specified by:
update
in class GameState
- Parameters:
tpf
- The elapsed time since last frame.
render
public void render(float tpf)
- Description copied from class:
GameState
- Gets called every frame after update(float) by the
GameStateManager
.
- Specified by:
render
in class GameState
- Parameters:
tpf
- The elapsed time since last frame.
cleanup
public void cleanup()
- Description copied from class:
GameState
- Gets performed when cleanup is called on a parent GameStateNode (e.g.
the GameStateManager).
- Specified by:
cleanup
in class GameState
setProgress
public void setProgress(float progress)
- Specified by:
setProgress
in interface Loader
setProgress
public void setProgress(float progress,
java.lang.String activity)
- Specified by:
setProgress
in interface Loader
setAlpha
protected void setAlpha(float alpha)
increment
public float increment()
- Specified by:
increment
in interface Loader
increment
public float increment(int steps)
- Specified by:
increment
in interface Loader
increment
public float increment(java.lang.String activity)
- Specified by:
increment
in interface Loader
increment
public float increment(int steps,
java.lang.String activity)
- Specified by:
increment
in interface Loader