Logger.get().addOrdinaryMessage("[Map letrehozasa]");
m= new Map();
Game.getInstance().setMap(m); // be�ll�tjuk, hogy a Game-t�l k�rhess�k k�s�bb le ezt a map-et
Logger.get().addOrdinaryMessage("[Bemeno utak letrehozasa a rejtekhelyhez]");
Route inRoute = new Route();
Logger.get().addOrdinaryMessage("[A bankrablok autoja erjen a kilepesi ponthoz?(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...]");
quitPoint.addInRoutes(inRoute);
Logger.get().addOrdinaryMessage("[Kimeno utak hozzaadasa...]");
quitPoint.addOutRoutes(new Route());
Logger.get().addOrdinaryMessage("[Entry Point letrehozasa es hozzaadasa a maphez]");
EntryPoint e = new EntryPoint();
m.addEntryPoint(e);
Logger.get().addOrdinaryMessage("[Kimeno utak hozzaadasa az Entry Pointhoz]");
e.addOutRoutes(new Route());
Logger.get().addOrdinaryMessage("[[[Kiindulohelyzet kialakitasa VEGE]]]");
Logger.get().addOrdinaryMessage("[QuitPoint.updateVehicleAtCross meghivasa...]");
quitPoint.updateVehiclesAtCross();