Examples of WECar


Examples of com.aqpproject.worldmodel.game.entity.WECar

    @Override
    public boolean getEntityHasItem(String entityName) {
        WorldEntity we = m_state.getWorldEntities().get(entityName);
        if (we instanceof WECar) {
            WECar car = (WECar) we;
            return car.getInventory().hasItem();
        }
        return false;
    }
View Full Code Here

Examples of com.aqpproject.worldmodel.game.entity.WECar

                        num_item = Integer.parseInt(it.getName().substring(4));

                    }
                    theOutput += ";" + name + ";" + posX + ";" + posY + ";" + rot + ";" + velX + ";" + velY + ";" + isPoweredDown + ";" + isBoosted + ";" + isColliding + ";" + point.x + ";" + point.y + ";" + isStatic + ";" + type + ";" + num_item;
                }
                WECar troll_emitter = ((RaceGameState) Singleton.getWorldModel().getState()).getTrollEmitter();
                String troll_emitter_name = "null";
                if (troll_emitter != null) {
                    troll_emitter_name = troll_emitter.getName();
                }

                boolean isTrolling = ((RaceGameState) Singleton.getWorldModel().getState()).getIsTrolling();

                //Items
View Full Code Here

Examples of com.aqpproject.worldmodel.game.entity.WECar

        if (Singleton.getOptionsController().getRole().equals("SERVER")) {
            HashMap<String, WorldEntity> entities = state.getWorldEntities();
            for (String s : entities.keySet()) {
                WorldEntity e = entities.get(s);
                if (e instanceof WECar && e != car) {
                    WECar c = (WECar) e;
                    c.applyPowerDown();
                }
            }
        }
    }
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.