Examples of turn()


Examples of vehicles.RobberyCar.turn()

public class SetRobberyTurnBack extends AbstractCommand{

  @Override
  public String executeCommand(List<String> params) {
    RobberyCar rcar = ObjectStore.getInstance().getRobberyCar();
    rcar.turn();
    String key = ObjectStore.getInstance().getRouteKey(rcar.getRoute());
    return "Sikeresen megfordult a rablo az uton(id: "+key+")!\r\n";
  }

}
View Full Code Here

Examples of vehicles.RobberyCar.turn()

      destRoute.addVehicle(rcar, routePos);
      rcar.setSpeed(speed);
     
      //turn it if necessary
      if(rcar.getTurned() != direction){
        rcar.turn();
      } else {
        //csak, hogy biztosan jo sebesseg meg ilyenek legyenek beallitva..
        //tudom elegge ocsmany megoldas..
        rcar.turn();
        rcar.turn();
View Full Code Here

Examples of vehicles.RobberyCar.turn()

      if(rcar.getTurned() != direction){
        rcar.turn();
      } else {
        //csak, hogy biztosan jo sebesseg meg ilyenek legyenek beallitva..
        //tudom elegge ocsmany megoldas..
        rcar.turn();
        rcar.turn();
      }
     
      return "Sikeresen beallitott rablo adatok!\r\n";
    } catch (NumberFormatException e){
View Full Code Here

Examples of vehicles.RobberyCar.turn()

        rcar.turn();
      } else {
        //csak, hogy biztosan jo sebesseg meg ilyenek legyenek beallitva..
        //tudom elegge ocsmany megoldas..
        rcar.turn();
        rcar.turn();
      }
     
      return "Sikeresen beallitott rablo adatok!\r\n";
    } catch (NumberFormatException e){
      return "SetPoliceCarDetails - nem megfeleloen megadott 3.,4. vagy 5. parameter - nem szam!\r\n";
View Full Code Here

Examples of vehicles.RobberyCar.turn()

      //probaljon meg olyan sebesseggel haladni "amilyennel szerene"
      v.setCurrentSpeed(v.getSpeed());
     
      RobberyCar rcar = (RobberyCar)v;
      if(rcar.getTurned()){
        rcar.turn();
      } else {
        //hax... igy tuti jok lesznek a sebesseg elojelek, meg ilyesmik
        rcar.turn();
        rcar.turn();
      }
View Full Code Here

Examples of vehicles.RobberyCar.turn()

      RobberyCar rcar = (RobberyCar)v;
      if(rcar.getTurned()){
        rcar.turn();
      } else {
        //hax... igy tuti jok lesznek a sebesseg elojelek, meg ilyesmik
        rcar.turn();
        rcar.turn();
      }
    } else {
      vehicles.add(v);
      //ezen az uton halad
View Full Code Here

Examples of vehicles.RobberyCar.turn()

      if(rcar.getTurned()){
        rcar.turn();
      } else {
        //hax... igy tuti jok lesznek a sebesseg elojelek, meg ilyesmik
        rcar.turn();
        rcar.turn();
      }
    } else {
      vehicles.add(v);
      //ezen az uton halad
      v.setRoute(this);
View Full Code Here

Examples of wolf.util.Turtle.turn()

            t0 = new Turtle(is.pos, Math.toDegrees(Angle.angle(is.pos, r.a.pos)));
          }
          Turtle t1 = new Turtle(t0.pos, t0.angle);
          //move out to sides of roads
          t0.turn(90);
          t1.turn(-90);
          t0.move(radius);
          t1.move(radius);
          Coordinate t0Start = new Coordinate(t0.pos);
          Coordinate t1Start = new Coordinate(t1.pos);
          //return to first orientation
View Full Code Here

Examples of wolf.util.Turtle.turn()

          t1.move(radius);
          Coordinate t0Start = new Coordinate(t0.pos);
          Coordinate t1Start = new Coordinate(t1.pos);
          //return to first orientation
          t0.turn(-90);
          t1.turn(90);
          t0.move(r.width*6);
          t1.move(r.width*6);
         
          LineSegment ls0 = new LineSegment(t0Start, t0.pos);
          LineSegment ls1 = new LineSegment(t1Start, t1.pos);
View Full Code Here

Examples of wolf.util.Turtle.turn()

            t0 = new Turtle(is.pos, Math.toDegrees(Angle.angle(is.pos, r.a.pos)));
          }
         
          //move out from intersection and split into road width
          t0.move(extrusion[j]);
          t0.turn(90);
          Turtle t1 = new Turtle(t0.pos, t0.angle-180);
          t0.move(radius);
          t1.move(radius);
         
          segments[j] = new LineSegment(t0.pos, t1.pos);
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.