Examples of addInt32()


Examples of utility.GamePacket.addInt32()

    @Override
    public byte[] constructResponseInBytes() {
        GamePacket packet = new GamePacket(responseCode);
        packet.addInt32(plant_id);
        packet.addInt32(predator_id);
        packet.addShort16(count);
        return packet.getBytes();
    }

    public void setPlantID(int plant_id) {
View Full Code Here

Examples of utility.GamePacket.addInt32()

        if (status == 0) {
            packet.addShort16((short) world.getEnvironments().size());

            for (Environment env : world.getEnvironments()) {
                packet.addInt32(env.getID());
                packet.addShort16((short) env.getRow());
                packet.addShort16((short) env.getColumn());
                packet.addInt32(env.getOwnerID());
                packet.addInt32(env.getEnvironmentScore());
View Full Code Here

Examples of utility.GamePacket.addInt32()

            for (Environment env : world.getEnvironments()) {
                packet.addInt32(env.getID());
                packet.addShort16((short) env.getRow());
                packet.addShort16((short) env.getColumn());
                packet.addInt32(env.getOwnerID());
                packet.addInt32(env.getEnvironmentScore());

                for (Zone zone : env.getZones()) {
                    packet.addBoolean(zone.isEnable());
                    packet.addShort16((short) zone.getID());
View Full Code Here

Examples of utility.GamePacket.addInt32()

            for (Environment env : world.getEnvironments()) {
                packet.addInt32(env.getID());
                packet.addShort16((short) env.getRow());
                packet.addShort16((short) env.getColumn());
                packet.addInt32(env.getOwnerID());
                packet.addInt32(env.getEnvironmentScore());

                for (Zone zone : env.getZones()) {
                    packet.addBoolean(zone.isEnable());
                    packet.addShort16((short) zone.getID());
                    packet.addShort16((short) zone.getType());
View Full Code Here

Examples of utility.GamePacket.addInt32()

                    WaterSource waterSource = zone.getWaterSource();
                    packet.addBoolean(waterSource != null);

                    if (waterSource != null) {
                        packet.addInt32(waterSource.getID());
                        packet.addInt32(waterSource.getMaxWater());
                        packet.addInt32(waterSource.getWater());
                    }
                }
            }
View Full Code Here

Examples of utility.GamePacket.addInt32()

                    WaterSource waterSource = zone.getWaterSource();
                    packet.addBoolean(waterSource != null);

                    if (waterSource != null) {
                        packet.addInt32(waterSource.getID());
                        packet.addInt32(waterSource.getMaxWater());
                        packet.addInt32(waterSource.getWater());
                    }
                }
            }
        }
View Full Code Here

Examples of utility.GamePacket.addInt32()

                    packet.addBoolean(waterSource != null);

                    if (waterSource != null) {
                        packet.addInt32(waterSource.getID());
                        packet.addInt32(waterSource.getMaxWater());
                        packet.addInt32(waterSource.getWater());
                    }
                }
            }
        }
View Full Code Here

Examples of utility.GamePacket.addInt32()

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

        if (status == 0) {
            packet.addInt32(avatar.getID());
            packet.addShort16((short) avatar.getLevel());
            packet.addInt32(ExpTable.getExp(avatar.getLevel() - 1));
            packet.addInt32(ExpTable.getExpToAdvance(avatar.getLevel()));
            packet.addInt32(avatar.getExperience());
            packet.addInt32(avatar.getCurrency());
View Full Code Here

Examples of utility.GamePacket.addInt32()

        packet.addShort16(status);

        if (status == 0) {
            packet.addInt32(avatar.getID());
            packet.addShort16((short) avatar.getLevel());
            packet.addInt32(ExpTable.getExp(avatar.getLevel() - 1));
            packet.addInt32(ExpTable.getExpToAdvance(avatar.getLevel()));
            packet.addInt32(avatar.getExperience());
            packet.addInt32(avatar.getCurrency());
        }
View Full Code Here

Examples of utility.GamePacket.addInt32()

        if (status == 0) {
            packet.addInt32(avatar.getID());
            packet.addShort16((short) avatar.getLevel());
            packet.addInt32(ExpTable.getExp(avatar.getLevel() - 1));
            packet.addInt32(ExpTable.getExpToAdvance(avatar.getLevel()));
            packet.addInt32(avatar.getExperience());
            packet.addInt32(avatar.getCurrency());
        }

        return packet.getBytes();
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.