Package com.jcloisterzone.game

Examples of com.jcloisterzone.game.GameSettings


    }


    public void createGame(Snapshot snapshot) {
        if (snapshot == null) {
            game = new GameSettings(getRandomId());
            game.getExpansions().add(Expansion.BASIC);
            for (CustomRule cr : CustomRule.defaultEnabled()) {
                game.getCustomRules().add(cr);
            }
            for (int i = 0; i < slots.length; i++) {
                slots[i] = new ServerPlayerSlot(i);
            }
        } else {
            this.snapshot =  snapshot;
            game = new GameSettings(getRandomId());
            game.getExpansions().addAll(snapshot.getExpansions());
            game.getCustomRules().addAll(snapshot.getCustomRules());
            loadSlotsFromSnapshot();
        }
    }
View Full Code Here

TOP

Related Classes of com.jcloisterzone.game.GameSettings

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.