Package networking.request

Source Code of networking.request.RequestPlaceSpecies

package networking.request;

import java.io.IOException;

import networking.response.ResponsePlaceSpecies;
import utility.DataReader;

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

    // Data
    private short animalID;
    private short zoneID;
    private short xCoor;
    private short yCoor;
    // Responses
    private ResponsePlaceSpecies responsePlaceAnimal;

    public RequestPlaceSpecies() {
        responses.add(responsePlaceAnimal = new ResponsePlaceSpecies());
    }

    @Override
    public void parse() throws IOException {
        animalID = DataReader.readShort(dataInput);
        zoneID = DataReader.readShort(dataInput);
        xCoor = DataReader.readShort(dataInput);
        yCoor = DataReader.readShort(dataInput);
    }

    @Override
    public void doBusiness() throws Exception {
        //TO DO
    }
}
TOP

Related Classes of networking.request.RequestPlaceSpecies

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.