Package networking.response

Examples of networking.response.ResponseSeeOnlinePlayers


    // Responses
    private ResponseSeeOnlinePlayers responseSeeOnlinePlayers;

    public RequestSeeOnlinePlayers() {
        responses.add(responseSeeOnlinePlayers = new ResponseSeeOnlinePlayers());
    }
View Full Code Here


            responseChat.setMessage("[" + player.getUsername() + "] has logged off.");
            responseChat.setType((short) 1);

            GameServer.getInstance().addResponseForAllOnlinePlayers(this.getId(), responseChat);

            ResponseSeeOnlinePlayers responsePlayers = new ResponseSeeOnlinePlayers();
            responsePlayers.setOnlinePlayers(GameServer.getInstance().getActivePlayers());

            GameServer.getInstance().addResponseForAllOnlinePlayers(this.getId(), responsePlayers);
        }

        //Delete this client out of the activeThreads
View Full Code Here

        responseChat.setMessage("[" + client.getPlayer().getUsername() + "] has logged on.");
        responseChat.setType((short) 1);

        GameServer.getInstance().addResponseForAllOnlinePlayers(client.getId(), responseChat);

        ResponseSeeOnlinePlayers responsePlayers = new ResponseSeeOnlinePlayers();
        responsePlayers.setOnlinePlayers(GameServer.getInstance().getActivePlayers());

        GameServer.getInstance().addResponseForAllOnlinePlayers(client.getId(), responsePlayers);

        //Track the player' position (4 means PvE World lobby or PvE world.)
        client.getServer().trackPlayerPosition(client.getPlayer().getID(), Constants.LOCATION_PVE_W_LOBBY);
View Full Code Here

TOP

Related Classes of networking.response.ResponseSeeOnlinePlayers

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.