Class JmeSurfaceView.GameState

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static com.jme3.app.LegacyApplication getLegacyApplication()
      Returns the current application state.
      protected static boolean isFirstUpdatePassed()
      Tests the first update flag.
      protected static void setFirstUpdatePassed​(boolean firstUpdatePassed)
      Adjusts the first update flag.
      protected static void setLegacyApplication​(com.jme3.app.LegacyApplication legacyApplication)
      Replaces the current application state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLegacyApplication

        protected static com.jme3.app.LegacyApplication getLegacyApplication()
        Returns the current application state.
        Returns:
        game state instance, holding jME3 states (JmeContext, AssetManager, StateManager, Graphics, Sound, Input, Spatial/Nodes in place, etcetera).
      • setLegacyApplication

        protected static void setLegacyApplication​(com.jme3.app.LegacyApplication legacyApplication)
        Replaces the current application state.
        Parameters:
        legacyApplication - the new app instance holding the game state (including AssetLoaders, AudioNodes, Spatials, etcetera).
      • isFirstUpdatePassed

        protected static boolean isFirstUpdatePassed()
        Tests the first update flag.
        Returns:
        true if the firstUpdate has passed, false otherwise.
      • setFirstUpdatePassed

        protected static void setFirstUpdatePassed​(boolean firstUpdatePassed)
        Adjusts the first update flag.
        Parameters:
        firstUpdatePassed - set to true to determine whether the firstUpdate has passed, false otherwise.