Examples of Dirt


Examples of Engine.Blocks.Dirt

       * -10+(5*Math.sin(x/seed)))) {
       *
       * }
       */
      for (int y = TerrainHeight - 2; y > GetTerrainHeight(x + (cx * 16)); y--) {
        blocks[y][x] = new Dirt();
      }
      for (int y = TerrainHeight - 2; y > GetTerrainHeight(x + (cx * 16))
          + 4 + random.nextInt(2); y--) {
        if (y >= 0)
          blocks[y][x] = new Stone();
View Full Code Here

Examples of eas.users.students.danielFunke.pacman.Dirt

  public void actuate(CleaningEnvironment env, AbstractAgent2D<?> agent,
      String... args) {
   
    Vector2D position = env.getAgentPosition(agent.id());
   
    Dirt dirt = env.getDirt(position.x, position.y);
   
    double toClean = dirt.getSchmutzWert() / 1.2;
    dirt.setSchmutzWert((int) Math.round(toClean));
   
  }
View Full Code Here

Examples of eas.users.students.danielFunke.pacman.Dirt

  public void actuate(CleaningEnvironment env, AbstractAgent2D<?> agent,
      String... args) {
   
    Vector2D position = env.getAgentPosition(agent.id());
   
    Dirt dirt = env.getDirt(position.x, position.y);
   
    double toClean = dirt.getSchmutzWert() * 2;
    dirt.setSchmutzWert((int) Math.round(toClean));
   
  }
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.