Examples of buyOrganism()


Examples of worldManager.gameEngine.GameEngine.buyOrganism()

                Zone zone = gameEngine.getZone(zoneID);

                if (zone != null && zone.isEnable()) {
                    if (client.getPlayer().getID() == client.getWorld().getEnvByID(zone.getEnvID()).getOwnerID()) {
                        int tempMoney = client.getAvatar().getCurrency();
                        short status = gameEngine.buyOrganism(Constants.ORGANISM_TYPE_PLANT, client.getPlayer().getID(), plantTypeID, amount, zoneID, xCoor, yCoor);

                        responseBuyPlant.setStatus(status);
                        responseBuyPlant.setPlantTypeID(plantTypeID);
                        responseBuyPlant.setSpentAmount(tempMoney - client.getAvatar().getCurrency());
                    }
View Full Code Here

Examples of worldManager.gameEngine.GameEngine.buyOrganism()

                Zone zone = gameEngine.getZone(zoneID);

                if (zone != null && zone.isEnable()) {
                    if (client.getPlayer().getID() == client.getWorld().getEnvByID(zone.getEnvID()).getOwnerID()) {
                        int tempMoney = client.getAvatar().getCurrency();
                        short status = gameEngine.buyOrganism(Constants.ORGANISM_TYPE_ANIMAL, client.getPlayer().getID(), animalTypeID, amount, zoneID, xCoor, yCoor);
                        responseBuyAnimal.setStatus(status);
                        responseBuyAnimal.setAnimalTypeID(animalTypeID);
                        responseBuyAnimal.setSpentAmount(tempMoney - client.getAvatar().getCurrency());
                    }
                }
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.