Package networking.request

Source Code of networking.request.RequestUpdateWorldLobbyPvP

package networking.request;

import java.io.IOException;

import model.World;
import networking.response.ResponseUpdateWorldLobbyPvP;
import utility.DataReader;

/**
*
* @author Xuyuan
*/
public class RequestUpdateWorldLobbyPvP extends GameRequest {

    // Data
    private String worldName;
    // Responses
    private ResponseUpdateWorldLobbyPvP responseUpdateWorldLobbyPvP;

    public RequestUpdateWorldLobbyPvP() {
        responses.add(responseUpdateWorldLobbyPvP = new ResponseUpdateWorldLobbyPvP());
    }

    @Override
    public void parse() throws IOException {
        worldName = DataReader.readString(dataInput);
    }

    @Override
    public void doBusiness() throws Exception {
        World pvpWorld = client.getServer().getActivePvPWorld(worldName);

        if (pvpWorld != null) {
        }
    }
}
TOP

Related Classes of networking.request.RequestUpdateWorldLobbyPvP

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.