浏览代码

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 年之前
父节点
当前提交
4c2579d0bf
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      engine/src/core/com/jme3/app/state/AppStateManager.java

+ 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();