Package worldManager.gameEngine

Examples of worldManager.gameEngine.GameEngine


        }

        World world = client.getWorld();

        if (world != null) {
            GameEngine gameEngine = world.getGameEngine();
            if (gameEngine != null) {
                gameEngine.run();
            }
        }
    }
View Full Code Here


        vote = DataReader.readShort(dataInput);
    }

    @Override
    public void doBusiness() throws Exception {
        GameEngine gameEngine = client.getWorld().getGameEngine();

        if (gameEngine != null) {
            gameEngine.run();
            gameEngine.updateGameScaleVote(avatarID, vote);
        }
    }
View Full Code Here

        yTarg = DataReader.readShort(dataInput);
    }

    @Override
    public void doBusiness() throws Exception {
        GameEngine gameEngine = client.getWorld().getGameEngine();

        if (gameEngine != null) {
            gameEngine.run();
            gameEngine.updateAnimalTarget(animalID, zoneID, xTarg, yTarg);
        }
    }
View Full Code Here

    @Override
    public void doBusiness() throws Exception {
      List<Stat> animalStatList = new ArrayList<Stat>();
      List<Stat> plantStatList = new ArrayList<Stat>();
        if (client.getWorld() != null) {
            GameEngine gameEngine = client.getWorld().getGameEngine();

            if (gameEngine != null) {
              playerId = client.getPlayer().getID();

                int zone_id = client.getWorld().getEnvironments().get(0).getZones().get(0).getID();
View Full Code Here

        yCoor = DataReader.readShort(dataInput);
    }

    @Override
    public void doBusiness() throws Exception {
        GameEngine gameEngine = client.getWorld().getGameEngine();

        if (gameEngine != null) {
            gameEngine.run();
            gameEngine.updateAnimalCoors(animalID, zoneID, xCoor, yCoor);
        }
    }
View Full Code Here

    }

    @Override
    public void doBusiness() throws Exception {
        if (client.getWorld() != null) {
            GameEngine gameEngine = client.getWorld().getGameEngine();

            if (gameEngine != null) {
                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

        yTarg = DataReader.readShort(dataInput);
    }

    @Override
    public void doBusiness() throws Exception {
        GameEngine gameEngine = client.getWorld().getGameEngine();

        if (gameEngine != null) {
            gameEngine.run();
            gameEngine.updateAnimalTarget(animalID, zoneID, xTarg, yTarg);
        }
    }
View Full Code Here

    }

    @Override
    public void doBusiness() throws Exception {
        if (client.getWorld() != null) {
            GameEngine gameEngine = client.getWorld().getGameEngine();

            if (gameEngine != null) {
                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

     * Create the game engine of a world and put it in the game engine list.
     *
     * @param worldID           The id of the world of the game engine.
     */
    public GameEngine createGameEngine(World world) {
        GameEngine gameEngine = new GameEngine(world);
        activeGameEngine.put(world.getID(), gameEngine);
        return gameEngine;
    }
View Full Code Here

TOP

Related Classes of worldManager.gameEngine.GameEngine

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.