Logger.get().addOrdinaryMessage("___________JARMU EL�RI A REJTEKHELYET___________");
GameTimer.setNotifyEnabled(false);//turn off time.
Logger.get().addOrdinaryMessage("[[[Kiindulohelyzet kialakitasa]]]");
Logger.get().addOrdinaryMessage("[Bemeno utak letrehozasa a rejtekhelyhez]");
Route inRoute = new Route();
Logger.get().addOrdinaryMessage("[A bankrablok autoja erjen a rejtekhelyre?(i/n)]");
boolean isRobberyCar = false;
boolean goForward = false;
String input = in.readLine();
while(!goForward){
if(input.equals("i")){
isRobberyCar = true;
goForward = true;
} else if(input.equals("n")){
isRobberyCar = false;
goForward = true;
} else {
System.out.println("Ez nem opcio...");
}
}
Vehicle vehicle;
if (isRobberyCar)
{
vehicle = new RobberyCar();
inRoute.addVehicle(vehicle);
}
else
{
vehicle = new OrdinaryCar();
inRoute.addVehicle(vehicle);
}
Logger.get().addOrdinaryMessage("[Bemeno utak hozzaadasa...]");
hidingPlace.addInRoutes(inRoute);
Logger.get().addOrdinaryMessage("[Kimeno utak hozzaadasa...]");
hidingPlace.addOutRoutes(new Route());
Logger.get().addOrdinaryMessage("[Bemeno utak hozzaadasa...]");
Logger.get().addOrdinaryMessage("[Bemeno utak hozzaadasa...]");
hidingPlace.addInRoutes(inRoute);
Logger.get().addOrdinaryMessage("[Kimeno utak hozzaadasa...]");
hidingPlace.addOutRoutes(new Route());
Logger.get().addOrdinaryMessage("[[[Kiindulohelyzet kialakitasa VEGE]]]");
Logger.get().addOrdinaryMessage("[HidingPlace.updateVehicleAtCross meghivasa...]");
hidingPlace.updateVehiclesAtCross();