Package utility

Examples of utility.GamePacket.addFloat()


        packet.addShort16((short) plant.getSpeciesType().getModelID());
        packet.addShort16((short) plant.getSpeciesTypeID());
        packet.addInt32(plant.getPlayerID());
        packet.addInt32(plant.getZoneID());
        packet.addShort16((short) plant.getBiomass());
        packet.addFloat(plant.getX());
        packet.addFloat(plant.getY());
        packet.addFloat(plant.getZ());
        packet.addShort16((short) plant.getGroupSize());
        packet.addShort16((short) count);
View Full Code Here


        packet.addShort16((short) plant.getSpeciesTypeID());
        packet.addInt32(plant.getPlayerID());
        packet.addInt32(plant.getZoneID());
        packet.addShort16((short) plant.getBiomass());
        packet.addFloat(plant.getX());
        packet.addFloat(plant.getY());
        packet.addFloat(plant.getZ());
        packet.addShort16((short) plant.getGroupSize());
        packet.addShort16((short) count);

        return packet.getBytes();
View Full Code Here

        packet.addInt32(plant.getPlayerID());
        packet.addInt32(plant.getZoneID());
        packet.addShort16((short) plant.getBiomass());
        packet.addFloat(plant.getX());
        packet.addFloat(plant.getY());
        packet.addFloat(plant.getZ());
        packet.addShort16((short) plant.getGroupSize());
        packet.addShort16((short) count);

        return packet.getBytes();
    }
View Full Code Here

            //max player number
            packet.addShort16((short) world.getMaxPlayers());

            //Character name
            packet.addString(charName);
            packet.addFloat(world.getTimeRate());
        }

        return packet.getBytes();

    }
View Full Code Here

        packet.addShort16((short) animal.getSpeciesType().getModelID());
        packet.addShort16((short) animal.getSpeciesTypeID());
        packet.addInt32(animal.getPlayerID());
        packet.addInt32(animal.getZoneID());
        packet.addShort16((short) animal.getBiomass());
        packet.addFloat(animal.getX());
        packet.addFloat(animal.getY());
        packet.addFloat(animal.getZ());
        packet.addShort16((short) animal.getGroupSize());
        packet.addShort16((short) count);
View Full Code Here

        packet.addShort16((short) animal.getSpeciesTypeID());
        packet.addInt32(animal.getPlayerID());
        packet.addInt32(animal.getZoneID());
        packet.addShort16((short) animal.getBiomass());
        packet.addFloat(animal.getX());
        packet.addFloat(animal.getY());
        packet.addFloat(animal.getZ());
        packet.addShort16((short) animal.getGroupSize());
        packet.addShort16((short) count);

        return packet.getBytes();
View Full Code Here

        packet.addInt32(animal.getPlayerID());
        packet.addInt32(animal.getZoneID());
        packet.addShort16((short) animal.getBiomass());
        packet.addFloat(animal.getX());
        packet.addFloat(animal.getY());
        packet.addFloat(animal.getZ());
        packet.addShort16((short) animal.getGroupSize());
        packet.addShort16((short) count);

        return packet.getBytes();
    }
View Full Code Here

          packet.addShort16((short) this.parameterType);
            packet.addShort16((short) preyList.size());

            for (String parameter : preyList.keySet()) {
                packet.addString(parameter);
                packet.addFloat(preyList.get(parameter));
            }
        }

        return packet.getBytes();
    }
View Full Code Here

        GamePacket packet = new GamePacket(responseCode);
        packet.addShort16((short) month);
        packet.addShort16((short) year);
        packet.addInt32(duration);
        packet.addInt32(current);
        packet.addFloat(rate);
        return packet.getBytes();
    }

    public void setCurrent(int current) {
        this.current = current;
View Full Code Here

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

            for (short parameter : parameterList.keySet()) {
                packet.addShort16(parameter);
                packet.addFloat(parameterList.get(parameter));
            }
        }

        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.