|
@@ -99,6 +99,7 @@ public class Application implements SystemListener {
|
|
* Create a new instance of <code>Application</code>.
|
|
* Create a new instance of <code>Application</code>.
|
|
*/
|
|
*/
|
|
public Application(){
|
|
public Application(){
|
|
|
|
+ initStateManager();
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -206,6 +207,10 @@ public class Application implements SystemListener {
|
|
if (renderManager != null) {
|
|
if (renderManager != null) {
|
|
renderManager.setTimer(timer);
|
|
renderManager.setTimer(timer);
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Timer getTimer(){
|
|
|
|
+ return timer;
|
|
}
|
|
}
|
|
|
|
|
|
private void initDisplay(){
|
|
private void initDisplay(){
|
|
@@ -497,7 +502,6 @@ public class Application implements SystemListener {
|
|
initInput();
|
|
initInput();
|
|
}
|
|
}
|
|
initAudio();
|
|
initAudio();
|
|
- initStateManager();
|
|
|
|
|
|
|
|
// update timer so that the next delta is not too large
|
|
// update timer so that the next delta is not too large
|
|
// timer.update();
|
|
// timer.update();
|