public Level(String name) {
		double checkRatioEnemyType = 0;
		
		for(double e : ratioEnemyType) 
			checkRatioEnemyType += e;
		
		if( checkRatioEnemyType != 1.0) {
			System.out.println("La somme des ratios des types d'ennemies du level " + name + " est différente de 1. (" + checkRatioEnemyType + ")");
			System.exit(1);
		}
		
		map = new Map(name + ".tile");
		EntityXML.convertToEntities(this, ConverterEntitiesToXML.inverseConvert(name));
		this.name = name;
		
		
		switch(this.name){
		case "map":
			timeBeforeMobSpawn = 10.;
			percent_mobByAvailablePositions = 0.000;
			nbMaxEnemies = 50;
			break;
		default:
			timeBeforeMobSpawn = 20.;
			percent_mobByAvailablePositions = 0.000;
			nbMaxEnemies = 10;
		}
	}