Package net.javlov.world

Examples of net.javlov.world.AgentBody


  }
 
  @Override
  public void reset() {
    super.reset();
    AgentBody b = agentBodyMap.values().iterator().next(); //this is ridiculous
    removeFromCells(b);
    grid.getCellAtGridPosition(0, grid.getHeight()-1).addBody(b);
    b.setLocation(0 + 0.5*grid.getCellWidth(), (grid.getHeight()-1 + 0.5)*grid.getCellHeight());
  }
 
View Full Code Here


  }
 
  @Override
  public void init() {
    super.init();
    AgentBody b = agentBodyMap.values().iterator().next(); //this is ridiculous
    removeFromCells(b);
    grid.getCellAtGridPosition(0, grid.getHeight()-1).addBody(b);
    b.setLocation(0 + 0.5*grid.getCellWidth(), (grid.getHeight()-1 + 0.5)*grid.getCellHeight());
  }
 
View Full Code Here

   
    List<? extends Option> optionPool = makeOptions();
    world.setOptionPool(optionPool);
   
    agent = makeAgent(optionPool);
    AgentBody aBody = makeAgentBody();
   
    sim = new Simulator();
    sim.setEnvironment(world);
   
    world.add(agent, aBody);
View Full Code Here

TOP

Related Classes of net.javlov.world.AgentBody

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.