public Level(String string) {
		InputStream is = getClass().getResourceAsStream("level1.txt");
		Scanner sc = null;
		sc = new Scanner(is);
		player = new Player(sc.nextFloat(), sc.nextFloat());
		int i = sc.nextInt();
		while (i > 0) {
			float tX = sc.nextFloat();
			float tY = sc.nextFloat();
			float bX = sc.nextFloat();
			float bY = sc.nextFloat();
			String s = sc.next();
			walls.put(s,
					new Wall((tX + bX) / 2, (tY + bY) / 2, Math.abs(tX - bX),
							Math.abs(tY - bY)));
			i--;
		}
		i = sc.nextInt();
		while (i > 0) {
			float tX = sc.nextFloat();
			float tY = sc.nextFloat();
			float bX = sc.nextFloat();
			float bY = sc.nextFloat();
			double sa = sc.nextDouble();
			String s = sc.next();
			entities.put(s,
					new Box((tX + bX) / 2, (tY + bY) / 2, Math.abs(tX - bX),
							Math.abs(tY - bY), Math.PI * sa));
			i--;
		}
		i = sc.nextInt();
		while (i > 0) {
			float tX = sc.nextFloat();
			float tY = sc.nextFloat();
			float bX = sc.nextFloat();
			float bY = sc.nextFloat();
			String s = sc.next();
			crates.put(s,
					new Crate((tX + bX) / 2, (tY + bY) / 2, Math.abs(tX - bX),
							Math.abs(tY - bY)));
			i--;
		}
		i = sc.nextInt();
		while (i > 0) {
			System.out.println("NO");
			float tX = sc.nextFloat();
			float tY = sc.nextFloat();
			float bX = sc.nextFloat();
			float bY = sc.nextFloat();
			String connect = sc.next();
			String s = sc.next();
			buttons.put(s,
					new Button((tX + bX) / 2, (tY + bY) / 2, Math.abs(tX - bX),
							Math.abs(tY - bY), connect, this));
			i--;
		}
		i = sc.nextInt();
		while (i > 0) {
			String type = sc.next();
			float cx = sc.nextFloat();
			float cy = sc.nextFloat();
			String s = sc.next();
			if (type.equals("SIGN")) {
				background.put(s, new Sign(cx, cy));
			}
			i--;
		}
		i = sc.nextInt();
		sc.nextLine();
		while (i > 0) {
			String type = sc.nextLine();
			lines.add(new Line(type,this));
			i--;
		}
	}