Package org.nlogo.api

Examples of org.nlogo.api.Turtle.hidden()


      Turtle turtle = (Turtle) agent;

      boolean riding_agent = (world.observer().perspective() == PerspectiveJ.RIDE())
          && (world.observer().targetAgent() == turtle);

      return !riding_agent && !turtle.hidden()
        && (turtle.alpha() > 0.0 || turtle.hasLabel());
    } else if (agent instanceof Link) {
      Link link = (Link) agent;
      return !link.hidden() && (link.alpha() > 0.0 || link.hasLabel());
    } else if (agent instanceof Patch3D) {
View Full Code Here


  // detects which turtle(s) a pick-ray intersects with
  void pickTurtles(List<Agent> agents, double[][] ray) {
    // detect any turtles in the pick-ray
    for (Agent a : world.turtles().agents()) {
      Turtle turtle = (Turtle) a;
      if (!turtle.hidden()) {
        double size = turtle.size();

        double[] coord = getTurtleCoords(turtle, size);

        // determining distance to pick ray
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.