public static Terrain fromTemplate(int terrainID, int x, int y) {
		//TODO implement real code for this shit.
		if(terrainID < 0 || terrainID >= terrainTemplates.size())
			throw new IllegalArgumentException("The requested ID does not exist.");
		Terrain ret = terrainTemplates.get(terrainID).getRandomTerrainOfThisType();
		ret.translatePosition(x * gridWidth, y * gridHeight, y * gridZFactor);
		return ret;
	}