Package vehicles

Examples of vehicles.OrdinaryCar


   
    police_cars = new ArrayList<PoliceCar>();
    police_cars.add(new PoliceCar());
   
    ordinary_cars = new ArrayList<OrdinaryCar>();
    ordinary_cars.add(new OrdinaryCar());
   
    robberyCar = new RobberyCar()
   
    //ADD VEHICLES TO ROUTES
    Logger.get().addOrdinaryMessage("[Map] Add a police car to a route!");
View Full Code Here


        poldg.setPoliceCar(pc1);
   
        // ordinarycar rajzolo
        DrawOrdinaryCar ordcd = new DrawOrdinaryCar();
   
        OrdinaryCar ordc1 = new OrdinaryCar(40);
        ordinary_cars.add(ordc1);
   
        // ordinaryCar grafikus hasznalata
        GraphicsOrdinaryCar ordcg1 = new GraphicsOrdinaryCar();
        gr.addGraphicsObject(ordcg1, ordc1);
        ordcg1.setDraw(ordcd);
        ordcg1.setOrdinaryCar(ordc1);
   
        OrdinaryCar ordc2 = new OrdinaryCar(40);
        ordinary_cars.add(ordc2);
   
        // ordinaryCar grafikus hasznalata
        GraphicsOrdinaryCar ordcg2 = new GraphicsOrdinaryCar();
        gr.addGraphicsObject(ordcg2, ordc2);
View Full Code Here

    robberyCar = new RobberyCar(bank, 100);
   
    PoliceCar pc1 = new PoliceCar(70);
    police_cars.add(pc1);
   
    OrdinaryCar ordc1 = new OrdinaryCar(40);
    ordinary_cars.add(ordc1);
   
    OrdinaryCar ordc2 = new OrdinaryCar(40);
    ordinary_cars.add(ordc2);
   
    //autokat rapakoljuk az utakra
    bank.addVehicleToCross(robberyCar);
   
View Full Code Here

        return MessageBox.get().getMessage(Messages.WrongParameter) + ("(Sebesseg: 0-50)\r\n");
      }
     
      //lekerjuk a szukseges objektumokat
      Route destRoute = ObjectStore.getInstance().getRoute(routeId);
      OrdinaryCar ocar = ObjectStore.getInstance().getOrdinaryCar(ordinaryId);
      if(destRoute == null || ocar == null){
        return MessageBox.get().getMessage(Messages.NotFound);
      }
     
      //beallitjuk az uj poziciora a rendorautot
      Route proute = ocar.getRoute();
      proute.removeCarFromRoute(ocar);
      destRoute.addVehicle(ocar, routePos);
      ocar.setSpeed(speed);
     
      return "Sikeresen beallitott altalanos auto adatok!\r\n";
    } catch (NumberFormatException e){
      return "SetPoliceCarDetails - nem megfeleloen megadott 3. vagy 4. parameter - nem szam!\r\n";
    }
View Full Code Here

    robberyCar = new RobberyCar(bank, 100);
   
    PoliceCar pc1 = new PoliceCar(70);
    police_cars.add(pc1);
   
    OrdinaryCar ordc1 = new OrdinaryCar(40);
    ordinary_cars.add(ordc1);
   
    OrdinaryCar ordc2 = new OrdinaryCar(40);
    ordinary_cars.add(ordc2);
   
    //autokat rapakoljuk az utakra
    bank.addVehicleToCross(robberyCar);
   
View Full Code Here

    robberyCar = new RobberyCar(bank, 100);
   
    PoliceCar pc1 = new PoliceCar(70);
    police_cars.add(pc1);
   
    OrdinaryCar ordc1 = new OrdinaryCar(40);
    ordinary_cars.add(ordc1);
   
    OrdinaryCar ordc2 = new OrdinaryCar(40);
    ordinary_cars.add(ordc2);
   
    //autokat rapakoljuk az utakra
    bank.addVehicleToCross(robberyCar);
   
View Full Code Here

    }
    String carId = params.get(0);
   
    StringBuilder resultString = new StringBuilder();
   
    OrdinaryCar ocar = ObjectStore.getInstance().getOrdinaryCar(carId);
   
    //terjunk vissza errorral, hogyha nem talaljuk az autot
    if(ocar == null){
      return MessageBox.get().getMessage(Messages.NotFound);
    }
   
    //osszepakoljuk az eredmenyt
    String routeId = ObjectStore.getInstance().getRouteKey(ocar.getRoute());
    String crossId = ObjectStore.getInstance().getCrossKey(ocar.getCross());
    resultString.append("____OrdinaryCar: " + carId + "____\r\n");
    resultString.append("Aktualis sebesseg: " + ocar.getCurrentSpeed() + "\r\n");
    resultString.append("Eredeti sebesseg: " + ocar.getSpeed() + "\r\n");
    resultString.append("Pozicioja az uton: " + ocar.getPosition() + "\r\n");
    resultString.append("Az ut id-je amin van: " + routeId + "\r\n");
    resultString.append("Az keresztezodes id-je ami fele hala: " + crossId + "\r\n");
   
    return resultString.toString();
  }
View Full Code Here

    Logger.get().addOrdinaryMessage("[[[ELOFELTETELEK LETREHOZASA]]]");
    GameTimer.setNotifyEnabled(false);
    cross = new StopCross();
    game = new Game();
   
    cross.addVehicleToCross(new OrdinaryCar());
    Logger.get().addOrdinaryMessage("[[[ELOFELTETELEK LETREHOZASA VEGE]]]");
   
    cross.collisionDetect();
    Logger.get().finishLogging();
    returnToMainMenu();
View Full Code Here

    clearScreen();
    Logger.get().addOrdinaryMessage("___________KET AUTO AZ UTON, UTKOZESELKERULES___________");
    GameTimer.setNotifyEnabled(false);//turn off time.
    Logger.get().addOrdinaryMessage("[[[Kiindulohelyzet kialakitasa]]]");
    route = new Route();
    vehicle1 = new OrdinaryCar();
    vehicle2 = new OrdinaryCar();
    route.addVehicle(vehicle1);
    route.addVehicle(vehicle2);
    Logger.get().addOrdinaryMessage("[[[Kiindulohelyzet kialakitasa vege]]]");
    Logger.get().addOrdinaryMessage("[A Route.moveCars() metodus meghivasa...]:");
    route.moveCars();
View Full Code Here

      inRoute.addVehicle(vehicle);
     
    }
    else
    {
      vehicle = new OrdinaryCar();
      inRoute.addVehicle(vehicle)
    }
     
    Logger.get().addOrdinaryMessage("[Bemeno utak hozzaadasa...]");
    hidingPlace.addInRoutes(inRoute);
View Full Code Here

TOP

Related Classes of vehicles.OrdinaryCar

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.