Package net.sf.jiga.xtended.impl.game

Examples of net.sf.jiga.xtended.impl.game.RenderingScene


                                gs);
                    }
                }
            }
        };
        RenderingScene rsc = getRenderingScene();
        if (rsc instanceof RenderingScene) {
            rsc.doTask(r);
        } else {
            r.run();
        }
        System.out.println("GAME READY TO START");
        /*the game now is in paused mode. When resumeGame() is called, the game will begin, and eventually
View Full Code Here


        }*/
        state = Game.STATE_PAUSED;
        final Game gs = requestGameState();
        updateGameState(gs);
        /*inform the listeners that the game is paused*/
        RenderingScene rsc = getRenderingScene();
        rsc.doTask(new Runnable() {

            public void run() {
                synchronized (listeners) {
                    for (Iterator i = listeners.iterator(); i.hasNext();) {
                        ((AlgorithmListener) i.next()).gamePaused(gs);
View Full Code Here

            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());
View Full Code Here

                        ((AlgorithmListener) i.next()).gameCanceled(gs);
                    }
                }
            }
        };
        RenderingScene rsc = getRenderingScene();
        if (rsc instanceof RenderingScene) {
            rsc.doTask(r);
        } else {
            r.run();
        }

    }
View Full Code Here

TOP

Related Classes of net.sf.jiga.xtended.impl.game.RenderingScene

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.