com.jme3.app.state
クラス AppStateManager

java.lang.Object
  上位を拡張 com.jme3.app.state.AppStateManager

public class AppStateManager
extends java.lang.Object

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.
<T extends AppState>
T
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
 

コンストラクタの詳細

AppStateManager

public AppStateManager(Application app)
メソッドの詳細

attach

public boolean attach(AppState state)
Attach a state to the AppStateManager, the same state cannot be attached twice.

パラメータ:
state - The state to attach
戻り値:
True if the state was successfully attached, false if the state was already attached.

detach

public boolean detach(AppState state)
Detaches the state from the AppStateManager.

パラメータ:
state - The state to detach
戻り値:
True if the state was detached successfully, false if the state was not attached in the first place.

hasState

public boolean hasState(AppState state)
Check if a state is attached or not.

パラメータ:
state - The state to check
戻り値:
True if the state is currently attached to this AppStateManager.
関連項目:
attach(com.jme3.app.state.AppState)

getState

public <T extends AppState> T getState(java.lang.Class<T> stateClass)
Returns the first state that is an instance of subclass of the specified class.

型パラメータ:
T -
パラメータ:
stateClass -
戻り値:
First attached state that is an instance of stateClass

update

public void update(float tpf)
Calls update for attached states, do not call directly.

パラメータ:
tpf - Time per frame.

render

public void render(RenderManager rm)
Calls render for all attached states, do not call directly.

パラメータ:
rm - The RenderManager

postRender

public void postRender()
Calls render for all attached states, do not call directly.


cleanup

public void cleanup()
Calls cleanup on attached states, do not call directly.