public static void loadTerrain() {
if (StringAnalyst.isFileExist("terrain.dat")) {
StringAnalyst reader = new StringAnalyst();
reader.openFile("terrain.dat");
while (!reader.eof) {
reader.readRow();
analyzeStringForTerrain(reader);
}
if (tileWidth == -1) {
if (terrains.size() > 0) {
Log.warn("TERRAIN DAWG");
//tileWidth = terrains.get(0).image.image.getWidth();
//tileHeight = terrains.get(0).image.image.getHeight();
tileWidth = terrains.get(0).getWidth();
tileHeight = terrains.get(0).getHeight();
}
}
reader.closeFile();
}
}