Examples of WorldEntity


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

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

        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

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

    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

Examples of com.speedme.entity.WorldEntity

  //COnfigura o mundo
  private void initWorld() {

    worldObjects = new ArrayList<WorldEntity>();
    worldObjects.add(new WorldEntity(100,0,80,200, GameDef.TEXTURE_WOOD));
    worldObjects.add(new WorldEntity(300,0,80,200, GameDef.TEXTURE_WOOD));
   
  }
View Full Code Here

Examples of com.speedme.entity.WorldEntity

  //COnfigura o mundo
  private void initWorld() {

    worldObjects = new ArrayList<WorldEntity>();
    worldObjects.add(new WorldEntity(100,0,80,200, GameDef.TEXTURE_WOOD));
    worldObjects.add(new WorldEntity(300,0,80,200, GameDef.TEXTURE_WOOD));
   
  }
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.