Package com.jcloisterzone.game.phase

Examples of com.jcloisterzone.game.phase.Phase.enter()


        while (!phase.isEntered()) {
            if (!Iterables.contains(ALLOWED_IN_PHASE_LOOP, phase.getClass())) {
                return true;
            }
            phase.setEntered(true);
            phase.enter();
            phase = game.getPhase();
            game.flushEventQueue();
        }
        game.flushEventQueue();
        return false;
View Full Code Here


    protected void phaseLoop() {
        Phase phase = game.getPhase(); //new phase can differ from the phase in prev msg.call !!!
        while (phase != null && !phase.isEntered()) {
            logger.debug("Entering phase {}",  phase.getClass().getSimpleName());
            phase.setEntered(true);
            phase.enter();
            phase = game.getPhase();
            game.flushEventQueue();
            //game.post(new PhaseEnterEvent(phase));
        }
        game.flushEventQueue();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.