|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.game.state.GameState
com.jmex.game.state.BasicGameState
com.jmex.game.state.TextGameState
com.jmex.game.state.FPSGameState
public class FPSGameState
FPSGameState
is a simple extension of TextGameState to display the
frames per second. This provides a convenient mechanism to display or disable the
frames per second in a game.
Field Summary |
---|
Fields inherited from class com.jmex.game.state.TextGameState |
---|
textNode, textObject |
Fields inherited from class com.jmex.game.state.BasicGameState |
---|
rootNode |
Fields inherited from class com.jmex.game.state.GameState |
---|
active, name, parent |
Constructor Summary | |
---|---|
FPSGameState()
|
Method Summary | |
---|---|
void |
update(float tpf)
Updates the rootNode. |
Methods inherited from class com.jmex.game.state.TextGameState |
---|
cleanup, getText, render, setText |
Methods inherited from class com.jmex.game.state.BasicGameState |
---|
getRootNode |
Methods inherited from class com.jmex.game.state.GameState |
---|
getName, getParent, isActive, setActive, setName, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FPSGameState()
Method Detail |
---|
public void update(float tpf)
BasicGameState
update
in class TextGameState
tpf
- The elapsed time since last frame.GameState.update(float)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |