Added an accessor for Timer.
Moved the creation of the state manager into the constructor. Logically it should exist as early as possible. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9157 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
07d5451a31
commit
05a88493a8
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -208,6 +209,10 @@ public class Application implements SystemListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Timer getTimer(){
|
||||||
|
return timer;
|
||||||
|
}
|
||||||
|
|
||||||
private void initDisplay(){
|
private void initDisplay(){
|
||||||
// aquire important objects
|
// aquire important objects
|
||||||
// from the context
|
// from the context
|
||||||
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user