Package com.aqpproject.worldmodel.game.entity

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


        return Singleton.getPhysics().getLinearVelocity(entityName);
    }

    @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


        return false;
    }

    @Override
    public void resetEntity(String entityName, Vector2D position, float rotation) {
        WorldEntity we = m_state.getWorldEntities().get(entityName);
        if (we instanceof WECar) {
            Singleton.getPhysics().resetBody(entityName, position, new Vector2D(), rotation);

        }
    }
View Full Code Here

    public void action(RaceGameState state, WECar car) {
        //car.applyPowerDown();
        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

Related Classes of com.aqpproject.worldmodel.game.entity.WorldEntity

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.