Examples of GameSetupMessage


Examples of com.jcloisterzone.wsio.message.GameSetupMessage

        msg.setSupportedExpansions(slot.getSupportedExpansions());
        return msg;
    }

    private GameMessage newGameMessage() {
        GameSetupMessage gsm = new GameSetupMessage(game.getGameId(), game.getCustomRules(), game.getExpansions(), game.getCapabilityClasses());
        GameMessage gm = new GameMessage(game.getGameId(), "", gameStarted ? GameState.RUNNING : GameState.OPEN, gsm);
        List<SlotMessage> slotMsgs = new ArrayList<>();
        for (ServerPlayerSlot slot : slots) {
            if (slot != null) {
                SlotMessage sm = newSlotMessage(slot);
View Full Code Here

Examples of com.jcloisterzone.wsio.message.GameSetupMessage

            EnumSet<CustomRule> ruleSet = EnumSet.noneOf(CustomRule.class);
            for (String ruleName : rules) {
                ruleSet.add(CustomRule.valueOf(ruleName));
            }
            conn.send(new GameSetupMessage(gameId, ruleSet, expansionSet, null));
        }
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.