Package org.iremake.common.network.messages.game.setup

Examples of org.iremake.common.network.messages.game.setup.ClientScenarioInfo


            case SETUP_GET_SCENARIO_INFO:
                // wants info on a specific scenario, send it
                Integer ID = (Integer) message.getAttachment();
                if (scanner.hasID(ID)) {
                    // generate the requested scenario information and send the message back
                    ClientScenarioInfo scenarioInfo = new ClientScenarioInfo(scanner.getScenario(ID));
                    client.send(Message.SETUP_SCENARIO_INFO.createNew(scenarioInfo));
                } else {
                    // we don't know the requested ID
                    client.send(Message.GEN_ERROR.createNew("Received unknown id in a SetupSelectionMessage"));
                }
View Full Code Here

TOP

Related Classes of org.iremake.common.network.messages.game.setup.ClientScenarioInfo

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.