|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.jme3.app.state.AppStateManager
public class AppStateManager
The AppStateManager holds a list of AppStates which
it will update and render.
When an AppState is attached or detached, the
AppState.stateAttached(com.jme3.app.state.AppStateManager) and
AppState.stateDetached(com.jme3.app.state.AppStateManager) methods
will be called respectively.
| コンストラクタの概要 | |
|---|---|
AppStateManager(Application app)
|
|
| メソッドの概要 | ||
|---|---|---|
boolean |
attach(AppState state)
Attach a state to the AppStateManager, the same state cannot be attached twice. |
|
void |
cleanup()
Calls cleanup on attached states, do not call directly. |
|
boolean |
detach(AppState state)
Detaches the state from the AppStateManager. |
|
|
getState(java.lang.Class<T> stateClass)
Returns the first state that is an instance of subclass of the specified class. |
|
boolean |
hasState(AppState state)
Check if a state is attached or not. |
|
void |
postRender()
Calls render for all attached states, do not call directly. |
|
void |
render(RenderManager rm)
Calls render for all attached states, do not call directly. |
|
void |
update(float tpf)
Calls update for attached states, do not call directly. |
|
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public AppStateManager(Application app)
| メソッドの詳細 |
|---|
public boolean attach(AppState state)
state - The state to attach
public boolean detach(AppState state)
state - The state to detach
public boolean hasState(AppState state)
state - The state to check
attach(com.jme3.app.state.AppState)public <T extends AppState> T getState(java.lang.Class<T> stateClass)
T - stateClass -
public void update(float tpf)
tpf - Time per frame.public void render(RenderManager rm)
rm - The RenderManagerpublic void postRender()
public void cleanup()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||