Forráskód Böngészése

Added a getter for the state manager's Application.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10049 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
PSp..om 12 éve
szülő
commit
4c2579d0bf

+ 7 - 0
engine/src/core/com/jme3/app/state/AppStateManager.java

@@ -94,6 +94,13 @@ public class AppStateManager {
         this.app = app;
     }
 
+    /**
+     *  Returns the Application to which this AppStateManager belongs.
+     */
+    public Application getApplication() {
+        return app;
+    }
+
     protected AppState[] getInitializing() { 
         synchronized (states){
             return initializing.getArray();