Package eas.users.students.danielFunke.pacman

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


  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

Related Classes of eas.users.students.danielFunke.pacman.Dirt

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.