Package com.jme3.view.surfaceview
Class JmeSurfaceView.GameState
java.lang.Object
com.jme3.view.surfaceview.JmeSurfaceView.GameState
- Enclosing class:
- JmeSurfaceView
Used as a static memory to protect the game context from destruction by Activity#onDestroy().
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionprotected static LegacyApplicationReturns the current application state.protected static booleanTests the first update flag.protected static voidsetFirstUpdatePassed(boolean firstUpdatePassed) Adjusts the first update flag.protected static voidsetLegacyApplication(LegacyApplication legacyApplication) Replaces the current application state.
- 
Method Details- 
getLegacyApplicationReturns the current application state.- Returns:
- game state instance, holding jME3 states (JmeContext, AssetManager, StateManager, Graphics, Sound, Input, Spatial/Nodes in place, etcetera).
 
- 
setLegacyApplicationReplaces the current application state.- Parameters:
- legacyApplication- the new app instance holding the game state (including- AssetLoaders,- AudioNodes,- Spatials, etcetera).
 
- 
isFirstUpdatePassedprotected static boolean isFirstUpdatePassed()Tests the first update flag.- Returns:
- true if the firstUpdate has passed, false otherwise.
 
- 
setFirstUpdatePassedprotected static void setFirstUpdatePassed(boolean firstUpdatePassed) Adjusts the first update flag.- Parameters:
- firstUpdatePassed- set to true to determine whether the firstUpdate has passed, false otherwise.
 
 
-