initPlayers(gui);
}
if ((state & Game._bits._getMask(Game._STATE) & Game.STATE_PAUSED) == 0) {
state = Game.STATE_LOADING;
updateGameState(requestGameState());
RenderingScene rsc = getRenderingScene();
rsc.doTask(new Runnable() {
public void run() {
synchronized (listeners) {
for (Iterator i = listeners.iterator(); i.hasNext();) {
((AlgorithmListener) i.next()).gameLoading(requestGameState());
}
}
}
});
synchronized (this) {
try {
while ((gui.cacheloading.getLoadState() & RenderingScene._GLLOADSTATE_Loaded) == 0) {
wait(1000);
}
} catch (InterruptedException ex) {
ex.printStackTrace();
}
}
}
state = Game.STATE_RUNNING;
/*if(!rsc.isLWJGLAccel())
rsc.setLWJGLAccel(true);*/
updateGameState(requestGameState());
/*inform the listeners that the game is resumed*/
RenderingScene rsc = getRenderingScene();
rsc.doTask(new Runnable() {
public void run() {
synchronized (listeners) {
for (Iterator i = listeners.iterator(); i.hasNext();) {
((AlgorithmListener) i.next()).gameResumed(requestGameState());