com.jme3.app.state
クラス AbstractAppState

java.lang.Object
  上位を拡張 com.jme3.app.state.AbstractAppState
すべての実装されたインタフェース:
AppState

public class AbstractAppState
extends java.lang.Object
implements AppState

AbstractAppState implements some common methods that make creation of AppStates easier.


コンストラクタの概要
AbstractAppState()
           
 
メソッドの概要
 void cleanup()
          Cleanup the game state.
 void initialize(AppStateManager stateManager, Application app)
          Called to initialize the AppState.
 boolean isEnabled()
           
 boolean isInitialized()
           
 void postRender()
          Called after all rendering commands are flushed.
 void render(RenderManager rm)
          Render the state.
 void setEnabled(boolean enabled)
          Enable or disable the functionality of the AppState.
 void stateAttached(AppStateManager stateManager)
          Called when the state was attached.
 void stateDetached(AppStateManager stateManager)
          Called when the state was detached.
 void update(float tpf)
          Called to update the state.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AbstractAppState

public AbstractAppState()
メソッドの詳細

initialize

public void initialize(AppStateManager stateManager,
                       Application app)
インタフェース AppState の記述:
Called to initialize the AppState.

定義:
インタフェース AppState 内の initialize
パラメータ:
stateManager - The state manager

isInitialized

public boolean isInitialized()
定義:
インタフェース AppState 内の isInitialized
戻り値:
True if initialize() was called on the state, false otherwise.

setEnabled

public void setEnabled(boolean enabled)
インタフェース AppState の記述:
Enable or disable the functionality of the AppState. The effect of this call depends on implementation. An AppState starts as being enabled by default.

定義:
インタフェース AppState 内の setEnabled
パラメータ:
enabled - activate the AppState or not.

isEnabled

public boolean isEnabled()
定義:
インタフェース AppState 内の isEnabled
戻り値:
True if the AppState is enabled, false otherwise.
関連項目:
AppState.setEnabled(boolean)

stateAttached

public void stateAttached(AppStateManager stateManager)
インタフェース AppState の記述:
Called when the state was attached.

定義:
インタフェース AppState 内の stateAttached
パラメータ:
stateManager - State manager to which the state was attached to.

stateDetached

public void stateDetached(AppStateManager stateManager)
インタフェース AppState の記述:
Called when the state was detached.

定義:
インタフェース AppState 内の stateDetached
パラメータ:
stateManager - The state manager from which the state was detached from.

update

public void update(float tpf)
インタフェース AppState の記述:
Called to update the state.

定義:
インタフェース AppState 内の update
パラメータ:
tpf - Time per frame.

render

public void render(RenderManager rm)
インタフェース AppState の記述:
Render the state.

定義:
インタフェース AppState 内の render
パラメータ:
rm - RenderManager

postRender

public void postRender()
インタフェース AppState の記述:
Called after all rendering commands are flushed.

定義:
インタフェース AppState 内の postRender

cleanup

public void cleanup()
インタフェース AppState の記述:
Cleanup the game state.

定義:
インタフェース AppState 内の cleanup