Package org.timerescue.element.agent

Examples of org.timerescue.element.agent.Agent.move()


      Agent wanderer = (Agent)getParam(Constants.Parameter.WANDERER);
      int speed = Integer.parseInt(
          wanderer.getProperty_holder().getCurrentProperty(
              Agent.Constants.Property.SPEED));
      //points toward a random direction
      wanderer.move(
          new Coordinate(seed.nextInt(), seed.nextInt(), seed.nextInt()),
          speed);
    } catch (InvalidPropertyException e) {
      // TODO log this
    }
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.