Package networking.response

Examples of networking.response.ResponseKillPlant


                value[1] -= amount;
                ZoneSpeciesDAO.updateSpecies(zone_id, species_id, value[0], value[1]);

                if (organism.getOrganismType() == Constants.ORGANISM_TYPE_PLANT) {
                    ResponseKillPlant responseKillPlant = new ResponseKillPlant();
                    responseKillPlant.setPlantID(organism.getID());
                    responseKillPlant.setCount(amount);
                    responseKillPlant.setPredatorID(predator != null ? predator.getID() : 0);

                    GameServer.getInstance().addResponseForWorld(world.getID(), responseKillPlant);
                } else if (organism.getOrganismType() == Constants.ORGANISM_TYPE_ANIMAL) {
                    ResponseKillAnimal responseKillAnimal = new ResponseKillAnimal();
                    responseKillAnimal.setAnimalID(organism.getID());
View Full Code Here

TOP

Related Classes of networking.response.ResponseKillPlant

Copyright © 2018 www.massapicom. 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.