import java.io.RandomAccessFile;
import java.util.LinkedList;
public class FloorRender {
public static void main(String... args) throws IOException {
FileHeader floorHeader = Extract.read(
new RandomAccessFile("tiles/ACT1/BARRACKS/floor.dt1", "r"),
new RandomAccessFile("palette/ACT1/pal.dat", "r")
);
FileHeader basewallHeader = Extract.read(
new RandomAccessFile("tiles/ACT1/BARRACKS/basewall.dt1", "r"),
new RandomAccessFile("palette/ACT1/pal.dat", "r")
);
FileHeader objectsHeader = Extract.read(
new RandomAccessFile("tiles/ACT1/BARRACKS/objects.dt1", "r"),
new RandomAccessFile("palette/ACT1/pal.dat", "r")
);
FileHeader merged = merge(floorHeader,basewallHeader,objectsHeader);
DsInfo dsInfo = DsReader.read(
new RandomAccessFile("tiles/ACT1/BARRACKS/barE.ds1", "r")
);
System.out.println("width="+dsInfo.width+" height="+dsInfo.height);