Examples of LobbyServerOverview


Examples of org.iremake.common.network.messages.lobby.LobbyServerOverview

        for (ServerClient client : clients.values()) {
            if (ServerClientState.LOBBY.equals(client.getState())) {
                overviewList.add(client.getLobbyEntry());
            }
        }
        LobbyServerOverview serverOverview = new LobbyServerOverview(overviewList, combineChatHistory());
        recipient.send(Message.LOBBY_OVERVIEW.createNew(serverOverview));
    }
View Full Code Here

Examples of org.iremake.common.network.messages.lobby.LobbyServerOverview

                }
                return true;

            case LOBBY_OVERVIEW:
                // a complete overview has been sent
                LobbyServerOverview serverOverview = (LobbyServerOverview) message.getAttachment();

                // update chatHistory
                try {
                    chatHistory.remove(0, chatHistory.getLength());
                    chatHistory.insertString(0, serverOverview.getChatHistory(), null);
                } catch (BadLocationException ex) {
                    // should not happen
                }

                // update lobby list
                lobbyListModel.set(serverOverview.getClients());

                return true;

            case LOBBY_UPDATE:
                // something changed
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.