Package networking.response

Source Code of networking.response.ResponseGiveSpecies

package networking.response;

import metadata.Constants;
import utility.GamePacket;

/**
*
* @author Gary
*/
public class ResponseGiveSpecies extends GameResponse {

    private short status;

    public ResponseGiveSpecies() {
        responseCode = Constants.SMSG_GIVE_SPECIES;
    }

    @Override
    public byte[] constructResponseInBytes() {
        GamePacket packet = new GamePacket(responseCode);
        packet.addShort16(status);

        return packet.getBytes();
    }

    public void setStatus(short status) {
        this.status = status;
    }
}
TOP

Related Classes of networking.response.ResponseGiveSpecies

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.