|
||||||||||
| 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.CameraGameStateDefaultCamera
public abstract class CameraGameStateDefaultCamera
| Field Summary |
|---|
| Fields inherited from class com.jmex.game.state.BasicGameState |
|---|
rootNode |
| Fields inherited from class com.jmex.game.state.GameState |
|---|
active, name, parent |
| Constructor Summary | |
|---|---|
CameraGameStateDefaultCamera(java.lang.String name)
|
|
| Method Summary | |
|---|---|
Node |
getRootNode()
|
protected void |
initZBuffer()
Creates a ZBuffer to display pixels closer to the camera above farther ones. |
protected abstract void |
onActivate()
Points the renderers camera to the one contained by this state. |
protected void |
onDeactivate()
Derived classes can put special actions they want to perform when deactivated here. |
void |
render(float tpf)
Calls stateRender(float), then renders the rootNode. |
void |
setActive(boolean active)
Overwritten to appropriately call switchTo() or switchFrom(). |
protected void |
stateRender(float tpf)
This is where derived classes are supposed to put their render logic. |
protected void |
stateUpdate(float tpf)
This is where derived classes are supposed to put their game logic. |
void |
update(float tpf)
Calls stateUpdate(float), then updates the geometric state of the rootNode. |
| Methods inherited from class com.jmex.game.state.BasicGameState |
|---|
cleanup |
| Methods inherited from class com.jmex.game.state.GameState |
|---|
getName, getParent, isActive, setName, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CameraGameStateDefaultCamera(java.lang.String name)
| Method Detail |
|---|
public Node getRootNode()
getRootNode in class BasicGameStateprotected void initZBuffer()
public void setActive(boolean active)
setActive in class GameStateactive - Whether or not you want this GameState to be updated and rendered.GameState.setActive(boolean)public final void update(float tpf)
update in class BasicGameStatetpf - The elapsed time since last frame.GameState.update(float),
stateUpdate(float)public final void render(float tpf)
render in class BasicGameStatetpf - The elapsed time since last frame.GameState.render(float),
stateRender(float)protected void stateUpdate(float tpf)
Much like the structure of SimpleGame.
tpf - The time since the last frame.protected void stateRender(float tpf)
Much like the structure of SimpleGame.
tpf - The time since the last frame.protected abstract void onActivate()
protected void onDeactivate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||