Package networking.response

Examples of networking.response.ResponseBirthPlant


                        for (Environment e : world.getEnvironments()) {
                            for (Zone zone : e.getZones()) {
                                if (zone.isEnable()) {
                                    for (Organism organism : zone.getOrganisms()) {
                                        if (organism.getOrganismType() == Constants.ORGANISM_TYPE_PLANT) {
                                            ResponseBirthPlant responseBirthPlant = new ResponseBirthPlant();
                                            responseBirthPlant.setPlant((Plant) organism);
                                            responses.add(responseBirthPlant);
                                        } else if (organism.getOrganismType() == Constants.ORGANISM_TYPE_ANIMAL) {
                                            ResponseBirthAnimal responseBirthAnimal = new ResponseBirthAnimal();
                                            responseBirthAnimal.setAnimal((Animal) organism);
                                            responses.add(responseBirthAnimal);
View Full Code Here


                organism.setZoneID(zone_id);
                zone.addOrganism(organism, amount, gameScaleTime);

                if (organism.getOrganismType() == Constants.ORGANISM_TYPE_PLANT) {
                    ResponseBirthPlant responseBirthPlant = new ResponseBirthPlant();
                    responseBirthPlant.setPlant((Plant) organism);
                    responseBirthPlant.setStatus(status);
                    responseBirthPlant.setCount(amount);

                    GameServer.getInstance().addResponseForWorld(world.getID(), responseBirthPlant);
                } else if (organism.getOrganismType() == Constants.ORGANISM_TYPE_ANIMAL) {
                    ResponseBirthAnimal responseBirthAnimal = new ResponseBirthAnimal();
                    responseBirthAnimal.setAnimal((Animal) organism);
View Full Code Here

TOP

Related Classes of networking.response.ResponseBirthPlant

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.